Josh Attempts Shaders
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 3m24s

This commit is contained in:
2025-04-14 21:28:06 -04:00
parent fd656cd543
commit 5068b4660e
6 changed files with 295 additions and 4 deletions

View File

@@ -1,5 +1,15 @@
#version 120
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform float u_time;
void main() {
gl_FragColor = vec4(1, 1, 1, 1);
vec2 st = gl_FragCoord.xy/u_resolution;
gl_FragColor = vec4(st.x,st.y,0.0,1.0);
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}

View File

@@ -1,7 +1,5 @@
#version 120
attribute vec2 position;
void main() {
gl_Position = vec4(position.x, position.y, 1.0, 1.0);
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}