Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions examples/jsm/environments/RoomEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
BoxGeometry,
InstancedMesh,
Mesh,
MeshBasicMaterial,
MeshLambertMaterial,
MeshStandardMaterial,
PointLight,
Scene,
Expand Down Expand Up @@ -168,8 +168,13 @@ class RoomEnvironment extends Scene {

function createAreaLightMaterial( intensity ) {

const material = new MeshBasicMaterial();
material.color.setScalar( intensity );
// create an emissive-only material. see #31348
const material = new MeshLambertMaterial( {
color: 0x000000,
emissive: 0xffffff,
emissiveIntensity: intensity
} );

return material;

}
Expand Down
2 changes: 1 addition & 1 deletion src/materials/MeshBasicMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MeshBasicMaterial extends Material {
* @type {Color}
* @default (1,1,1)
*/
this.color = new Color( 0xffffff ); // emissive
this.color = new Color( 0xffffff ); // diffuse

/**
* The color map. May optionally include an alpha channel, typically combined
Expand Down