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

Fixed (Raw)ShaderMaterial clone(). See #6309.

上级 bb3a3197
......@@ -76,9 +76,9 @@ THREE.ShaderMaterial = function ( parameters ) {
THREE.ShaderMaterial.prototype = Object.create( THREE.Material.prototype );
THREE.ShaderMaterial.prototype.constructor = THREE.ShaderMaterial;
THREE.ShaderMaterial.prototype.clone = function () {
THREE.ShaderMaterial.prototype.clone = function ( material ) {
var material = new THREE.ShaderMaterial();
if ( material === undefined ) material = new THREE.ShaderMaterial();
THREE.Material.prototype.clone.call( this, material );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册