diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-10 18:01:13 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-10 18:10:04 +0100 |
commit | 26c60d5ace9b2a0667a930c4c92a3990a1d7d1dc (patch) | |
tree | 7244d9e1902d2a2c90ad2e92e00ea53343c288cf /gfx/gl/shaders/commonShadowPoint.glsl | |
parent | Pull material detail function into a common file (diff) | |
download | ilt-26c60d5ace9b2a0667a930c4c92a3990a1d7d1dc.tar.bz2 ilt-26c60d5ace9b2a0667a930c4c92a3990a1d7d1dc.tar.xz ilt-26c60d5ace9b2a0667a930c4c92a3990a1d7d1dc.zip |
Fix texture usage via materials in shadows
This is a mess of a commit much like the shader folder, need a better way of dealing
with them.
Diffstat (limited to 'gfx/gl/shaders/commonShadowPoint.glsl')
-rw-r--r-- | gfx/gl/shaders/commonShadowPoint.glsl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gfx/gl/shaders/commonShadowPoint.glsl b/gfx/gl/shaders/commonShadowPoint.glsl index c4ea827..9910d46 100644 --- a/gfx/gl/shaders/commonShadowPoint.glsl +++ b/gfx/gl/shaders/commonShadowPoint.glsl @@ -1,11 +1,10 @@ out vec4 vworldPos; -ifdef(`TEXTURES', out vec2 vtexCoord;); - void main() { vec3 worldPos = model * position; vworldPos = vec4(worldPos - viewPoint + modelPos, 1); - ifdef(`TEXTURES', vtexCoord = texCoord;); + ifdef(`TEXTURES', TexCoords = texCoord;); + ifdef(`TEXTURES', Material = getMaterialDetail(material);); } |