|
@@ -20479,7 +20479,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
shadowMapType: renderer.shadowMap.type,
|
|
shadowMapType: renderer.shadowMap.type,
|
|
|
|
|
|
toneMapping: toneMapping,
|
|
toneMapping: toneMapping,
|
|
- useLegacyLights: renderer.useLegacyLights,
|
|
|
|
|
|
+ useLegacyLights: renderer._useLegacyLights,
|
|
|
|
|
|
premultipliedAlpha: material.premultipliedAlpha,
|
|
premultipliedAlpha: material.premultipliedAlpha,
|
|
|
|
|
|
@@ -27186,7 +27186,7 @@ function WebGLMaterials( renderer, properties ) {
|
|
uniforms.lightMap.value = material.lightMap;
|
|
uniforms.lightMap.value = material.lightMap;
|
|
|
|
|
|
// artist-friendly light intensity scaling factor
|
|
// artist-friendly light intensity scaling factor
|
|
- const scaleFactor = ( renderer.useLegacyLights === true ) ? Math.PI : 1;
|
|
|
|
|
|
+ const scaleFactor = ( renderer._useLegacyLights === true ) ? Math.PI : 1;
|
|
|
|
|
|
uniforms.lightMapIntensity.value = material.lightMapIntensity * scaleFactor;
|
|
uniforms.lightMapIntensity.value = material.lightMapIntensity * scaleFactor;
|
|
|
|
|
|
@@ -28025,7 +28025,7 @@ class WebGLRenderer {
|
|
|
|
|
|
// physical lights
|
|
// physical lights
|
|
|
|
|
|
- this.useLegacyLights = true;
|
|
|
|
|
|
+ this._useLegacyLights = false;
|
|
|
|
|
|
// tone mapping
|
|
// tone mapping
|
|
|
|
|
|
@@ -28832,7 +28832,7 @@ class WebGLRenderer {
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
- currentRenderState.setupLights( _this.useLegacyLights );
|
|
|
|
|
|
+ currentRenderState.setupLights( _this._useLegacyLights );
|
|
|
|
|
|
scene.traverse( function ( object ) {
|
|
scene.traverse( function ( object ) {
|
|
|
|
|
|
@@ -28985,7 +28985,7 @@ class WebGLRenderer {
|
|
|
|
|
|
// render scene
|
|
// render scene
|
|
|
|
|
|
- currentRenderState.setupLights( _this.useLegacyLights );
|
|
|
|
|
|
+ currentRenderState.setupLights( _this._useLegacyLights );
|
|
|
|
|
|
if ( camera.isArrayCamera ) {
|
|
if ( camera.isArrayCamera ) {
|
|
|
|
|
|
@@ -30291,14 +30291,14 @@ class WebGLRenderer {
|
|
|
|
|
|
get physicallyCorrectLights() { // @deprecated, r150
|
|
get physicallyCorrectLights() { // @deprecated, r150
|
|
|
|
|
|
- console.warn( 'THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead.' );
|
|
|
|
|
|
+ console.warn( 'THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead.' );
|
|
return ! this.useLegacyLights;
|
|
return ! this.useLegacyLights;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
set physicallyCorrectLights( value ) { // @deprecated, r150
|
|
set physicallyCorrectLights( value ) { // @deprecated, r150
|
|
|
|
|
|
- console.warn( 'THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead.' );
|
|
|
|
|
|
+ console.warn( 'THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead.' );
|
|
this.useLegacyLights = ! value;
|
|
this.useLegacyLights = ! value;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -30317,6 +30317,20 @@ class WebGLRenderer {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ get useLegacyLights() { // @deprecated, r155
|
|
|
|
+
|
|
|
|
+ console.warn( 'THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: TODO.' );
|
|
|
|
+ return this._useLegacyLights;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ set useLegacyLights( value ) { // @deprecated, r155
|
|
|
|
+
|
|
|
|
+ console.warn( 'THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: TODO.' );
|
|
|
|
+ this._useLegacyLights = value;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
class WebGL1Renderer extends WebGLRenderer {}
|
|
class WebGL1Renderer extends WebGLRenderer {}
|
|
@@ -34902,7 +34916,7 @@ class CapsuleGeometry extends LatheGeometry {
|
|
|
|
|
|
this.parameters = {
|
|
this.parameters = {
|
|
radius: radius,
|
|
radius: radius,
|
|
- height: length,
|
|
|
|
|
|
+ length: length,
|
|
capSegments: capSegments,
|
|
capSegments: capSegments,
|
|
radialSegments: radialSegments,
|
|
radialSegments: radialSegments,
|
|
};
|
|
};
|
|
@@ -46876,7 +46890,7 @@ class PropertyBinding {
|
|
// ensure there is a value node
|
|
// ensure there is a value node
|
|
if ( ! targetObject ) {
|
|
if ( ! targetObject ) {
|
|
|
|
|
|
- console.error( 'THREE.PropertyBinding: Trying to update node for track: ' + this.path + ' but it wasn\'t found.' );
|
|
|
|
|
|
+ console.warn( 'THREE.PropertyBinding: No target node found for track: ' + this.path + '.' );
|
|
return;
|
|
return;
|
|
|
|
|
|
}
|
|
}
|