Pārlūkot izejas kodu

Rename CSM uniforms

Popov72 5 gadi atpakaļ
vecāks
revīzija
4edce55ae2
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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.