#Lightning system

1 messages · Page 1 of 1 (latest)

snow wyvern
#

Hi , how can i implement a Lightning system with shaders ....

outer crater
#

You can use the light2d nodes provided by godot, or if you really wanna make it yourself with shaders you can do this:

#

Make a shader with an effect taking each pixel from the screen, then loop trough all the lights, the lights should be a struct containing a position, scale and color

#

Then you add the lights color based on how far away the pixel is from each light x their scale