Explorar o código

Rename CSM uniforms

Popov72 %!s(int64=5) %!d(string=hai) anos
pai
achega
4edce55ae2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Lights/Shadows/cascadedShadowGenerator.ts

+ 2 - 0
src/Lights/Shadows/cascadedShadowGenerator.ts

@@ -1170,6 +1170,8 @@ export class CascadedShadowGenerator implements IShadowGenerator {
 
         const width = shadowMap.getSize().width;
 
+        effect.setMatrices("lightMatrix" + lightIndex, this._transformMatricesAsArray);
+        effect.setArray("viewFrustumZ" + lightIndex, this._viewSpaceFrustumsZ);
         effect.setFloat("splitBlendFactor" + lightIndex, this.splitBlendPercentage === 0 ? 10000 : 1 / this.splitBlendPercentage);
 
         // Only PCF uses depth stencil texture.