can someone explain to me what the problem is, I wanted to make the grass sway in the wind, but instead my grass moves around the world. when I put the shader on the cube, everything was fine, the cube shifted a little as it was intended, which is not the case with the grass prefab, mb there is a problem with my prefab. help me pls
#Problem with grass shader
1 messages · Page 1 of 1 (latest)
Might be an issue with the model, since the scale of the transform is x100 when you'd typically want it to be near 1.
When exporting from blender I usually use Apply Scalings : FBX All and tick the Apply Transform box. Or in Unity, I think you can untick Convert Units in the model importer.
Then in shader you'd typically want to Multiply the displacement by the Y/G axis of the UV, to prevent the bottom of the grass quad from shifting. Though that assumes the model is UV mapped. (Could alternatively use the Y/G axis of the object space Position if the origin is at the base of the model)
Thanks, so I need to change scale when exporting from blender?
you have to fix the bottom of your grass so only the upper portions move