mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-09 02:43:25 +08:00
8 lines
154 B
Plaintext
8 lines
154 B
Plaintext
mat2 rm_rotation(float angle) {
|
|
angle = -angle * (3.1415926 / 180.);
|
|
return mat2(
|
|
vec2(cos(angle), -sin(angle)),
|
|
vec2(sin(angle), cos(angle))
|
|
);
|
|
}
|