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 02817cf2049204..65275669167e8c 100644 --- a/src/lights/PointLight.js +++ b/src/lights/PointLight.js @@ -3,14 +3,14 @@ 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 ); 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 7c352593358007..ded1234236bcdf 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 ); @@ -18,7 +18,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.shadow = new SpotLightShadow();