We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3465c commit 9164153Copy full SHA for 9164153
examples/webgl_materials_lightmap.html
@@ -99,10 +99,11 @@
99
100
// LIGHTS
101
102
- var hemiLight = new THREE.HemisphereLight( 0xaabbff, 0x040404, 0.3 );
103
-
104
- hemiLight.position.y = 500;
105
- scene.add( hemiLight );
+ var light = new THREE.DirectionalLight( 0xaabbff, 0.3 );
+ light.position.x = 300;
+ light.position.y = 250;
+ light.position.z = -500;
106
+ scene.add( light );
107
108
// SKYDOME
109
@@ -114,7 +115,7 @@
114
115
offset: { type: "f", value: 400 },
116
exponent: { type: "f", value: 0.6 }
117
};
- uniforms.topColor.value.copy( hemiLight.color );
118
+ uniforms.topColor.value.copy( light.color );
119
120
var skyGeo = new THREE.SphereGeometry( 4000, 32, 15 );
121
var skyMat = new THREE.ShaderMaterial( {
0 commit comments