Browse Source

Merge pull request #5833 from bghgary/gltf-ibl-fix

Serialize cubeTexture matrix so that cloning works properly
David Catuhe 6 years ago
parent
commit
6bed49b6c4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Materials/Textures/cubeTexture.ts

+ 3 - 0
src/Materials/Textures/cubeTexture.ts

@@ -81,7 +81,10 @@ export class CubeTexture extends BaseTexture {
     private _noMipmap: boolean;
     private _files: string[];
     private _extensions: string[];
+
+    @serialize("textureMatrix")
     private _textureMatrix: Matrix;
+
     private _format: number;
     private _createPolynomials: boolean;