I have a wavy grass shader (I originally wrote this in HDRP and converted it to be in an LWRP scene)
When I view my grass prefab it looks fine. however when i place the grass in my scene it is completely invisible. I get no indication that i’ve placed it except for the XYZ manipulator gizmo showing me that it’s there.
Now the funny thing is that when i dissconnect my wind effect on the material to the PBR master node then the grass shows up.
This is the wind movement part of my grass shader. Is there anything in there that you can see is going to be causing a problem?
im especially baffled by the fact that i can see it fine when i preview the prefab but not when i view it in the editor (or when i play it)
My guess for this is something happening in the position is placing the object far offscreen. I’m not sure what that camera position node is doing, but I didn’t have one in a graph of mine that is similar and it worked just fine for me. Try feeding that last Lerp directly into the transform node and see what happens.
I did have the same issue, dont remember exactly but most likely is the strength way too high so it just displaces insane far
I did remake your right side and works for me
You don’t need to subtract camera position, that operation is only needed for HDRP since world position there is relative to camera(for some reason) not relative to actual world (0,0,0).
It’s to stabilize rendering (no world position floating point issues).
2 Likes
I see.
They need to make the thing that is called world position, be world position, not camera position.
The way it is set up now is confusing.