Should the gradient texture for lights transition to black or transparent? is there any difference?

Godot Version

4.2.1

Question

So, for instance the first image has a radial gradient that goes from white to black. while the second one goes from white to transparent.
image image
is there any difference in how the lights work with them?

Yes. If a light’s blend_mode property is set to “Mix”, you’ll see the black parts, while the transparent parts are invisible. Similarly, if you use a CanvasMaterial with its light_mode property set to “Light Only”, the parts of that material covered by the transparent areas of the light mask won’t show, while those covered by black areas will. So unless you have good reasons not to, go with black to transparent!

1 Like

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