- Pixel::Format pixelFormat = mAtlasManager.GetPixelFormat( slot.mAtlasId );
- Material material = Material::New( pixelFormat == Pixel::L8 ? mShaderL8 : mShaderRgba );
- material.AddTexture( atlas, "sTexture" );
- mAtlasManager.SetMaterial( slot.mAtlasId, material );
+ TextureSet textureSet = TextureSet::New();
+ textureSet.SetImage( 0u, atlas );
+ mAtlasManager.SetTextures( slot.mAtlasId, textureSet );