瀏覽代碼

Merge pull request #8804 from Popov72/fix-thininstance-glow

Adds support for thin instances to the glow layer
David Catuhe 5 年之前
父節點
當前提交
c1f28c5ae2
共有 1 個文件被更改,包括 2 次插入0 次删除
  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("viewProjection", scene.getTransformMatrix());
 
 
+            this._effectLayerMapGenerationEffect.setMatrix("world", effectiveMesh.getWorldMatrix());
+
             this._effectLayerMapGenerationEffect.setFloat4("glowColor",
             this._effectLayerMapGenerationEffect.setFloat4("glowColor",
                 this._emissiveTextureAndColor.color.r,
                 this._emissiveTextureAndColor.color.r,
                 this._emissiveTextureAndColor.color.g,
                 this._emissiveTextureAndColor.color.g,