提交 2a8c128e 编写于 作者: M Mr.doob

WebGLProgram: Fixed light.shadows count. Fixed warning message.

上级 a103cd56
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册