Пример #1
0
 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;
 }
Пример #2
0
        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);
        }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }