浏览代码

Merge pull request #7630 from Popov72/fix-hdrcube-sh

Fix HDRCubeTexture construction, generateHarmonics was not properly t…
David Catuhe 5 年之前
父节点
当前提交
dabe616d75
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      dist/preview release/what's new.md
  2. 1 0
      src/Materials/Textures/hdrCubeTexture.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -335,6 +335,7 @@
 - Fix for bug where directional lights are inverted when using a right handed scene coordinate system. ([drigax](https://github.com/drigax))
 - Fix subSurface parameters not copied in the PBR clone methods ([Popov72](https://github.com/Popov72))
 - Fix for bug where round-tripped glTF imported scenes are encapsulated in a second root node ([#6349](https://github.com/BabylonJS/Babylon.js/issues/6349))([drigax](https://github.com/drigax) & [noalak](https://github.com/noalak))
+- Fix `HDRCubeTexture` construction, `generateHarmonics` was not properly taken into account ([Popov72](https://github.com/Popov72))
 
 ## Breaking changes
 

+ 1 - 0
src/Materials/Textures/hdrCubeTexture.ts

@@ -133,6 +133,7 @@ export class HDRCubeTexture extends BaseTexture {
 
         this._noMipmap = noMipmap;
         this._size = size;
+        this._generateHarmonics = generateHarmonics;
 
         this._texture = this._getFromCache(url, this._noMipmap);