mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2026-03-03 19:02:15 +01: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