1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-01-09 02:43:25 +08:00
Godot-Shader-Lib/addons/ShaderLib/RayMarching/RayMarchRotation.gdshaderinc
2024-03-27 11:23:17 +05:30

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))
);
}