Procházet zdrojové kódy

Fix for thin instances

Popov72 před 5 roky
rodič
revize
fc6f99125f
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/Layers/effectLayer.ts

+ 2 - 0
src/Layers/effectLayer.ts

@@ -710,6 +710,8 @@ export abstract class EffectLayer {
 
             this._effectLayerMapGenerationEffect.setMatrix("viewProjection", scene.getTransformMatrix());
 
+            this._effectLayerMapGenerationEffect.setMatrix("world", effectiveMesh.getWorldMatrix());
+
             this._effectLayerMapGenerationEffect.setFloat4("glowColor",
                 this._emissiveTextureAndColor.color.r,
                 this._emissiveTextureAndColor.color.g,