Using dynamic point light and shaders

Godot Version

4.2.2

Question

I have a point light that has a circular gradient texture, how do I use a shader or something similar to darken everything outside of the radius of the point light. The game mechanic i am trying to create is extremely similar to how light works for camp fires in Don’t starve.

Sorry i am new but been struggling with this for a few days.

Use Canvas Modulate and set it fairly dark.

I’ve used it for my 2D rpg test - you can check my itch.io for an example.

1 Like

I just use a DirectionalLight with inverted color. Everything turns dark.

This worked thank you so much :pray:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.