Vertex shaders that render as points

#1

Hello, everyone!
I wonder if ISF shaders support vertex shaders that render as points? I couldn’t find this info in the docs.
I want to make a storm of particles, which store their states in a framebuffer. Something like this https://codepen.io/illus0r/pen/JjjKPXY

0 Likes

#2

Maybe that helps? Got it from here: https://www.shadertoy.com/view/MltXWn

Your link is not showing anything for me sadly

0 Likes

#3

Thank you for your suggestion!

Unfortunately, your shader doesn’t use a framebuffer. It just takes time and particle index and calculates this particle coordinates. Then it has to measure distance from every pixel to every of these points, so to decide, light the pixel or not.

It’s not effective, 600 particles are already slow, 1000000 are impossible.

Here is a link to a rendered video of webgl shader, which moves 1M particles with ease https://www.instagram.com/p/B3pxMEiIZgA/

0 Likes