Skip to content

Commit

Permalink
Examples: GTAOPass - remove unused uniform variable and parameter (mr…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabbid76 authored and AdaRoseCannon committed Jan 15, 2024
1 parent 3550a26 commit ba45222
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions examples/jsm/postprocessing/GTAOPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,6 @@ class GTAOPass extends Pass {

}

if ( parameters.bias !== undefined ) {

this.gtaoMaterial.uniforms.bias.value = parameters.bias;

}

if ( parameters.scale !== undefined ) {

this.gtaoMaterial.uniforms.scale.value = parameters.scale;
Expand Down
2 changes: 0 additions & 2 deletions examples/jsm/shaders/GTAOShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const GTAOShader = {
radius: { value: 0.25 },
distanceExponent: { value: 1. },
thickness: { value: 1. },
bias: { value: 0.001 },
scale: { value: 1. },
sceneBoxMin: { value: new Vector3( - 1, - 1, - 1 ) },
sceneBoxMax: { value: new Vector3( 1, 1, 1 ) },
Expand Down Expand Up @@ -92,7 +91,6 @@ const GTAOShader = {
uniform float radius;
uniform float distanceExponent;
uniform float thickness;
uniform float bias;
uniform float scale;
#if SCENE_CLIP_BOX == 1
uniform vec3 sceneBoxMin;
Expand Down
2 changes: 0 additions & 2 deletions examples/webgl_postprocessing_gtao.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
radius: 0.25,
distanceExponent: 1.,
thickness: 1.,
bias: 0.001,
scale: 1.,
samples: 16,
distanceFallOff: true,
Expand All @@ -159,7 +158,6 @@
gui.add( aoParameters, 'radius' ).min( 0.01 ).max( 1 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
gui.add( aoParameters, 'distanceExponent' ).min( 1 ).max( 4 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
gui.add( aoParameters, 'thickness' ).min( 0.01 ).max( 10 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
gui.add( aoParameters, 'bias' ).min( 0 ).max( 0.1 ).step( 0.0001 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
gui.add( aoParameters, 'scale' ).min( 0.01 ).max( 2.0 ).step( 0.01 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
gui.add( aoParameters, 'samples' ).min( 2 ).max( 32 ).step( 1 ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
gui.add( aoParameters, 'screenSpaceRadius' ).onChange( () => gtaoPass.updateGtaoMaterial( aoParameters ) );
Expand Down

0 comments on commit ba45222

Please sign in to comment.