Question by
merlinyeoldewizard · Jun 24, 2021 at 03:53 PM ·
shadershadersgraphics
Shader graph has incorrect position (VERSION 10.5)
I'm using Shader Graph 10.5, and Unity 2020.3.12f1 LTS.
I'm making a wave effect for water, but the objects are in the wrong position visually, compared to their physical position. Because of this, the camera culls the object incorrectly.
link:The shader graph
link:The scene
I'm not sure what I'm doing wrong to make it appear this way. Some help with this would be appreciated.
EDIT: In the scene editor, the y-position of the wave is relative to the screen view.
Comment
Answer by merlinyeoldewizard · Jun 24, 2021 at 11:35 PM
SOLVED: After combining the gradient noise and world position of the object, I subtracted the Y-value of the camera position, from the Y-value of the combined vector, then combined that into the outgoing vector.