소스 검색

Last change to be up to date with BJS' master

nockawa 9 년 전
부모
커밋
f89ddfa1c8
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. BIN
      Exporters/3ds Max/Max2Babylon-0.4.5.zip
  2. 6 6
      src/Shaders/default.fragment.fx

BIN
Exporters/3ds Max/Max2Babylon-0.4.5.zip


+ 6 - 6
src/Shaders/default.fragment.fx

@@ -262,15 +262,15 @@ void main(void) {
 
 #ifdef REFLECTIONMAP_3D
 #ifdef ROUGHNESS
-	 float bias = vReflectionInfos.y;
+	float bias = vReflectionInfos.y;
 
-	#ifdef SPECULARTERM
+#ifdef SPECULARTERM
 	#ifdef SPECULAR
-	#ifdef GLOSSINESS
-		bias *= (1.0 - specularMapColor.a);
-	#endif
-	#endif
+		#ifdef GLOSSINESS
+			bias *= (1.0 - specularMapColor.a);
+		#endif
 	#endif
+#endif
 
 	reflectionColor = textureCube(reflectionCubeSampler, vReflectionUVW, bias).rgb * vReflectionInfos.x;
 #else