DefaultShader

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
unlitBasic shader without lighting that uses colors and a texture.
normalShades triangles based on their normal, resulting in a cool rainbow effect.
fontRenders font glyphs.
cubemapRenders cubemaps.
equirectRenders spherical textures.
fillRenders a fullscreen triangle.

See also