a rotating cube (#3)

This commit is contained in:
Akash Shakdwipeea
2024-12-22 20:01:51 +05:30
committed by GitHub
parent 41196e4840
commit 5ecaf14b3d
10 changed files with 312 additions and 43 deletions
+13
View File
@@ -0,0 +1,13 @@
#version 300 es
// fragment shaders don't have a default precision so we need
// to pick one. highp is a good default. It means "high precision"
precision highp float;
// we need to declare an output for the fragment shader
out vec4 outColor;
void main() {
// Just set the output to a constant redish-purple
outColor = vec4(1, 0, 0.5, 1);
}