瀏覽代碼

Merge pull request #2455 from sebavan/Environment

Legacy
David Catuhe 8 年之前
父節點
當前提交
af25b43a01
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      materialsLibrary/src/legacyPBR/babylon.legacyPBRMaterial.ts

+ 1 - 1
materialsLibrary/src/legacyPBR/babylon.legacyPBRMaterial.ts

@@ -1331,7 +1331,7 @@ module BABYLON {
                             this._uniformBuffer.updateFloat2("vReflectionInfos", this.reflectionTexture.level, 0);
 
                             if (this._defines.USESPHERICALFROMREFLECTIONMAP) {
-                                var polynomials = this.reflectionTexture.getSphericalPolynomial();
+                                var polynomials = this.reflectionTexture.sphericalPolynomial;
                                 this._effect.setFloat3("vSphericalX", polynomials.x.x, polynomials.x.y, polynomials.x.z);
                                 this._effect.setFloat3("vSphericalY", polynomials.y.x, polynomials.y.y, polynomials.y.z);
                                 this._effect.setFloat3("vSphericalZ", polynomials.z.x, polynomials.z.y, polynomials.z.z);