summary refs log tree commit diff
path: root/src/shaders/triangle.frag.glsl
diff options
context:
space:
mode:
authoriurii plugatarov <[email protected]>2024-08-10 14:22:45 +0200
committeriurii plugatarov <[email protected]>2024-08-10 14:22:45 +0200
commit90e85b2fe655a2643535b0f49d99836ac72e724c (patch)
tree66c0656984da7b2b8a6c06c4b0af764919e0e318 /src/shaders/triangle.frag.glsl
parent86eb1bfcf21819492e0ec55cd08127fa8a5c6769 (diff)
downloadogl-90e85b2fe655a2643535b0f49d99836ac72e724c.tar.gz
custom shader loader
Diffstat (limited to 'src/shaders/triangle.frag.glsl')
-rw-r--r--src/shaders/triangle.frag.glsl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shaders/triangle.frag.glsl b/src/shaders/triangle.frag.glsl
index 664c399..b3dcd05 100644
--- a/src/shaders/triangle.frag.glsl
+++ b/src/shaders/triangle.frag.glsl
@@ -1,6 +1,7 @@
 #version 330 core
 out vec4 FragColor;
+in vec3 ourColor;
 void main()
 {
-    FragColor = vec4(1.0, 0.0, 0.0, 1.0);
-}
+    FragColor = vec4(ourColor, 1.0);
+}