10 #include <cglm/cglm.h>
13 #define MAX_MATERIAL_NAME_LENGTH 64
Common OpenGL definitions, RAII helpers, and utilities.
@ SIMD_ALIGNMENT
Definition: gl_common.h:131
MaterialLib * material_load_presets(const char *path)
Loads a set of material presets from a configuration file.
Definition: material.c:139
#define MAX_MATERIAL_NAME_LENGTH
Maximum length for a material identifier string.
Definition: material.h:13
void material_free_lib(MaterialLib *lib)
Frees all memory associated with a material library.
Definition: material.c:182
A collection of material presets loaded from disk or defined at runtime.
Definition: material.h:34
PBRMaterial * materials
Definition: material.h:35
int count
Definition: material.h:36
Surface properties for the physically-based rendering pipeline.
Definition: material.h:21
vec3 albedo
Definition: material.h:23
float metallic
Definition: material.h:25
float roughness
Definition: material.h:26