1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-12 08:53:35 +00:00
lovr/etc/shaders
bjorn 003d69ea94 Make Surface more flexible;
- Add newSurface, which returns a "blank" surface, allowing you to set
  your own properties.
- Add finalizeSurface, which sets computed surface properties and clamps
  values to prepare for lighting.
- Add applyMaterial, which takes all of the properties in the material
  and applies them to a surface
- Add helper functions for getting properties from the Material, which
  combine scalar factors and texture samples while respecting shader
  flags:
  - getMaterialBaseColor
  - getMaterialEmissive
  - getMaterialMetalness
  - getMaterialRoughness
  - getMaterialOcclusion
  - getMaterialClearcoat
  - getMaterialClearcoatRoughness
- Add getDefaultSurface, which returns what initSurface would result in
  today, deprecating initSurface.
2023-08-02 18:11:36 -07:00
..
animator.comp Blend shapes and skinning work at the same time; 2023-03-31 18:45:16 -07:00
blender.comp Fix issue with blend shape compute shader; 2023-06-20 21:42:44 -07:00
cubemap.frag Fix cubemaps being horizontally flipped; 2022-09-20 22:17:58 -07:00
cubemap.vert Fix cubemap shader; 2022-08-26 22:22:37 -07:00
equirect.frag Fix seam in equirect shader; 2023-05-10 18:14:09 +01:00
fill.vert Default shaders use lovrmain; 2022-07-31 11:18:15 -07:00
fill_array.frag Add GL_EXT_samplerless_texture_functions; 2023-06-24 14:00:22 -07:00
font.frag Add GL_EXT_samplerless_texture_functions; 2023-06-24 14:00:22 -07:00
logo.frag Make the logo a default shader; 2022-09-13 17:36:10 -07:00
lovr.glsl Make Surface more flexible; 2023-08-02 18:11:36 -07:00
normal.frag Add normal DefaultShader; 2022-09-10 11:07:55 -07:00
tallymerge.comp Pass rework; 2023-05-02 00:06:01 -07:00
unlit.frag Default shaders use lovrmain; 2022-07-31 11:18:15 -07:00
unlit.vert Default shaders use lovrmain; 2022-07-31 11:18:15 -07:00