diff --git a/examples/jsm/lights/RectAreaLightUniformsLib.js b/examples/jsm/lights/RectAreaLightUniformsLib.js index dea8e57c98c542dd99e5778a01a8b58de07d9fe4..920303f7dd330ac06d86015df3e2540fbb0d0708 100644 --- a/examples/jsm/lights/RectAreaLightUniformsLib.js +++ b/examples/jsm/lights/RectAreaLightUniformsLib.js @@ -42,12 +42,8 @@ var RectAreaLightUniformsLib = { // data textures var ltc_1 = new DataTexture( new Float32Array( LTC_MAT_1 ), 64, 64, RGBAFormat, FloatType, UVMapping, ClampToEdgeWrapping, ClampToEdgeWrapping, LinearFilter, NearestFilter, 1 ); - var ltc_2 = new DataTexture( new Float32Array( LTC_MAT_2 ), 64, 64, RGBAFormat, FloatType, UVMapping, ClampToEdgeWrapping, ClampToEdgeWrapping, LinearFilter, NearestFilter, 1 ); - ltc_1.needsUpdate = true; - ltc_2.needsUpdate = true; - UniformsLib.LTC_1 = ltc_1; UniformsLib.LTC_2 = ltc_2; diff --git a/examples/jsm/misc/Ocean.js b/examples/jsm/misc/Ocean.js index ab362cf0b1b41fb924fdcc0f4c884feedfea7c19..18a87c2357e95888638a85868705e46377a9c3a3 100644 --- a/examples/jsm/misc/Ocean.js +++ b/examples/jsm/misc/Ocean.js @@ -276,7 +276,6 @@ Ocean.prototype.generateSeedPhaseTexture = function () { this.pingPhaseTexture.wrapS = ClampToEdgeWrapping; this.pingPhaseTexture.wrapT = ClampToEdgeWrapping; this.pingPhaseTexture.type = FloatType; - this.pingPhaseTexture.needsUpdate = true; }; diff --git a/examples/jsm/objects/Lensflare.js b/examples/jsm/objects/Lensflare.js index 5cc84931a2677912c17a96dabe9871015f38671e..09b265102eae80aa34f16da81bacf202cfb82c77 100644 --- a/examples/jsm/objects/Lensflare.js +++ b/examples/jsm/objects/Lensflare.js @@ -42,14 +42,12 @@ var Lensflare = function () { tempMap.magFilter = NearestFilter; tempMap.wrapS = ClampToEdgeWrapping; tempMap.wrapT = ClampToEdgeWrapping; - tempMap.needsUpdate = true; var occlusionMap = new DataTexture( new Uint8Array( 16 * 16 * 3 ), 16, 16, RGBFormat ); occlusionMap.minFilter = NearestFilter; occlusionMap.magFilter = NearestFilter; occlusionMap.wrapS = ClampToEdgeWrapping; occlusionMap.wrapT = ClampToEdgeWrapping; - occlusionMap.needsUpdate = true; // material diff --git a/examples/jsm/postprocessing/GlitchPass.js b/examples/jsm/postprocessing/GlitchPass.js index 415a07433781d1f93d5f1e410eb60e29c858b0d7..1da28d63a52629cbdea58a46670fe1e65cbe0b9f 100644 --- a/examples/jsm/postprocessing/GlitchPass.js +++ b/examples/jsm/postprocessing/GlitchPass.js @@ -115,9 +115,7 @@ GlitchPass.prototype = Object.assign( Object.create( Pass.prototype ), { } - var texture = new DataTexture( data_arr, dt_size, dt_size, RGBFormat, FloatType ); - texture.needsUpdate = true; - return texture; + return new DataTexture( data_arr, dt_size, dt_size, RGBFormat, FloatType ); } diff --git a/examples/jsm/postprocessing/SSAOPass.js b/examples/jsm/postprocessing/SSAOPass.js index f59e922a220bd571ec4e0b30b12ef77df4b3418d..60cf672679e49d6d6968e06dc3b8a65d91a1b88f 100644 --- a/examples/jsm/postprocessing/SSAOPass.js +++ b/examples/jsm/postprocessing/SSAOPass.js @@ -418,7 +418,6 @@ SSAOPass.prototype = Object.assign( Object.create( Pass.prototype ), { this.noiseTexture = new DataTexture( data, width, height, RGBAFormat, FloatType ); this.noiseTexture.wrapS = RepeatWrapping; this.noiseTexture.wrapT = RepeatWrapping; - this.noiseTexture.needsUpdate = true; }