DefaultShader
The following shaders are built in to LÖVR, and can be used as an argument to lovr.graphics.newShader
instead of providing raw GLSL shader code. The shaders can be further customized by using the flags
argument. If you pass in nil
to lovr.graphics.setShader
, LÖVR will automatically pick a DefaultShader to use based on whatever is being drawn.
Value | Description |
unlit | A simple shader without lighting, using only colors and a diffuse texture. |
standard | A physically-based rendering (PBR) shader, using advanced material properties. |
cube | A shader that renders a cubemap texture. |
pano | A shader that renders a 2D equirectangular texture with spherical coordinates. |
font | A shader that renders font glyphs. |
fill | A shader that passes its vertex coordinates unmodified to the fragment shader, used to render view-independent fixed geometry like fullscreen quads. |
See also
lovr.graphics