diff --git a/src/postprocessing/AdaptiveToneMappingPass.js b/src/postprocessing/AdaptiveToneMappingPass.js index efaaa3ab..4381a40d 100644 --- a/src/postprocessing/AdaptiveToneMappingPass.js +++ b/src/postprocessing/AdaptiveToneMappingPass.js @@ -22,8 +22,6 @@ import { ToneMapShader } from '../shaders/ToneMapShader' */ var AdaptiveToneMappingPass = function (adaptive, resolution) { - new Pass.call(this) - this.resolution = resolution !== undefined ? resolution : 256 this.needsInit = true this.adaptive = adaptive !== undefined ? !!adaptive : true diff --git a/src/postprocessing/BloomPass.js b/src/postprocessing/BloomPass.js index 73346e19..6087510b 100644 --- a/src/postprocessing/BloomPass.js +++ b/src/postprocessing/BloomPass.js @@ -12,8 +12,6 @@ import { CopyShader } from '../shaders/CopyShader' import { ConvolutionShader } from '../shaders/ConvolutionShader' var BloomPass = function (strength, kernelSize, sigma, resolution) { - new Pass.call(this) - strength = strength !== undefined ? strength : 1 kernelSize = kernelSize !== undefined ? kernelSize : 25 sigma = sigma !== undefined ? sigma : 4.0 diff --git a/src/postprocessing/BokehPass.js b/src/postprocessing/BokehPass.js index 944dc502..406b3a27 100644 --- a/src/postprocessing/BokehPass.js +++ b/src/postprocessing/BokehPass.js @@ -16,8 +16,6 @@ import { BokehShader } from '../shaders/BokehShader' */ var BokehPass = function (scene, camera, params) { - new Pass.call(this) - this.scene = scene this.camera = camera diff --git a/src/postprocessing/ClearPass.js b/src/postprocessing/ClearPass.js index fdaaae2d..65ced08d 100644 --- a/src/postprocessing/ClearPass.js +++ b/src/postprocessing/ClearPass.js @@ -2,8 +2,6 @@ import { Color } from 'three' import { Pass } from '../postprocessing/Pass' var ClearPass = function (clearColor, clearAlpha) { - new Pass.call(this) - this.needsSwap = false this.clearColor = clearColor !== undefined ? clearColor : 0x000000 diff --git a/src/postprocessing/CubeTexturePass.js b/src/postprocessing/CubeTexturePass.js index c9f55664..883e7598 100644 --- a/src/postprocessing/CubeTexturePass.js +++ b/src/postprocessing/CubeTexturePass.js @@ -2,8 +2,6 @@ import { BackSide, BoxGeometry, Mesh, PerspectiveCamera, Scene, ShaderLib, Shade import { Pass } from '../postprocessing/Pass' var CubeTexturePass = function (camera, envMap, opacity) { - new Pass.call(this) - this.camera = camera this.needsSwap = false diff --git a/src/postprocessing/DotScreenPass.js b/src/postprocessing/DotScreenPass.js index 919e3706..b9ee76d5 100644 --- a/src/postprocessing/DotScreenPass.js +++ b/src/postprocessing/DotScreenPass.js @@ -3,8 +3,6 @@ import { Pass, FullScreenQuad } from '../postprocessing/Pass' import { DotScreenShader } from '../shaders/DotScreenShader' var DotScreenPass = function (center, angle, scale) { - new Pass.call(this) - if (DotScreenShader === undefined) console.error('THREE.DotScreenPass relies on DotScreenShader') var shader = DotScreenShader diff --git a/src/postprocessing/FilmPass.js b/src/postprocessing/FilmPass.js index fbe7d30b..3e44998d 100644 --- a/src/postprocessing/FilmPass.js +++ b/src/postprocessing/FilmPass.js @@ -3,8 +3,6 @@ import { Pass, FullScreenQuad } from '../postprocessing/Pass' import { FilmShader } from '../shaders/FilmShader' var FilmPass = function (noiseIntensity, scanlinesIntensity, scanlinesCount, grayscale) { - new Pass.call(this) - if (FilmShader === undefined) console.error('THREE.FilmPass relies on FilmShader') var shader = FilmShader diff --git a/src/postprocessing/GlitchPass.js b/src/postprocessing/GlitchPass.js index 18057c5b..8e38cbd3 100644 --- a/src/postprocessing/GlitchPass.js +++ b/src/postprocessing/GlitchPass.js @@ -3,8 +3,6 @@ import { Pass, FullScreenQuad } from '../postprocessing/Pass' import { DigitalGlitch } from '../shaders/DigitalGlitch' var GlitchPass = function (dt_size) { - new Pass.call(this) - if (DigitalGlitch === undefined) console.error('THREE.GlitchPass relies on DigitalGlitch') var shader = DigitalGlitch diff --git a/src/postprocessing/HalftonePass.js b/src/postprocessing/HalftonePass.js index 4a4809a0..e248427e 100644 --- a/src/postprocessing/HalftonePass.js +++ b/src/postprocessing/HalftonePass.js @@ -7,8 +7,6 @@ import { HalftoneShader } from '../shaders/HalftoneShader' */ var HalftonePass = function (width, height, params) { - new Pass.call(this) - if (HalftoneShader === undefined) { console.error('THREE.HalftonePass requires HalftoneShader') } diff --git a/src/postprocessing/OutlinePass.js b/src/postprocessing/OutlinePass.js index 79896af9..4b287a76 100644 --- a/src/postprocessing/OutlinePass.js +++ b/src/postprocessing/OutlinePass.js @@ -33,8 +33,6 @@ var OutlinePass = function (resolution, scene, camera, selectedObjects) { this._visibilityCache = new Map() - new Pass.call(this) - this.resolution = resolution !== undefined ? new Vector2(resolution.x, resolution.y) : new Vector2(256, 256) var pars = { diff --git a/src/postprocessing/SAOPass.js b/src/postprocessing/SAOPass.js index a2317e03..cc822315 100644 --- a/src/postprocessing/SAOPass.js +++ b/src/postprocessing/SAOPass.js @@ -30,8 +30,6 @@ import { UnpackDepthRGBAShader } from '../shaders/UnpackDepthRGBAShader' */ var SAOPass = function (scene, camera, depthTexture, useNormals, resolution) { - new Pass.call(this) - this.scene = scene this.camera = camera diff --git a/src/postprocessing/SMAAPass.js b/src/postprocessing/SMAAPass.js index f6460a86..6d254f5b 100644 --- a/src/postprocessing/SMAAPass.js +++ b/src/postprocessing/SMAAPass.js @@ -12,8 +12,6 @@ import { Pass, FullScreenQuad } from '../postprocessing/Pass' import { SMAAEdgesShader, SMAAWeightsShader, SMAABlendShader } from '../shaders/SMAAShader' var SMAAPass = function (width, height) { - new Pass.call(this) - // render targets this.edgesRT = new WebGLRenderTarget(width, height, { diff --git a/src/postprocessing/SSAARenderPass.js b/src/postprocessing/SSAARenderPass.js index a543a849..dec46823 100644 --- a/src/postprocessing/SSAARenderPass.js +++ b/src/postprocessing/SSAARenderPass.js @@ -21,8 +21,6 @@ import { CopyShader } from '../shaders/CopyShader' */ var SSAARenderPass = function (scene, camera, clearColor, clearAlpha) { - new Pass.call(this) - this.scene = scene this.camera = camera diff --git a/src/postprocessing/SSAOPass.js b/src/postprocessing/SSAOPass.js index 9b2b49c2..394817f4 100644 --- a/src/postprocessing/SSAOPass.js +++ b/src/postprocessing/SSAOPass.js @@ -27,8 +27,6 @@ import { SSAOBlurShader, SSAODepthShader, SSAOShader } from '../shaders/SSAOShad import { CopyShader } from '../shaders/CopyShader' var SSAOPass = function (scene, camera, width, height) { - new Pass.call(this) - this.width = width !== undefined ? width : 512 this.height = height !== undefined ? height : 512 diff --git a/src/postprocessing/SSRPass.js b/src/postprocessing/SSRPass.js index 5c1f4123..12b3d970 100644 --- a/src/postprocessing/SSRPass.js +++ b/src/postprocessing/SSRPass.js @@ -34,8 +34,6 @@ var SSRPass = function ({ morphTargets = false, groundReflector, }) { - new Pass.call(this) - this.width = width !== undefined ? width : 512 this.height = height !== undefined ? height : 512 diff --git a/src/postprocessing/SavePass.js b/src/postprocessing/SavePass.js index 8a938f4f..1cbc19b7 100644 --- a/src/postprocessing/SavePass.js +++ b/src/postprocessing/SavePass.js @@ -3,8 +3,6 @@ import { Pass, FullScreenQuad } from '../postprocessing/Pass' import { CopyShader } from '../shaders/CopyShader' var SavePass = function (renderTarget) { - new Pass.call(this) - if (CopyShader === undefined) console.error('THREE.SavePass relies on CopyShader') var shader = CopyShader diff --git a/src/postprocessing/TexturePass.js b/src/postprocessing/TexturePass.js index 7d0faf0d..8b7c845f 100644 --- a/src/postprocessing/TexturePass.js +++ b/src/postprocessing/TexturePass.js @@ -3,8 +3,6 @@ import { Pass, FullScreenQuad } from '../postprocessing/Pass' import { CopyShader } from '../shaders/CopyShader' var TexturePass = function (map, opacity) { - new Pass.call(this) - if (CopyShader === undefined) console.error('THREE.TexturePass relies on CopyShader') var shader = CopyShader diff --git a/src/postprocessing/UnrealBloomPass.js b/src/postprocessing/UnrealBloomPass.js index f7d22377..bd81dbed 100644 --- a/src/postprocessing/UnrealBloomPass.js +++ b/src/postprocessing/UnrealBloomPass.js @@ -24,8 +24,6 @@ import { LuminosityHighPassShader } from '../shaders/LuminosityHighPassShader' * - https://docs.unrealengine.com/latest/INT/Engine/Rendering/PostProcessEffects/Bloom/ */ var UnrealBloomPass = function (resolution, strength, radius, threshold) { - new Pass.call(this) - this.strength = strength !== undefined ? strength : 1 this.radius = radius this.threshold = threshold