Ejemplo n.º 1
0
        public static VertexPositionColorTexture ToVptc(CTRFramework.Vertex v, CTRFramework.Shared.Vector2b uv, float scale = 1.0f)
        {
            VertexPositionColorTexture mono_v = new VertexPositionColorTexture();

            mono_v.Position = ToVector3(v.coord, scale);
            mono_v.Color    = new Color(
                v.color.X / 255f,
                v.color.Y / 255f,
                v.color.Z / 255f
                );
            mono_v.TextureCoordinate = new Microsoft.Xna.Framework.Vector2(uv.X / 255.0f, uv.Y / 255.0f);
            return(mono_v);
        }
Ejemplo n.º 2
0
        public static VertexPositionColorTexture ToVptc(CTRFramework.Vertex v, Vector2b uv, float scale = 1.0f)
        {
            VertexPositionColorTexture mono_v = new VertexPositionColorTexture();

            mono_v.Position = ToVector3(v.coord, scale);
            mono_v.Color    = new Color(
                v.color.X / 255f,
                v.color.Y / 255f,
                v.color.Z / 255f
                );
            mono_v.TextureCoordinate = new Vector2b((byte)(uv.X / 255.0f), (byte)(uv.Y / 255.0f));
            return(mono_v);
        }