|
@@ -314,6 +314,7 @@ class PMREMGenerator {
|
|
|
( { lodMeshes: this._lodMeshes, sizeLods: this._sizeLods, sigmas: this._sigmas } = _createPlanes( _lodMax ) );
|
|
( { lodMeshes: this._lodMeshes, sizeLods: this._sizeLods, sigmas: this._sigmas } = _createPlanes( _lodMax ) );
|
|
|
|
|
|
|
|
this._blurMaterial = _getBlurShader( _lodMax, width, height );
|
|
this._blurMaterial = _getBlurShader( _lodMax, width, height );
|
|
|
|
|
+ this._ggxMaterial = _getGGXShader( _lodMax, width, height );
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -519,14 +520,6 @@ class PMREMGenerator {
|
|
|
const renderer = this._renderer;
|
|
const renderer = this._renderer;
|
|
|
const pingPongRenderTarget = this._pingPongRenderTarget;
|
|
const pingPongRenderTarget = this._pingPongRenderTarget;
|
|
|
|
|
|
|
|
- if ( this._ggxMaterial === null ) {
|
|
|
|
|
-
|
|
|
|
|
- const width = 3 * Math.max( this._cubeSize, 16 );
|
|
|
|
|
- const height = 4 * this._cubeSize;
|
|
|
|
|
- this._ggxMaterial = _getGGXShader( this._lodMax, width, height );
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
const ggxMaterial = this._ggxMaterial;
|
|
const ggxMaterial = this._ggxMaterial;
|
|
|
const ggxMesh = this._lodMeshes[ lodOut ];
|
|
const ggxMesh = this._lodMeshes[ lodOut ];
|
|
|
ggxMesh.material = ggxMaterial;
|
|
ggxMesh.material = ggxMaterial;
|