diff options
| author | talha <talha@talhaamir.xyz> | 2025-11-27 13:18:57 +0500 |
|---|---|---|
| committer | talha <talha@talhaamir.xyz> | 2025-11-27 13:18:57 +0500 |
| commit | 0b3d69976819219e71350b6a988d1704fd5f0746 (patch) | |
| tree | 3511564cb2cb3b10697dc997260479a14540d706 /shaders | |
Current State:
- hot reloading
- math library (calcify)
- triangle rendering (unbatched)
- orthographic projection (no camera)
- layer isolation setup (platform vs game)
Diffstat (limited to 'shaders')
| -rw-r--r-- | shaders/quad.fs.glsl | 8 | ||||
| -rw-r--r-- | shaders/quad.vs.glsl | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/shaders/quad.fs.glsl b/shaders/quad.fs.glsl new file mode 100644 index 0000000..1c81965 --- /dev/null +++ b/shaders/quad.fs.glsl @@ -0,0 +1,8 @@ +#version 330 core + +uniform vec3 Color; +out vec4 FragColor; + +void main() { + FragColor = vec4(Color, 1.0); +} diff --git a/shaders/quad.vs.glsl b/shaders/quad.vs.glsl new file mode 100644 index 0000000..c26dcf9 --- /dev/null +++ b/shaders/quad.vs.glsl @@ -0,0 +1,9 @@ +#version 330 core +layout(location=0) in vec3 aPos; + +uniform mat4 Model; +uniform mat4 Projection; + +void main() { + gl_Position = Projection * Model * vec4(aPos, 1.0); +} |
