Reputation: 109
This quiestion may be dumb, but is there a way to create a pointlight in unity2d that darkens instead of producing light? I'm using URP by the way.
Upvotes: 3
Views: 3702
Reputation: 340
This is possible in URP's 2D renderer, but you have to dedicate one of your four blend styles to just negative light:
To make a 2D light source emit darkness, just change its blend style to the one you just created.
Upvotes: 1
Reputation: 447
Use Freeform Light, Check alpha blend on overlap, change the color to black.
Upvotes: 1
Reputation: 346
Click the Fog Colour box, set the ambient light to 29 on each of the RGB sliders. You can see the change in the scene, pick a colour that is dark but not pitch-black. Click the Ambient Light Colour box, set the ambient light to 51 on each of the RGB sliders. You can see the change in the scene.
Upvotes: 1