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

Per-instance data sent to the shader via an instanced VBO. More...

#include <instanced_rendering.h>

Data Fields

mat4 model
 
vec3 albedo
 
float metallic
 
float roughness
 
float ao
 
float padding
 
float _pad [9]
 

Detailed Description

Per-instance data sent to the shader via an instanced VBO.

This structure is 64-byte aligned to ensure optimal GPU throughput and compatibility with SIMD-based sorting or physics.

Field Documentation

◆ _pad

float SphereInstance::_pad

◆ albedo

vec3 SphereInstance::albedo

Base color (linear RGB).

◆ ao

float SphereInstance::ao

Ambient occlusion factor.

◆ metallic

float SphereInstance::metallic

PBR metallic factor (0.0 - 1.0).

◆ model

mat4 SphereInstance::model

4x4 Transformation matrix.

◆ padding

float SphereInstance::padding

Alignment padding.

◆ roughness

float SphereInstance::roughness

PBR roughness factor (0.0 - 1.0).


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