2
0
Эх сурвалжийг харах

Examples SkyShader: Fix parameter order

I stumbled upon this one argument thats not in order with the others, this has no effect on the user.
Also there is no method `setLens` in THREE.Camera, so this comment should be removed.
weiserhei 6 жил өмнө
parent
commit
fff82bdf25

+ 1 - 3
examples/webgl_shaders_sky.html

@@ -50,9 +50,9 @@
 				var effectController = {
 				var effectController = {
 					turbidity: 10,
 					turbidity: 10,
 					rayleigh: 2,
 					rayleigh: 2,
+					luminance: 1,
 					mieCoefficient: 0.005,
 					mieCoefficient: 0.005,
 					mieDirectionalG: 0.8,
 					mieDirectionalG: 0.8,
-					luminance: 1,
 					inclination: 0.49, // elevation / inclination
 					inclination: 0.49, // elevation / inclination
 					azimuth: 0.25, // Facing front,
 					azimuth: 0.25, // Facing front,
 					sun: ! true
 					sun: ! true
@@ -104,8 +104,6 @@
 				camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 100, 2000000 );
 				camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 100, 2000000 );
 				camera.position.set( 0, 100, 2000 );
 				camera.position.set( 0, 100, 2000 );
 
 
-				//camera.setLens(20);
-
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
 
 
 				var helper = new THREE.GridHelper( 10000, 2, 0xffffff, 0xffffff );
 				var helper = new THREE.GridHelper( 10000, 2, 0xffffff, 0xffffff );