+ | Optimization + reflection

This commit is contained in:
TheRedShip
2025-01-02 16:33:21 +01:00
parent 21f2e84b61
commit 5d92a82b66
14 changed files with 204 additions and 101 deletions

View File

@ -18,12 +18,16 @@
struct GPUObject
{
alignas(16) glm::vec3 position;
alignas(16) glm::vec3 color;
float emission;
float roughness;
float specular;
float radius;
int type;
float emission;
float roughness;
float specular;
float radius; // sphere
alignas(16) glm::vec3 normal; // plane
int type;
};
class Sphere;