Esempio n. 1
0
        public static SurfaceType BlendModeToSurfaceType(BlendMode blendMode)
        {
            if (blendMode == BlendMode.Translucent)
            {
                return(SurfaceType.Transparent);
            }

            return(SurfaceType.Opaque);
        }
Esempio n. 2
0
        public static AlphaMode BlendModeToAlphaMode(BlendMode blendMode)
        {
            switch (blendMode)
            {
            case BlendMode.Additive:
                return(AlphaMode.Additive);

            case BlendMode.Modulate:
                return(AlphaMode.Multiply);

            case BlendMode.Masked:
                Debug.Log("FIXME: masked blend mode not supported");

                break;
            }

            return(AlphaMode.Alpha);
        }