Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
sphere_types.h
Go to the documentation of this file.
1
12#ifndef SPHERE_TYPES_H
13#define SPHERE_TYPES_H
14
15#include "gl_common.h"
16#include <cglm/cglm.h>
17
25typedef struct SphereInstance {
26 mat4 model;
27 vec3 albedo;
28 float metallic;
29 float roughness;
30 float ao;
31 float padding;
34} __attribute__((aligned(SIMD_ALIGNMENT))) SphereInstance;
35
36#endif /* SPHERE_TYPES_H */
Common OpenGL definitions, RAII helpers, and utilities.
@ SIMD_ALIGNMENT
Definition gl_common.h:150
Per-instance data sent to the shader via an instanced VBO.
Definition sphere_types.h:25
float padding
Definition sphere_types.h:31
float metallic
Definition sphere_types.h:28
mat4 model
Definition sphere_types.h:26
float ao
Definition sphere_types.h:30
float roughness
Definition sphere_types.h:29
vec3 albedo
Definition sphere_types.h:27
vec3 prev_center
Definition sphere_types.h:32