public TEVStage(ColorEnv colEnv, AlphaEnv alphaEnv, CMD cmd, TevKColorSel kc, TevKAlphaSel ka, TexMapID id, TexCoordID coord, ColorSelChan col, bool useTex) { _colorEnv = colEnv; _alphaEnv = alphaEnv; _cmd = cmd; _kcSel = kc; _kaSel = ka; _texMapID = id; _texCoord = coord; _colorChan = col; _texEnabled = useTex; }
public MDL0TEVStageNode(ColorEnv colEnv, AlphaEnv alphaEnv, CMD cmd, TevKColorSel kc, TevKAlphaSel ka, TexMapID id, TexCoordID coord, ColorSelChan col, bool useTex) { _colorEnv = colEnv; _alphaEnv = alphaEnv; _cmd = cmd; _kcSel = kc; _kaSel = ka; _texMapID = id; _texCoord = coord; _colorChan = col; _texEnabled = useTex; }
public override void getValues() { ColorEnv data = new ColorEnv(_rawValue); seld = data.SelD; selc = data.SelC; selb = data.SelB; sela = data.SelA; bias = data.Bias; sub = data.Sub; clamp = data.Clamp; shift = data.Shift; dest = data.Dest; }
public void getColEnvValues() { ColorEnv data = new ColorEnv(rawColEnv); cseld = data.SelD; cselc = data.SelC; cselb = data.SelB; csela = data.SelA; cbias = data.Bias; csub = data.Sub; cclamp = data.Clamp; cshift = data.Shift; cdest = data.Dest; }
public void DefaultAsMetal(int texIndex) { if (Index == 0) { _colorEnv = 0x28F8AF; _alphaEnv = 0x08F2F0; ConstantColorSelection = TevKColorSel.ConstantColor0_Value; ConstantAlphaSelection = TevKAlphaSel.ConstantColor0_Alpha; _colorChan = (ColorSelChan)0; TextureCoordID = TexCoordID.TexCoord0 + texIndex; TextureMapID = TexMapID.TexMap0 + texIndex; TextureEnabled = true; } else if (Index == 1) { _colorEnv = 0x08AFF0; _alphaEnv = 0x08FF80; ConstantColorSelection = TevKColorSel.ConstantColor0_Value; ConstantAlphaSelection = TevKAlphaSel.ConstantColor0_Alpha; _colorChan = (ColorSelChan)1; TextureCoordID = TexCoordID.TexCoord7; TextureMapID = TexMapID.TexMap7; TextureEnabled = false; } else if (Index == 2) { _colorEnv = 0x08FEB0; _alphaEnv = 0x081FF0; ConstantColorSelection = TevKColorSel.ConstantColor1_Value; ConstantAlphaSelection = TevKAlphaSel.ConstantColor0_Alpha; _colorChan = (ColorSelChan)0; TextureCoordID = TexCoordID.TexCoord7; TextureMapID = TexMapID.TexMap7; TextureEnabled = false; } else if (Index == 3) { _colorEnv = 0x0806EF; _alphaEnv = 0x081FF0; ConstantColorSelection = TevKColorSel.ConstantColor0_Value; ConstantAlphaSelection = TevKAlphaSel.ConstantColor0_Alpha; _colorChan = (ColorSelChan)7; TextureCoordID = TexCoordID.TexCoord7; TextureMapID = TexMapID.TexMap7; TextureEnabled = false; } }
private void getRawValue() { _rawValue = ColorEnv.Shiftv(seld, selc, selb, sela, bias, sub ? 1 : 0, clamp ? 1 : 0, shift, dest); SignalPropertyChange(); }
public void DefaultAsMetal(int texIndex) { if (Index == 0) { _colorEnv = 0x28F8AF; _alphaEnv = 0x08F2F0; KonstantColorSelection = TevKColorSel.KSel_0_Value; KonstantAlphaSelection = TevKAlphaSel.KSel_0_Alpha; _colorChan = (ColorSelChan)0; TextureCoord = TexCoordID.TexCoord0 + texIndex; TextureMapID = TexMapID.TexMap0 + texIndex; TextureEnabled = true; } else if (Index == 1) { _colorEnv = 0x08AFF0; _alphaEnv = 0x08FF80; KonstantColorSelection = TevKColorSel.KSel_0_Value; KonstantAlphaSelection = TevKAlphaSel.KSel_0_Alpha; _colorChan = (ColorSelChan)1; TextureCoord = TexCoordID.TexCoord7; TextureMapID = TexMapID.TexMap7; TextureEnabled = false; } else if (Index == 2) { _colorEnv = 0x08FEB0; _alphaEnv = 0x081FF0; KonstantColorSelection = TevKColorSel.KSel_1_Value; KonstantAlphaSelection = TevKAlphaSel.KSel_0_Alpha; _colorChan = (ColorSelChan)0; TextureCoord = TexCoordID.TexCoord7; TextureMapID = TexMapID.TexMap7; TextureEnabled = false; } else if (Index == 3) { _colorEnv = 0x0806EF; _alphaEnv = 0x081FF0; KonstantColorSelection = TevKColorSel.KSel_0_Value; KonstantAlphaSelection = TevKAlphaSel.KSel_0_Alpha; _colorChan = (ColorSelChan)7; TextureCoord = TexCoordID.TexCoord7; TextureMapID = TexMapID.TexMap7; TextureEnabled = false; } }
public void getRawColEnv() { rawColEnv = ColorEnv.Shiftv(cseld, cselc, cselb, csela, cbias, csub ? 1 : 0, cclamp ? 1 : 0, cshift, cdest); SignalPropertyChange(); }