Exemple #1
0
        public TevStage(EndianBinaryReader reader)
        {
            reader.SkipByte();

            ColorInA = (CombineColorInput)reader.ReadByte();
            ColorInB = (CombineColorInput)reader.ReadByte();
            ColorInC = (CombineColorInput)reader.ReadByte();
            ColorInD = (CombineColorInput)reader.ReadByte();

            ColorOp    = (TevOp)reader.ReadByte();
            ColorBias  = (TevBias)reader.ReadByte();
            ColorScale = (TevScale)reader.ReadByte();
            ColorClamp = reader.ReadBoolean();
            ColorRegId = (TevRegisterId)reader.ReadByte();

            AlphaInA = (CombineAlphaInput)reader.ReadByte();
            AlphaInB = (CombineAlphaInput)reader.ReadByte();
            AlphaInC = (CombineAlphaInput)reader.ReadByte();
            AlphaInD = (CombineAlphaInput)reader.ReadByte();

            AlphaOp    = (TevOp)reader.ReadByte();
            AlphaBias  = (TevBias)reader.ReadByte();
            AlphaScale = (TevScale)reader.ReadByte();
            AlphaClamp = reader.ReadBoolean();
            AlphaRegId = (TevRegisterId)reader.ReadByte();

            reader.SkipByte();
        }
Exemple #2
0
        public TevStage(TevStageParameters parameters)
        {
            ColorInA = parameters.ColorInA;
            ColorInB = parameters.ColorInB;
            ColorInC = parameters.ColorInC;
            ColorInD = parameters.ColorInD;

            ColorOp    = parameters.ColorOp;
            ColorBias  = parameters.ColorBias;
            ColorScale = parameters.ColorScale;
            ColorClamp = parameters.ColorClamp;
            ColorRegId = parameters.ColorRegId;

            AlphaInA = parameters.AlphaInA;
            AlphaInB = parameters.AlphaInB;
            AlphaInC = parameters.AlphaInC;
            AlphaInD = parameters.AlphaInD;

            AlphaOp    = parameters.AlphaOp;
            AlphaBias  = parameters.AlphaBias;
            AlphaScale = parameters.AlphaScale;
            AlphaClamp = parameters.AlphaClamp;
            AlphaRegId = parameters.AlphaRegId;
        }