Example #1
0
        public static GraphicResource From(GenericGraphicResource resBase, string shader, ColorRgba color, bool isIndexed)
        {
            GraphicResource res = new GraphicResource();

            res.FrameDuration = resBase.FrameDuration;
            res.FrameCount    = resBase.FrameCount;
            res.Base          = resBase;

            res.AsyncFinalize = new GraphicResourceAsyncFinalize {
                Shader = shader,
                Color  = color,
                BindPaletteToMaterial = isIndexed
            };

            return(res);
        }