Example #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;
 }
Example #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);
        }
Example #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;
 }
Example #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;
 }