예제 #1
0
    void LoadTextureChannel(WorldAtlas atlas, TextureBundle[] bundles, Func <WorldAtlasMaterialTextures, WorldAtlasMaterialTextures.TextureSet> getTexSetChannel, Func <TextureBundle, TextureSet, TextureBundle> setBundleChannel, string channelName)
    {
        List <Texture2D>  textures;
        List <TextureSet> indices;

        LoadTextureList(atlas, out textures, out indices, getTexSetChannel, channelName);
        TextureBundle.CopyChannelTextureSet(bundles, indices, setBundleChannel);
    }
예제 #2
0
    void LoadRHOTextureChannel(WorldAtlas atlas, TextureBundle[] bundles, WorldAtlasClientData clientData)
    {
        var table = LoadRHOTextureTable(atlas);

        TextureBundle.CopyChannelTextureSet(bundles, table.indices, (b, s) => { b.rho = s; return(b); });
    }