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 99 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
0
Which class is used to implement post-processing in three.js?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.1
Import a 3D model in ThreeJS1
Animate a mesh object horizontally from left to right in ThreeJS1
What is the main object used to display 3D scenes in three.js?1
Which class(es) do not exist in ThreeJS?2
Change the position of an object ***cube*** specifically on the x-axis in ThreeJS