소스 검색

Move code to include

Popov72 5 년 전
부모
커밋
d056f8bd67
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 0
      src/Shaders/ShadersInclude/shadowMapFragmentDeclaration.fx
  2. 1 5
      src/Shaders/shadowMap.fragment.fx

+ 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;