Sfoglia il codice sorgente

Move code to include

Popov72 5 anni fa
parent
commit
d056f8bd67

+ 4 - 0
src/Shaders/ShadersInclude/shadowMapFragmentDeclaration.fx

@@ -1,3 +1,7 @@
+#if SM_FLOAT == 0
+	#include<packingFunctions>
+#endif
+
 varying float vDepthMetricSM;
 
 #ifdef SM_USEDISTANCE == 1

+ 1 - 5
src/Shaders/shadowMap.fragment.fx

@@ -1,8 +1,4 @@
-#ifndef SM_FLOAT
-	#include<packingFunctions>
-#endif
-
-#include<shadowMapFragmentDeclaration>
+#include<shadowMapFragmentDeclaration>
 
 #ifdef ALPHATEST
 varying vec2 vUV;