Esempio n. 1
0
 public TevOrder(EndianBinaryReader reader)
 {
     TexCoord  = (TexCoordId)reader.ReadByte();
     TexMap    = (TexMapId)reader.ReadByte();
     ChannelId = (J3DColorChannelId)reader.ReadByte();
     reader.SkipByte();
 }
Esempio n. 2
0
        public void AddChannelControl(J3DColorChannelId id, bool enable, ColorSrc MatSrcColor, LightId litId, DiffuseFn diffuse, J3DAttenuationFn atten, ColorSrc ambSrcColor)
        {
            ChannelControl control = new ChannelControl
            {
                Enable              = enable,
                MaterialSrcColor    = MatSrcColor,
                LitMask             = litId,
                DiffuseFunction     = diffuse,
                AttenuationFunction = atten,
                AmbientSrcColor     = ambSrcColor
            };

            ChannelControls[(int)id] = control;
        }
Esempio n. 3
0
        public static GXColorChannelId ToGXColorChannelId(this J3DColorChannelId id)
        {
            switch (id)
            {
            case J3DColorChannelId.Color0: return(GXColorChannelId.Color0);

            case J3DColorChannelId.Color1: return(GXColorChannelId.Color1);

            case J3DColorChannelId.Alpha0: return(GXColorChannelId.Alpha0);

            case J3DColorChannelId.Alpha1: return(GXColorChannelId.Alpha1);
            }

            throw new ArgumentOutOfRangeException("id");
        }
Esempio n. 4
0
 public TevOrder(TexCoordId texCoord, TexMapId texMap, J3DColorChannelId chanID)
 {
     TexCoord  = texCoord;
     TexMap    = texMap;
     ChannelId = chanID;
 }