diff --git a/leenkx/Shaders/std/light.glsl b/leenkx/Shaders/std/light.glsl index 6232239..6b5e91f 100644 --- a/leenkx/Shaders/std/light.glsl +++ b/leenkx/Shaders/std/light.glsl @@ -22,6 +22,9 @@ #ifdef _Spot #include "std/light_common.glsl" #endif +#ifdef _VoxelShadow +#include "std/conetrace.glsl" +#endif #ifdef _ShadowMap #ifdef _SinglePoint @@ -308,7 +311,7 @@ vec3 sampleLightVoxels(const vec3 p, const vec3 n, const vec3 v, const float dot direct *= shadowTest(shadowMapSpot[0], shadowMapSpotTransparent[0], lPos.xyz / lPos.w, bias, transparent); #endif #ifdef _Clusters - vec4 lPos = LWVPSpotArray[index] * vec4(p + n * bias * 10, 1.0); + vec4 lPos = LWVPSpot[index] * vec4(p + n * bias * 10, 1.0); #ifdef _ShadowMapAtlas direct *= shadowTest( #ifndef _SingleAtlas