M
M
Mimocodil2021-11-10 16:05:40
Unity
Mimocodil, 2021-11-10 16:05:40

How to make such lighting in a 2D game?

I want to make a lighting mechanic in the game, which means that the player will only see the part of the scene that is lit by the camera. The rest will be completely indistinguishable from the black background. An example in the illustration below:

618bc3746e3f1560721642.png

How to implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
ProstoLubitel, 2021-11-11
@Ezekiel4

I see a million options, but I can’t understand what exactly interests you

S
Sylik, 2021-11-10
@Sylik

1. Vignette through Post processing, but it is resource-intensive, but customizable
2. Just put a picture of a black circle with a cutout in the center into the canvas

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question