public TevOrder(EndianBinaryReader reader) { TexCoord = (TexCoordId)reader.ReadByte(); TexMap = (TexMapId)reader.ReadByte(); ChannelId = (J3DColorChannelId)reader.ReadByte(); reader.SkipByte(); }
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; }
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"); }
public TevOrder(TexCoordId texCoord, TexMapId texMap, J3DColorChannelId chanID) { TexCoord = texCoord; TexMap = texMap; ChannelId = chanID; }