Three.js - MeshPhongMaterial



This material is similar to MeshLambertMaterial but can create more shiny surfaces. If you use this material without lighting, the camera shows nothing, and it is in black. You can use a white AmbientLight to make it visible.

const geometry = new THREE.BoxGeometry(2, 2, 2)
const material = new THREE.MeshPhongMaterial({ color, emissive, shininess })
const cube = new THREE.Mesh(geometry, material)
threejs_materials.htm
Advertisements