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 112 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Change the position of an object ***cube*** specifically on the x-axis in ThreeJS0
In a Three.js configurator, clicking a model area changes its finish. The team targets WCAG 2.2 Level A. This functionality does not intrinsically require a precise pointer path. Which solution provides keyboard access? Select one answer.1
Import a 3D model in ThreeJS1
Animate a mesh object horizontally from left to right in ThreeJS4
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
Which class(es) do not exist in ThreeJS?1
What is the main object used to display 3D scenes in three.js?