From 425add81fc8718f1ac4fde48a71344cd332d5a58 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Jul 2024 20:10:24 +0100 Subject: Add shadow shader which takes into account texture transparency --- gfx/gl/shaders/commonShadowPoint.glsl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gfx/gl/shaders/commonShadowPoint.glsl') diff --git a/gfx/gl/shaders/commonShadowPoint.glsl b/gfx/gl/shaders/commonShadowPoint.glsl index ba4611a..c4ea827 100644 --- a/gfx/gl/shaders/commonShadowPoint.glsl +++ b/gfx/gl/shaders/commonShadowPoint.glsl @@ -1,8 +1,11 @@ out vec4 vworldPos; +ifdef(`TEXTURES', out vec2 vtexCoord;); + void main() { vec3 worldPos = model * position; vworldPos = vec4(worldPos - viewPoint + modelPos, 1); + ifdef(`TEXTURES', vtexCoord = texCoord;); } -- cgit v1.2.3