|
@@ -81,7 +81,7 @@ THREE.WebGLPrograms = function ( renderer, capabilities ) {
|
|
|
|
|
|
if ( precision !== material.precision ) {
|
|
|
|
|
|
- console.warn( 'THREE.WebGLRenderer.initMaterial:', material.precision, 'not supported, using', precision, 'instead.' );
|
|
|
+ console.warn( 'THREE.WebGLProgram.getParameters:', material.precision, 'not supported, using', precision, 'instead.' );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -136,10 +136,10 @@ THREE.WebGLPrograms = function ( renderer, capabilities ) {
|
|
|
numSpotLights: lights.spot.length,
|
|
|
numHemiLights: lights.hemi.length,
|
|
|
|
|
|
- maxShadows: lights.shadows,
|
|
|
+ maxShadows: lights.shadows.length,
|
|
|
pointLightShadows: lights.shadowsPointLight,
|
|
|
|
|
|
- shadowMapEnabled: renderer.shadowMap.enabled && object.receiveShadow && lights.shadows > 0,
|
|
|
+ shadowMapEnabled: renderer.shadowMap.enabled && object.receiveShadow && lights.shadows.length > 0,
|
|
|
shadowMapType: renderer.shadowMap.type,
|
|
|
shadowMapDebug: renderer.shadowMap.debug,
|
|
|
|