diff --git a/examples/screenshots/webgl_loader_md2.jpg b/examples/screenshots/webgl_loader_md2.jpg index 6e9732e8e69ac6..52dd4b434ddb50 100644 Binary files a/examples/screenshots/webgl_loader_md2.jpg and b/examples/screenshots/webgl_loader_md2.jpg differ diff --git a/examples/screenshots/webgl_materials_normalmap.jpg b/examples/screenshots/webgl_materials_normalmap.jpg index 59f669da19f99e..0ada7521128436 100644 Binary files a/examples/screenshots/webgl_materials_normalmap.jpg and b/examples/screenshots/webgl_materials_normalmap.jpg differ diff --git a/examples/screenshots/webgl_materials_subsurface_scattering.jpg b/examples/screenshots/webgl_materials_subsurface_scattering.jpg index c93b20b27ae55d..f2b899d83d4a00 100644 Binary files a/examples/screenshots/webgl_materials_subsurface_scattering.jpg and b/examples/screenshots/webgl_materials_subsurface_scattering.jpg differ diff --git a/examples/screenshots/webgl_mirror.jpg b/examples/screenshots/webgl_mirror.jpg index 2e6948b4cabda7..4d7099e4707561 100644 Binary files a/examples/screenshots/webgl_mirror.jpg and b/examples/screenshots/webgl_mirror.jpg differ diff --git a/examples/screenshots/webgl_portal.jpg b/examples/screenshots/webgl_portal.jpg index 422c3c04e6b02a..bc399d371c0c43 100644 Binary files a/examples/screenshots/webgl_portal.jpg and b/examples/screenshots/webgl_portal.jpg differ diff --git a/examples/screenshots/webgl_refraction.jpg b/examples/screenshots/webgl_refraction.jpg index 78076a50831fda..faf75a1c35a027 100644 Binary files a/examples/screenshots/webgl_refraction.jpg and b/examples/screenshots/webgl_refraction.jpg differ diff --git a/examples/screenshots/webgl_shadowmap_pointlight.jpg b/examples/screenshots/webgl_shadowmap_pointlight.jpg index fab7dc64eabbda..45134ed9237498 100644 Binary files a/examples/screenshots/webgl_shadowmap_pointlight.jpg and b/examples/screenshots/webgl_shadowmap_pointlight.jpg differ diff --git a/src/lights/PointLight.js b/src/lights/PointLight.js index b5acf8d00d96d1..7940a16e4511fd 100644 --- a/src/lights/PointLight.js +++ b/src/lights/PointLight.js @@ -3,7 +3,7 @@ import { PointLightShadow } from './PointLightShadow.js'; class PointLight extends Light { - constructor( color, intensity, distance = 0, decay = 1 ) { + constructor( color, intensity, distance = 0, decay = 2 ) { super( color, intensity ); @@ -12,7 +12,7 @@ class PointLight extends Light { this.type = 'PointLight'; this.distance = distance; - this.decay = decay; // for physically correct lights, should be 2. + this.decay = decay; this.shadow = new PointLightShadow(); diff --git a/src/lights/SpotLight.js b/src/lights/SpotLight.js index 273d01b54cb95e..49ac6a081211a7 100644 --- a/src/lights/SpotLight.js +++ b/src/lights/SpotLight.js @@ -4,7 +4,7 @@ import { Object3D } from '../core/Object3D.js'; class SpotLight extends Light { - constructor( color, intensity, distance = 0, angle = Math.PI / 3, penumbra = 0, decay = 1 ) { + constructor( color, intensity, distance = 0, angle = Math.PI / 3, penumbra = 0, decay = 2 ) { super( color, intensity ); @@ -20,7 +20,7 @@ class SpotLight extends Light { this.distance = distance; this.angle = angle; this.penumbra = penumbra; - this.decay = decay; // for physically correct lights, should be 2. + this.decay = decay; this.map = null;