Quaternion rotation!

This commit is contained in:
duck
2025-05-15 00:08:01 +05:00
parent 12285321d2
commit 796d2bfb35
4 changed files with 165 additions and 45 deletions

View File

@@ -7,8 +7,8 @@ layout(location = 0) out vec4 fragColor;
void main() {
fragColor = vec4(
depth,
0.0,
0.0,
cos(vertexIndex * 0.5) * 0.25 + 0.75,
sin(vertexIndex * 0.5) * 0.25 + 0.75,
1.0
);
}