File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
examples/jsm/environments Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 33 BoxGeometry ,
44 InstancedMesh ,
55 Mesh ,
6- MeshBasicMaterial ,
6+ MeshLambertMaterial ,
77 MeshStandardMaterial ,
88 PointLight ,
99 Scene ,
@@ -168,8 +168,13 @@ class RoomEnvironment extends Scene {
168168
169169function createAreaLightMaterial ( intensity ) {
170170
171- const material = new MeshBasicMaterial ( ) ;
172- material . color . setScalar ( intensity ) ;
171+ // create an emissive-only material. see #31348
172+ const material = new MeshLambertMaterial ( {
173+ color : 0x000000 ,
174+ emissive : 0xffffff ,
175+ emissiveIntensity : intensity
176+ } ) ;
177+
173178 return material ;
174179
175180}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class MeshBasicMaterial extends Material {
4242 * @type {Color }
4343 * @default (1,1,1)
4444 */
45- this . color = new Color ( 0xffffff ) ; // emissive
45+ this . color = new Color ( 0xffffff ) ; // diffuse
4646
4747 /**
4848 * The color map. May optionally include an alpha channel, typically combined
You can’t perform that action at this time.
0 commit comments