Function tetra::graphics::set_shader
source · Expand description
Sets the shader that is currently being used for rendering.
If the shader is different from the one that is currently in use, this will trigger a
flush
to the graphics hardware - try to avoid shader swapping as
much as you can.