grass-bending icon indicating copy to clipboard operation
grass-bending copied to clipboard

Doesn't receive shadows or ambient light

Open lucidrapture opened this issue 6 years ago • 3 comments

bg_issue1

As seen in this image, the grass does not receive real-time shadows.

I'm assuming this could be added in an additional pass? I'm not great with shaders so I'm hesitant to try and implement this myself, but it should be feasible unless there's a technical reason I haven't accounted for.

lucidrapture avatar Feb 10 '19 23:02 lucidrapture

Take a look at the DefaultResourcesExtra\TerrainShaders\Details\WavingGrassBillboard.shader built-in shader. It uses a surface pass to support the lighting and shadows. I didn't need those for the project I've been making this solution for, so didn't bother with it.

elringus avatar Feb 10 '19 23:02 elringus

Hey Elringus, I'm having trouble with combining them. Do you think you'll be able to help out?

tinnystudios avatar Jul 06 '20 03:07 tinnystudios

Hey Elringus, I'm having trouble with combining them. Do you think you'll be able to help out?

Hey, Unfortunately I don't have time to work on this at the moment, but will appreciate pull requests.

elringus avatar Jul 07 '20 09:07 elringus