mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Better memory organising
This commit is contained in:
@ -19,15 +19,16 @@ struct GPUObject
|
||||
{
|
||||
alignas(16) glm::vec3 position;
|
||||
|
||||
int mat_index;
|
||||
|
||||
float radius; // sphere
|
||||
alignas(16) glm::vec3 normal; // plane
|
||||
alignas(16) glm::vec3 normal; // plane triangle
|
||||
|
||||
alignas(16) glm::vec3 vertex1; //quad triangle
|
||||
alignas(16) glm::vec3 vertex2; //quad triangle
|
||||
|
||||
float radius; // sphere
|
||||
|
||||
int mat_index;
|
||||
int type;
|
||||
|
||||
};
|
||||
|
||||
struct GPUMaterial
|
||||
|
Reference in New Issue
Block a user