예제 #1
0
        Color32 ProcessFinalColor(Color32 old)
        {
            switch (mixMode)
            {
            case 1:
                return(TexUtility.MultiplyAlphaOnly(renderColor, old.a / 255f));

            case 2:
                return(TexUtility.MultiplyColor(old, renderColor));
            }
            return(renderColor);
        }
예제 #2
0
        public override void Draw(DrawingContext drawingContext, float scale, float x, float y)
        {
            switch (mixmode)
            {
            case 0: TexContext.Color.Push(color); break;

            case 1: TexContext.Color.Push(TexUtility.MultiplyAlphaOnly(color, TexContext.Color.value.a / 255f)); break;

            case 2: TexContext.Color.Push(TexUtility.MultiplyColor(TexContext.Color.value, color)); break;

            case 3: TexContext.Color.Pop(); break;
            }
        }