提交 970d9989 编写于 作者: M Mr.doob

Moved ShaderMaterial legacy code.

上级 a5d831c5
......@@ -96,6 +96,17 @@ Object.defineProperties( THREE.Light.prototype, {
//
Object.defineProperties( THREE.ShaderMaterial.prototype, {
derivatives: {
set: function ( value ) {
console.warn( 'THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' );
this.extensions.derivatives = value;
}
}
} );
//
Object.defineProperties( THREE.WebGLRenderer.prototype, {
supportsFloatTextures: {
value: function () {
......
......@@ -138,24 +138,3 @@ THREE.ShaderMaterial.prototype.toJSON = function ( meta ) {
return data;
};
Object.defineProperties( THREE.ShaderMaterial.prototype, {
derivatives: {
get: function () {
return this.extensions.derivatives;
},
set: function ( value ) {
console.warn( 'THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' );
this.extensions.derivatives = value;
}
}
} );
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册