We be kinda rendering

This commit is contained in:
2026-01-05 06:20:49 +01:00
parent 1168f9e5d1
commit c83c423b42
48 changed files with 2789 additions and 382 deletions

View File

@@ -0,0 +1,19 @@
#ifndef MATERIALS_GLSL
#define MATERIALS_GLSL
#extension GL_EXT_buffer_reference : require
struct MaterialData {
vec4 baseColor;
vec4 metallicRoughnessEmissive;
uint diffuseTex;
uint normalTex;
uint metallicRoughnessTex;
uint emissiveTex;
};
layout (buffer_reference, std430) readonly buffer MaterialsBuffer {
MaterialData data[];
} materialsBuffer;
#endif // MATERIALS_GLSL