提交 440f508d 编写于 作者: M Mr.doob

Tweaks to Light's shadow API. Object3D has .castShadow...

上级 bea45d2a
......@@ -17,16 +17,6 @@ THREE.Light.prototype = Object.create( THREE.Object3D.prototype );
THREE.Light.prototype.constructor = THREE.Light;
Object.defineProperties( THREE.Light.prototype, {
castShadow: {
get: function () {
if ( this.shadow === undefined ) return false;
return this.shadow.enabled;
},
set: function ( value ) {
if ( this.shadow === undefined ) return;
this.shadow.enabled = value;
}
},
onlyShadow: {
set: function ( value ) {
console.warn( 'THREE.Light: .onlyShadow has been removed.' );
......
......@@ -4,8 +4,6 @@
THREE.LightShadow = function ( camera ) {
this.enabled = false;
this.camera = camera;
this.bias = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册