|
@@ -91,12 +91,6 @@ class SAOPass extends Pass {
|
|
this.normalMaterial = new MeshNormalMaterial();
|
|
this.normalMaterial = new MeshNormalMaterial();
|
|
this.normalMaterial.blending = NoBlending;
|
|
this.normalMaterial.blending = NoBlending;
|
|
|
|
|
|
- if ( SAOShader === undefined ) {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.SAOPass relies on SAOShader' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.saoMaterial = new ShaderMaterial( {
|
|
this.saoMaterial = new ShaderMaterial( {
|
|
defines: Object.assign( {}, SAOShader.defines ),
|
|
defines: Object.assign( {}, SAOShader.defines ),
|
|
fragmentShader: SAOShader.fragmentShader,
|
|
fragmentShader: SAOShader.fragmentShader,
|
|
@@ -114,12 +108,6 @@ class SAOPass extends Pass {
|
|
this.saoMaterial.uniforms[ 'cameraProjectionMatrix' ].value = this.camera.projectionMatrix;
|
|
this.saoMaterial.uniforms[ 'cameraProjectionMatrix' ].value = this.camera.projectionMatrix;
|
|
this.saoMaterial.blending = NoBlending;
|
|
this.saoMaterial.blending = NoBlending;
|
|
|
|
|
|
- if ( DepthLimitedBlurShader === undefined ) {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.SAOPass relies on DepthLimitedBlurShader' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.vBlurMaterial = new ShaderMaterial( {
|
|
this.vBlurMaterial = new ShaderMaterial( {
|
|
uniforms: UniformsUtils.clone( DepthLimitedBlurShader.uniforms ),
|
|
uniforms: UniformsUtils.clone( DepthLimitedBlurShader.uniforms ),
|
|
defines: Object.assign( {}, DepthLimitedBlurShader.defines ),
|
|
defines: Object.assign( {}, DepthLimitedBlurShader.defines ),
|
|
@@ -146,12 +134,6 @@ class SAOPass extends Pass {
|
|
this.hBlurMaterial.uniforms[ 'size' ].value.set( this.resolution.x, this.resolution.y );
|
|
this.hBlurMaterial.uniforms[ 'size' ].value.set( this.resolution.x, this.resolution.y );
|
|
this.hBlurMaterial.blending = NoBlending;
|
|
this.hBlurMaterial.blending = NoBlending;
|
|
|
|
|
|
- if ( CopyShader === undefined ) {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.SAOPass relies on CopyShader' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.materialCopy = new ShaderMaterial( {
|
|
this.materialCopy = new ShaderMaterial( {
|
|
uniforms: UniformsUtils.clone( CopyShader.uniforms ),
|
|
uniforms: UniformsUtils.clone( CopyShader.uniforms ),
|
|
vertexShader: CopyShader.vertexShader,
|
|
vertexShader: CopyShader.vertexShader,
|
|
@@ -169,12 +151,6 @@ class SAOPass extends Pass {
|
|
this.materialCopy.blendDstAlpha = ZeroFactor;
|
|
this.materialCopy.blendDstAlpha = ZeroFactor;
|
|
this.materialCopy.blendEquationAlpha = AddEquation;
|
|
this.materialCopy.blendEquationAlpha = AddEquation;
|
|
|
|
|
|
- if ( UnpackDepthRGBAShader === undefined ) {
|
|
|
|
-
|
|
|
|
- console.error( 'THREE.SAOPass relies on UnpackDepthRGBAShader' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.depthCopy = new ShaderMaterial( {
|
|
this.depthCopy = new ShaderMaterial( {
|
|
uniforms: UniformsUtils.clone( UnpackDepthRGBAShader.uniforms ),
|
|
uniforms: UniformsUtils.clone( UnpackDepthRGBAShader.uniforms ),
|
|
vertexShader: UnpackDepthRGBAShader.vertexShader,
|
|
vertexShader: UnpackDepthRGBAShader.vertexShader,
|