+ | Real material shared system + parsing

This commit is contained in:
TheRedShip
2024-12-27 11:11:01 +01:00
parent 8941169f4a
commit ea3dd738f8
9 changed files with 105 additions and 63 deletions

View File

@ -8,13 +8,12 @@ layout(binding = 0, rgba32f) uniform image2D outputImage;
struct GPUObject {
vec3 position; // 12 + 4
float padding_1; // 4
vec3 color; // 12 + 4
float padding_2; // 4
float emission; // 4
float roughness; // 4
float specular; // 4
float radius; // 4
int type; // 4
int type; // 4 + 12
};
layout(std430, binding = 1) buffer ObjectBuffer