#Limit player vision with lights - Godot 4

4 messages · Page 1 of 1 (latest)

empty pivot
#

There's no "mask" mode for Light2D's in Godot 4 and using sprite's canvas item material's light mode to "light only" doesn't render the sprite even if there's light on it

tribal folio
# empty pivot Hello. This tutorial is made for Godot 3.x it seems and doesn't work in Godot 4....

Seems like in 4.0, you need to use dedicated masking nodes: https://godotforums.org/d/33826-where-is-the-mask-mode-for-light2ds-in-godot-4

Also here's specifics in the documentation: https://docs.godotengine.org/en/stable/classes/class_light2d.html

empty pivot