Pārlūkot izejas kodu

Examples: GTAOPass - remove unused uniform variable and parameter (#27348)

Gernot Steinegger 1 gadu atpakaļ
vecāks
revīzija
65db18a9e8

+ 0 - 6
examples/jsm/postprocessing/GTAOPass.js

@@ -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;

+ 0 - 2
examples/jsm/shaders/GTAOShader.js

@@ -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 ) },
@@ -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;

+ 0 - 2
examples/webgl_postprocessing_gtao.html

@@ -135,7 +135,6 @@
 					radius: 0.25,
 					distanceExponent: 1.,
 					thickness: 1.,
-					bias: 0.001,
 					scale: 1.,
 					samples: 16,
 					distanceFallOff: true,
@@ -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 ) );