Shaders and Textures
 
 
 

This diagram shows a surface with two shaders, the first shader having two textures. To create this structure, first create a surface. Then create the two shaders with AlShader::create(). To one of them add textures with AlShader::addTexture(). Then use AlSurface::assignShader()to add the first shaders to the surface and AlSurface::layerShader() to add the second one.