0 votes

Apologies if this question has already been asked; I wasn't finding anything when searching.

I'm trying to implement sunlight in a 2D game, so that the majority of the base TileMap is "cloudy", but there is a portion of the map that is sunny. I don't think it's possible to modulate individual tiles within the tilemap, so I'm not sure what my best option is.

Is this something I could do with a shader and a mask? If so, is it possible to have a dynamic mask so that the sunlight area can move across the screen, etc?

in Engine by (17 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.