Medium
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 85 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about ThreeJS
3
Generate a white sphere in the middle of the scene with a radius of 1, consisting of 32 segments in width and 18 segments in height.2
Change the position of an object ***cube*** specifically on the x-axis in ThreeJS1
Which class(es) do not exist in ThreeJS?1
Import a 3D model in ThreeJS0
Which are the true overlay libraries for Three.js for front-end frameworks?