diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-20 10:57:17 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-10 18:11:55 +0100 |
commit | 900d19a41bc1886e7a809d99d6119b12235a4f0a (patch) | |
tree | 2e72221ae1a470d448497664a95d4e64acc2e8f1 /gfx/gl/shaders/shadowStencil.vs | |
parent | Fix texture usage via materials in shadows (diff) | |
download | ilt-900d19a41bc1886e7a809d99d6119b12235a4f0a.tar.bz2 ilt-900d19a41bc1886e7a809d99d6119b12235a4f0a.tar.xz ilt-900d19a41bc1886e7a809d99d6119b12235a4f0a.zip |
Initial commit of basic shadow depth map creation
Diffstat (limited to 'gfx/gl/shaders/shadowStencil.vs')
-rw-r--r-- | gfx/gl/shaders/shadowStencil.vs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowStencil.vs b/gfx/gl/shaders/shadowStencil.vs new file mode 100644 index 0000000..4f4c250 --- /dev/null +++ b/gfx/gl/shaders/shadowStencil.vs @@ -0,0 +1,11 @@ +#version 330 core +#extension GL_ARB_shading_language_420pack : enable + +include(`meshIn.glsl') +uniform mat4 viewProjection; + +void +main() +{ + gl_Position = viewProjection * vec4(position, 1); +} |