mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Better random
This commit is contained in:
@ -20,7 +20,7 @@ typedef struct s_Material
|
||||
glm::vec3 color;
|
||||
float emission;
|
||||
float roughness;
|
||||
float specular;
|
||||
float metallic;
|
||||
} Material;
|
||||
|
||||
class Object
|
||||
|
@ -22,7 +22,7 @@ struct GPUObject
|
||||
alignas(16) glm::vec3 color;
|
||||
float emission;
|
||||
float roughness;
|
||||
float specular;
|
||||
float metallic;
|
||||
|
||||
float radius; // sphere
|
||||
alignas(16) glm::vec3 normal; // plane
|
||||
|
Reference in New Issue
Block a user