Proper texture unit allocation in shaders.