- 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 - MeshLambertMaterial
You can use this material to create dull-looking, non-shiny surfaces. It is a very easy-to-use material that responds to the lighting sources in the scene. It has two main properties −
color − This is the color of the material
emissive − This is the color that the material emits. You can use this to create objects that look like they glow.
const geometry = new THREE.BoxGeometry(2, 2, 2) const material = new THREE.MeshLambertMaterial({ color, emissive }) const cube = new THREE.Mesh(geometry, material)
threejs_materials.htm
Advertisements