#2d cloud shadow projection

1 messages · Page 1 of 1 (latest)

cyan magnet
#

Hello, i planning to make cloud shadow for my 2d side scroll project, usually in 3d i can just sample depth texture or URP world normal, but in 2d the only way i can think of is using CameraSortingLayer and then mask where is sky and where is the ground somehow, my first instinct is doing masking based on brightness since sky usually the brightness, but then if we have snow level which everything is white then there definitely visual error