summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowStencil.vs
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders/shadowStencil.vs')
-rw-r--r--gfx/gl/shaders/shadowStencil.vs10
1 files changed, 6 insertions, 4 deletions
diff --git a/gfx/gl/shaders/shadowStencil.vs b/gfx/gl/shaders/shadowStencil.vs
index 45a0867..a15c4fb 100644
--- a/gfx/gl/shaders/shadowStencil.vs
+++ b/gfx/gl/shaders/shadowStencil.vs
@@ -4,15 +4,17 @@
layout(binding = 1) uniform usampler2DRect materialData;
include(`meshIn.glsl')
-include(`materialInterface.glsl')
+include(`materialDetail.glsl')
include(`getMaterialDetail.glsl')
-uniform mat4 viewProjection;
+
+out vec3 FragPos;
+out vec2 TexCoords;
+flat out MaterialDetail Material;
void
main()
{
TexCoords = texCoord;
Material = getMaterialDetail(material);
-
- gl_Position = viewProjection * vec4(position, 1);
+ FragPos = position;
}