Godot Version
4.3
Question
Would it be possible to stop the UV from rotating with the parent node?
I am trying to make a liquid shader, and I am wondering how to make the UV’s not rotate, because when looking up, the UV’s also rotate.
4.3
Would it be possible to stop the UV from rotating with the parent node?
You could apply the MODEL_MATRIX
in your shader to reverse some of this transform. Here’s an example from the docs, in your case try the UV instead of VERTEX.
shader_type canvas_item;
render_mode skip_vertex_transform;
void vertex() {
VERTEX = (MODEL_MATRIX * vec4(VERTEX, 0.0, 1.0)).xy;
}