Esempio n. 1
0
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Texture
            builder.SetTexture(input.ReadString());

            // Diffuse color
            builder.SetDiffuseColor(vector3Reader.Read(input));

            // Emissive color
            builder.SetEmissiveColor(vector3Reader.Read(input));

            // Specular color
            builder.SetSpecularColor(vector3Reader.Read(input));

            // Specular power
            builder.SetSpecularPower(input.ReadSingle());

            // Alpha
            builder.SetAlpha(input.ReadSingle());

            // Vertex color enabled
            builder.SetVertexColorEnabled(input.ReadBoolean());

            return(builder.End());
        }
Esempio n. 2
0
        protected internal override object Read(ContentReader input)
        {
            builder.Begin();

            // Center
            builder.SetCenter(vector3Reader.Read(input));

            // Radius
            builder.SetRadius(input.ReadSingle());

            return(builder.End());
        }