Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Bug Grass shader is moving

Discussion in 'Universal Render Pipeline' started by Damnielvevo, Oct 23, 2022.

  1. Damnielvevo

    Damnielvevo

    Joined:
    Sep 10, 2020
    Posts:
    2
    I'm using Daniel Iletts grass asset https://github.com/daniel-ilett/shaders-botw-grass and it seems to work just fine, but for some reason the grass moves with my player character, particularly the body and vanishes when I get too far from the mesh it's actually supposed to be on. I'm using two scripts for movement and rotation, but everything in them is a serialized private, so I have no idea how it'd affect the shader. Fortunately it's not following the camera, as moving the camera by itself doesn't affect the position of the grass as shown in the video. I have no idea why it moves, I even made sure to not use the same plane for the grass and for my other scripts, yet it still moves. It's the only grass that seems to work for my project and it would work exceedingly well if it didn't wonder around. here are links to my movement and player rotation scripts, maybe I missed something. https://pastebin.com/mthiAg8W || https://pastebin.com/GfhsWXxy