Browse Source

Fix preprocess code

Popov72 5 years ago
parent
commit
2ef863f10f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Shaders/ShadersInclude/shadowMapFragmentDeclaration.fx

+ 2 - 2
src/Shaders/ShadersInclude/shadowMapFragmentDeclaration.fx

@@ -4,7 +4,7 @@
 
 varying float vDepthMetricSM;
 
-#ifdef SM_USEDISTANCE == 1
+#if SM_USEDISTANCE == 1
     uniform vec3 lightDataSM;
     varying vec3 vPositionWSM;
 #endif
@@ -12,6 +12,6 @@ varying float vDepthMetricSM;
 uniform vec3 biasAndScaleSM;
 uniform vec2 depthValuesSM;
 
-#ifdef SM_DEPTHCLAMP == 1
+#if SM_DEPTHCLAMP == 1
     varying float zSM;
 #endif