Browse Source

Rename CSM uniforms

Popov72 5 năm trước cách đây
mục cha
commit
4edce55ae2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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.