#Different Shadow Strengths For different Meshes-Materials?

1 messages ยท Page 1 of 1 (latest)

karmic cradle
#

Hi guys! Is that possible? I am trying to make stylized cloud shadows. So shadows fill have layers. And different with different layers shadow strength will vary. Any ideas?

bleak onyx
#

Ironic for me to mention this after saying how I dislike when Stylized Station mentions Genshin all the time, but Genshin Impact does cloud shadows well.

I think they have a perlin noise map (or similar) that scrolls across worldspace, darkening the landscape material based on the colour of the noise (black = no darkening, white = max darkening)

sweet hemlock
#

Yeah the best way would be to fake it using a Light Function material on your directional light

hearty fossil
#

shadow pass

sweet hemlock
hearty fossil
#

you can already see in video thumbnail the sphere has a shadow gradient

sweet hemlock
hearty fossil
#

ah ok, flickering idk about, sad. I had the impression you used a lot of dither yourself to keep things cheap

sweet hemlock
karmic cradle
#

Yeah I am convinced that dithering does not work well with shadows. Although the strength of the shadows is exactly what I want, there is too much flickering.
Also I tried Light function material. But in that example cloud shadows stretch along the perpendicular meshes. But yeah, best solution so far..

hearty fossil
#

so what you can do is have 2 or more directional sunlights, and if your clouds are meshes they can be set which one is affected by each. Then set different shadow strength for the suns. Its not very scalable but 2 or 3 i think should be manageable

#

iirc you can set a mesh to be affected by different directional light channel, so that the rest of the level is not impacted and just keep the normal sun

#

i seen it used for some trickery for indoor vs outdoor with 2 suns as well