public RenderMode(BlenderColorInput P, BlenderAlphaInput A, BlenderColorInput M, BlenderAlphaInput B, RenderModeFlags flags) { HalfMode tmpMode0 = new HalfMode(flags, P, A, M, B); HalfMode tmpMode1 = new HalfMode(flags, P, A, M, B); (Mode0, Mode1, Known) = FindModes(tmpMode0, tmpMode1); }
public RenderMode(BlenderColorInput P0, BlenderAlphaInput A0, BlenderColorInput M0, BlenderAlphaInput B0, BlenderColorInput P1, BlenderAlphaInput A1, BlenderColorInput M1, BlenderAlphaInput B1, RenderModeFlags flags) { HalfMode tmpMode0 = new HalfMode(flags, P0, A0, M0, B0); HalfMode tmpMode1 = new HalfMode(flags, P1, A1, M1, B1); (Mode0, Mode1, Known) = FindModes(tmpMode0, tmpMode1); }
public HalfMode(RenderModeFlags Flags, BlenderColorInput P, BlenderAlphaInput A, BlenderColorInput M, BlenderAlphaInput B) { this.P = P; this.M = M; this.A = A; this.B = B; this.Flags = Flags; Combined = ((int)Flags << 2 * 4) | ((int)P << 2 * 3) | ((int)A << 2 * 2) | ((int)M << 2 * 1) | ((int)B << 2 * 0); }