DefaultShader

Edit

The set of shaders built in to LÖVR. These can be passed to Pass:setShader or lovr.graphics.newShader instead of writing GLSL code. The shaders can be further customized by using the flags option to change their behavior. If the active shader is set to nil, LÖVR picks one of these shaders to use.

ValueDescription
unlit Basic shader without lighting that uses colors and a texture.
normal Shades triangles based on their normal, resulting in a cool rainbow effect.
font Renders font glyphs.
cubemap Renders cubemaps.
equirect Renders spherical textures.
fill Renders a fullscreen triangle.

See also