Files
shaders/snippets/rotate/rotate.frag

4 lines
84 B
GLSL

vec2 rotate(vec2 st, float a) {
return mat2(cos(a),-sin(a),sin(a),cos(a))*(st);
}