Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
140 stars 2 forks source link

No Foliage or Nature Shaders - Add Soft-Occlusion Capable Shader #165

Open Enverex opened 1 year ago

Enverex commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently there is no way of handling soft occlusion which means that flat/sheet based foliage ends up looking overly bright on one side compared to the other side which ends up being completely unlit or dark (taking into account only the directional sky light in this example). This makes things look overly shadowed and harsh compared to how they should look.

Examples: image The left shows trees using normal shading, the trees on the right use soft occlusion, resulting in a mitigation of the sudden harsh shadow.

Describe the solution you'd like

For a soft-occlusion capable shader to be added, similar in style to the nature shader(s) in Unity to render foliage more visually appealing.

Describe alternatives you've considered

There's not really any other way to do this without creating other visual problems instead, e.g. bumping up the global lighting to counter, but now the whole world is much brighter.

Additional Context

No response

Ruikio commented 1 year ago

I have plenty of worlds that would use this. The amount of pain we had to do in Rocky Retreat... I think we have 10+ lights aiming at the tree in the circle area so it didn't have that weird harsh shadow for sides. +1 from me.