提交 4bb7be70 编写于 作者: M Mr.doob

LightShadow: Removed shadowDarkness. See #7321.

上级 0ba9d0a5
......@@ -71,7 +71,7 @@ Object.defineProperties( THREE.Light.prototype, {
},
shadowDarkness: {
set: function ( value ) {
this.shadow.darkness = value;
console.warn( 'THREE.Light: .shadowDarkness has been removed.' );
}
},
shadowMapWidth: {
......
......@@ -7,7 +7,6 @@ THREE.LightShadow = function ( camera ) {
this.camera = camera;
this.bias = 0;
this.darkness = 0.5;
this.mapSize = new THREE.Vector2( 512, 512 );
......
......@@ -2002,11 +2002,11 @@ THREE.WebGLRenderer = function ( parameters ) {
shadow.matrix.identity().setPosition( _vector3 );
// for point lights we set the sign of the shadowDarkness uniform to be negative
uniforms.shadowDarkness.value[ j ] = - shadow.darkness;
uniforms.shadowDarkness.value[ j ] = - 1.0;
} else {
uniforms.shadowDarkness.value[ j ] = shadow.darkness;
uniforms.shadowDarkness.value[ j ] = 1.0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册