mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-12 08:53:35 +00:00
003d69ea94
- 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. |
||
---|---|---|
.. | ||
animator.comp | ||
blender.comp | ||
cubemap.frag | ||
cubemap.vert | ||
equirect.frag | ||
fill.vert | ||
fill_array.frag | ||
font.frag | ||
logo.frag | ||
lovr.glsl | ||
normal.frag | ||
tallymerge.comp | ||
unlit.frag | ||
unlit.vert |