$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
PBRMaterial Struct Reference

Surface properties for the physically-based rendering pipeline. More...

#include <material.h>

Data Fields

char name [64]
 
vec3 albedo
 
float metallic
 
float roughness
 

Detailed Description

Surface properties for the physically-based rendering pipeline.

This struct is aligned to SIMD boundaries for efficient library management.

Field Documentation

◆ albedo

vec3 PBRMaterial::albedo

Base color (linear RGB).

◆ metallic

float PBRMaterial::metallic

Metalness factor (0.0 = dielectric, 1.0 = metal).

◆ name

char PBRMaterial::name[64]

Unique identifier.

◆ roughness

float PBRMaterial::roughness

Surface roughness (0.0 = smooth, 1.0 = rough).


The documentation for this struct was generated from the following file: