summaryrefslogtreecommitdiff
path: root/source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2024-04-06 20:25:30 +0500
committertalha <talha@talhaamir.xyz>2024-04-06 20:25:30 +0500
commitdcf84e28b5367dfa737cc2dfbf8d4c1afbf21cba (patch)
treeddec195c8813455e330934063655f51e0dea2a00 /source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl
parentf2e3f39b15bd22e2aa727bf4669b6e52186e31c7 (diff)
Completed blending
Diffstat (limited to 'source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl')
-rw-r--r--source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl b/source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl
new file mode 100644
index 0000000..63d6a75
--- /dev/null
+++ b/source/lessons/stencil_testing/shaders/stencil_outline.fs.glsl
@@ -0,0 +1,12 @@
+#version 330 core
+
+
+in vec2 TexCoords;
+in vec3 VertexWorldPos;
+uniform sampler2D TexId;
+uniform vec4 hlt_color;
+out vec4 FragColor;
+
+void main() {
+ FragColor = hlt_color;
+}