This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I want to make the background a little darker(like a gradient, where the black is at the edges and the white is near the player). I have some parallax backgrounds and i tried to use canvas modulate, but it doesn't work. The light works when i change "layer min" to -1, but i can't achieve what i want without the dark(in the game is night,but not completely black)

in Engine by (92 points)

1 Answer

0 votes
Best answer

What about using a vignette frame? A semi-transparent sprite that is most transparent by your player but gets increasingly opaque towards the edges. Hope this helps.

Vignetting on Wikipedia

by (384 points)
selected by

if i want to have fire flies at the edge(light the moves randomly), will this technique work?

If there are multiple light sources, no. You could add point lights to each entity and modulate the background to be darker though.

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 Frequently asked questions and 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 [email protected] with your username.