提交 1c14c0e8 编写于 作者: M Mr.doob

Moved Material legacy code.

上级 f3975a47
......@@ -263,6 +263,23 @@ Object.defineProperties( THREE.Light.prototype, {
//
Object.defineProperties( THREE.Material.prototype, {
wrapAround: {
get: function () {
console.warn( 'THREE.' + this.type + ': .wrapAround has been removed.' );
},
set: function ( value ) {
console.warn( 'THREE.' + this.type + ': .wrapAround has been removed.' );
}
},
wrapRGB: {
get: function () {
console.warn( 'THREE.' + this.type + ': .wrapRGB has been removed.' );
return new THREE.Color();
}
}
} );
Object.defineProperties( THREE.ShaderMaterial.prototype, {
derivatives: {
set: function ( value ) {
......
......@@ -187,7 +187,7 @@ THREE.Material.prototype = {
if ( this.alphaTest > 0 ) data.alphaTest = this.alphaTest;
if ( this.wireframe === true ) data.wireframe = this.wireframe;
if ( this.wireframeLinewidth > 1 ) data.wireframeLinewidth = this.wireframeLinewidth;
// TODO: Copied from Object3D.toJSON
function extractFromCache ( cache ) {
......@@ -268,27 +268,6 @@ THREE.Material.prototype = {
this.dispatchEvent( { type: 'dispose' } );
},
// Deprecated
get wrapAround () {
console.warn( 'THREE.' + this.type + ': .wrapAround has been removed.' );
},
set wrapAround ( boolean ) {
console.warn( 'THREE.' + this.type + ': .wrapAround has been removed.' );
},
get wrapRGB () {
console.warn( 'THREE.' + this.type + ': .wrapRGB has been removed.' );
return new THREE.Color();
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册