Esempio n. 1
0
        public RMaterial Clone(string name)
        {
            RMaterial clone = RMaterials.Instance.CreateMaterial(name);

            clone.Textures      = this.Textures;
            clone.Colors        = this.Colors;
            clone.Shininess     = this.Shininess;
            clone.SpecularPower = this.SpecularPower;
            clone.Shader        = this.Shader;
            return(clone);
        }
Esempio n. 2
0
 public RMeshBuilder()
 {
     this.Scale         = Vector3.One;
     this.Rotation      = Quaternion.Identity;
     this.Position      = Vector3.Zero;
     this._material     = RMaterial.defaultMaterial;
     this.IsDrawable    = true;
     this.CullEnable    = true;
     this.CullMode      = States.RCullMode.CullClockwiseFace;
     this.DepthWrite    = true;
     this.BlendEnable   = true;
     this.PrimitiveType = RPrimitiveType.Triangles;
 }
Esempio n. 3
0
 RMeshPart()
 {
     Material = RMaterial.defaultMaterial;
 }