Skip to content

Commit 3452639

Browse files
authored
harominze uniforms order
1 parent fff82bd commit 3452639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/webgl_shaders_sky.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
var effectController = {
5151
turbidity: 10,
5252
rayleigh: 2,
53-
luminance: 1,
5453
mieCoefficient: 0.005,
5554
mieDirectionalG: 0.8,
55+
luminance: 1,
5656
inclination: 0.49, // elevation / inclination
5757
azimuth: 0.25, // Facing front,
5858
sun: ! true
@@ -65,10 +65,10 @@
6565
var uniforms = sky.material.uniforms;
6666
uniforms[ "turbidity" ].value = effectController.turbidity;
6767
uniforms[ "rayleigh" ].value = effectController.rayleigh;
68-
uniforms[ "luminance" ].value = effectController.luminance;
6968
uniforms[ "mieCoefficient" ].value = effectController.mieCoefficient;
7069
uniforms[ "mieDirectionalG" ].value = effectController.mieDirectionalG;
71-
70+
uniforms[ "luminance" ].value = effectController.luminance;
71+
7272
var theta = Math.PI * ( effectController.inclination - 0.5 );
7373
var phi = 2 * Math.PI * ( effectController.azimuth - 0.5 );
7474

0 commit comments

Comments
 (0)