2021-07-29 23:39:04 +01:00
|
|
|
struct Sphere
|
|
|
|
{
|
2021-08-06 19:25:52 +01:00
|
|
|
// (c.x,c.y,c.z,r)
|
|
|
|
vec4 cr;
|
2021-07-29 23:39:04 +01:00
|
|
|
vec3 albedo;
|
2022-01-30 22:01:02 +00:00
|
|
|
int material;
|
2021-07-29 23:39:04 +01:00
|
|
|
};
|
2021-08-10 01:11:22 +01:00
|
|
|
|
2022-01-30 22:01:02 +00:00
|
|
|
// TODO: use uniform buffer objects
|
|
|
|
const int SPHERES = 167;
|
2021-08-10 01:11:22 +01:00
|
|
|
uniform int _activeSpheres;
|
|
|
|
layout (location = 1) uniform Sphere _spheres[SPHERES];
|