Parcourir la source

Examples: Clean up. (#28864)

Michael Herzog il y a 1 an
Parent
commit
ab335bf602
2 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 0 2
      examples/jsm/shaders/FXAAShader.js
  2. 1 1
      examples/jsm/shaders/GTAOShader.js

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

@@ -220,11 +220,9 @@ const FXAAShader = {
 			vec2 posN = posM;
 			vec2 posN = posM;
 			vec2 posP = posM;
 			vec2 posP = posM;
 
 
-			int iterationsUsed = 0;
 			int iterationsUsedN = 0;
 			int iterationsUsedN = 0;
 			int iterationsUsedP = 0;
 			int iterationsUsedP = 0;
 			for( int i = 0; i < NUM_SAMPLES; i++ ) {
 			for( int i = 0; i < NUM_SAMPLES; i++ ) {
-				iterationsUsed = i;
 
 
 				float increment = float(i + 1);
 				float increment = float(i + 1);
 
 

+ 1 - 1
examples/jsm/shaders/GTAOShader.js

@@ -203,7 +203,7 @@ const GTAOShader = {
 
 
 			const int DIRECTIONS = SAMPLES < 30 ? 3 : 5;
 			const int DIRECTIONS = SAMPLES < 30 ? 3 : 5;
 			const int STEPS = (SAMPLES + DIRECTIONS - 1) / DIRECTIONS;
 			const int STEPS = (SAMPLES + DIRECTIONS - 1) / DIRECTIONS;
-			float ao = 0.0, totalWeight = 0.0;
+			float ao = 0.0;
 			for (int i = 0; i < DIRECTIONS; ++i) {
 			for (int i = 0; i < DIRECTIONS; ++i) {
 				
 				
 				float angle = float(i) / float(DIRECTIONS) * PI;
 				float angle = float(i) / float(DIRECTIONS) * PI;