I have created an ocean shader! Unfortunately its a shader. So I need a function outside so that the user can sample the wave displacement at a point something like-
var new_pos = Vector3(point.x, 0.0, point.y)
#Calculate the wave at the specified point at the specified TIME.
So is there someway to get a value in gscript that reflects off of the
TIME shader variable.