public override GameObject Clone() { Geometry res = new Geometry(); res.SetLocalTranslation(this.GetLocalTranslation()); res.SetLocalScale(this.GetLocalScale()); res.SetLocalRotation(this.GetLocalRotation()); res.Mesh = this.mesh; res.shader = this.shader; res.depthShader = this.depthShader; res.normalsShader = this.normalsShader; res.ShaderProperties = this.ShaderProperties; return res; }
public override GameObject Clone() { Geometry res = new Geometry(); res.SetLocalTranslation(this.GetLocalTranslation()); res.SetLocalScale(this.GetLocalScale()); res.SetLocalRotation(this.GetLocalRotation()); res.Mesh = this.mesh; res.shader = this.shader; res.depthShader = this.depthShader; res.normalsShader = this.normalsShader; res.ShaderProperties = this.ShaderProperties; return(res); }
public override GameObject Clone() { Geometry res = new Geometry(); res.SetLocalTranslation(this.GetLocalTranslation()); res.SetLocalScale(this.GetLocalScale()); res.SetLocalRotation(this.GetLocalRotation()); res.Material = this.Material.Clone(); res.Mesh = this.mesh; res.shader = this.shader; res.depthShader = this.depthShader; res.normalsShader = this.normalsShader; res.ShaderProperties = this.ShaderProperties; for (int i = 0; i < controls.Count; i++) { res.AddController(controls[i]); } return res; }