Przeglądaj źródła

[FIX] Shaders that extends DefaultForward had no shadows.

clandrin 4 lat temu
rodzic
commit
879317de25
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      h3d/scene/pbr/LightBuffer.hx

+ 3 - 0
h3d/scene/pbr/LightBuffer.hx

@@ -56,6 +56,9 @@ class LightBuffer {
 		s.pointLightCount = defaultForwardShader.pointLightCount;
 		s.spotLightCount = defaultForwardShader.spotLightCount;
 		s.dirLightCount = defaultForwardShader.dirLightCount;
+		s.MAX_DIR_SHADOWS = MAX_DIR_SHADOW;
+		s.MAX_POINT_SHADOWS = MAX_POINT_SHADOW;
+		s.MAX_SPOT_SHADOWS = MAX_SPOT_SHADOW;
 
 		for( i in 0 ... MAX_POINT_SHADOW )
 			s.pointShadowMaps[i] = defaultForwardShader.pointShadowMaps[i];