forked from LeenkxTeam/LNXSDK
Update leenkx/Shaders/std/light.glsl
This commit is contained in:
@ -22,6 +22,9 @@
|
|||||||
#ifdef _Spot
|
#ifdef _Spot
|
||||||
#include "std/light_common.glsl"
|
#include "std/light_common.glsl"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _VoxelShadow
|
||||||
|
#include "std/conetrace.glsl"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _ShadowMap
|
#ifdef _ShadowMap
|
||||||
#ifdef _SinglePoint
|
#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);
|
direct *= shadowTest(shadowMapSpot[0], shadowMapSpotTransparent[0], lPos.xyz / lPos.w, bias, transparent);
|
||||||
#endif
|
#endif
|
||||||
#ifdef _Clusters
|
#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
|
#ifdef _ShadowMapAtlas
|
||||||
direct *= shadowTest(
|
direct *= shadowTest(
|
||||||
#ifndef _SingleAtlas
|
#ifndef _SingleAtlas
|
||||||
|
Reference in New Issue
Block a user