|
@@ -38,12 +38,16 @@ function main() {
|
|
const scene = new THREE.Scene();
|
|
const scene = new THREE.Scene();
|
|
|
|
|
|
{
|
|
{
|
|
- const light = new THREE.DirectionalLight(0xffffff, 1);
|
|
|
|
|
|
+ const color = 0xFFFFFF;
|
|
|
|
+ const intensity = 1;
|
|
|
|
+ const light = new THREE.DirectionalLight(color, intensity);
|
|
light.position.set(-1, 2, 4);
|
|
light.position.set(-1, 2, 4);
|
|
scene.add(light);
|
|
scene.add(light);
|
|
}
|
|
}
|
|
{
|
|
{
|
|
- const light = new THREE.DirectionalLight(0xffffff, 1);
|
|
|
|
|
|
+ const color = 0xFFFFFF;
|
|
|
|
+ const intensity = 1;
|
|
|
|
+ const light = new THREE.DirectionalLight(color, intensity);
|
|
light.position.set(1, -2, -4);
|
|
light.position.set(1, -2, -4);
|
|
scene.add(light);
|
|
scene.add(light);
|
|
}
|
|
}
|