summaryrefslogtreecommitdiff
path: root/source/lessons/instanced_rendering/planetary models/shaders/instancing.fs.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'source/lessons/instanced_rendering/planetary models/shaders/instancing.fs.glsl')
-rw-r--r--source/lessons/instanced_rendering/planetary models/shaders/instancing.fs.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lessons/instanced_rendering/planetary models/shaders/instancing.fs.glsl b/source/lessons/instanced_rendering/planetary models/shaders/instancing.fs.glsl
new file mode 100644
index 0000000..1ec8011
--- /dev/null
+++ b/source/lessons/instanced_rendering/planetary models/shaders/instancing.fs.glsl
@@ -0,0 +1,9 @@
+#version 330 core
+
+
+// uniform sampler2D TexId;
+out vec4 FragColor;
+
+void main() {
+ FragColor = vec4(gl_FragCoord.x/1024.0, gl_FragCoord.y/768.0, 0.0, 1.0f);
+}