Question by
pawelmalysz27 · Jun 08, 2021 at 06:35 PM ·
c#shader
How to get wave height in specific point
I can't come up with how can I get wave height from my ocean shader created in the shader graph. I am thinking about using the time value set from the script instead of shader time to control it, but what should I do later? Try to get position on texture and try to figure out height value? I have no idea how can I bite it... Or maybe I can synchronize a noise somehow with a script?
A part of my shader in shader graph:
obraz-2021-06-08-203348.png
(139.4 kB)
Comment