- Three.js Tutorial
- Three.js - Home
- Three.js - Introduction
- Three.js - Installation
- Three.js - Hello Cube App
- Three.js - Renderer and Responsiveness
- Three.js - Responsive Design
- Three.js - Debug and Stats
- Three.js - Cameras
- Three.js - Controls
- Three.js - Lights & Shadows
- Three.js - Geometries
- Three.js - Materials
- Three.js - Textures
- Three.js - Drawing Lines
- Three.js - Animations
- Three.js - Creating Text
- Three.js - Loading 3D Models
- Three.js - Libraries and Plugins
- Three.js Useful Resources
- Three.js - Quick Guide
- Three.js - Useful Resources
- Three.js - Discussion
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