Question from the Threejs test

Create a white cube with a red point light in ThreeJS

Hard

What will the code below displays?

const cube = new THREE.Mesh(
    new THREE.BoxBufferGeometry(1, 1, 1),
    new THREE.MeshBasicMaterial()
);
const point_light = new THREE.PointLight('red', 0.5);
point_light.position.set(2, 3, 4);
scene.add(cube, point_light);
Author: DamienStatus: PublishedQuestion passed 48 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!