Skip to content

Commit ba45222

Browse files
Rabbid76AdaRoseCannon
authored andcommitted
Examples: GTAOPass - remove unused uniform variable and parameter (mrdoob#27348)
1 parent 3550a26 commit ba45222

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

examples/jsm/postprocessing/GTAOPass.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,6 @@ class GTAOPass extends Pass {
241241

242242
}
243243

244-
if ( parameters.bias !== undefined ) {
245-
246-
this.gtaoMaterial.uniforms.bias.value = parameters.bias;
247-
248-
}
249-
250244
if ( parameters.scale !== undefined ) {
251245

252246
this.gtaoMaterial.uniforms.scale.value = parameters.scale;

examples/jsm/shaders/GTAOShader.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const GTAOShader = {
6363
radius: { value: 0.25 },
6464
distanceExponent: { value: 1. },
6565
thickness: { value: 1. },
66-
bias: { value: 0.001 },
6766
scale: { value: 1. },
6867
sceneBoxMin: { value: new Vector3( - 1, - 1, - 1 ) },
6968
sceneBoxMax: { value: new Vector3( 1, 1, 1 ) },
@@ -92,7 +91,6 @@ const GTAOShader = {
9291
uniform float radius;
9392
uniform float distanceExponent;
9493
uniform float thickness;
95-
uniform float bias;
9694
uniform float scale;
9795
#if SCENE_CLIP_BOX == 1
9896
uniform vec3 sceneBoxMin;

examples/webgl_postprocessing_gtao.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@
135135
radius: 0.25,
136136
distanceExponent: 1.,
137137
thickness: 1.,
138-
bias: 0.001,
139138
scale: 1.,
140139
samples: 16,
141140
distanceFallOff: true,
@@ -159,7 +158,6 @@
159158
gui.add( aoParameters, 'radius' ).min( 0.01 ).max( 1 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
160159
gui.add( aoParameters, 'distanceExponent' ).min( 1 ).max( 4 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
161160
gui.add( aoParameters, 'thickness' ).min( 0.01 ).max( 10 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
162-
gui.add( aoParameters, 'bias' ).min( 0 ).max( 0.1 ).step( 0.0001 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
163161
gui.add( aoParameters, 'scale' ).min( 0.01 ).max( 2.0 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
164162
gui.add( aoParameters, 'samples' ).min( 2 ).max( 32 ).step( 1 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
165163
gui.add( aoParameters, 'screenSpaceRadius' ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );

0 commit comments

Comments
 (0)