2021-07-30 00:39:04 +02:00
|
|
|
struct Sphere
|
|
|
|
{
|
2021-08-06 20:25:52 +02:00
|
|
|
// (c.x,c.y,c.z,r)
|
|
|
|
vec4 cr;
|
2021-07-30 00:39:04 +02:00
|
|
|
vec3 albedo;
|
|
|
|
};
|
2021-08-10 02:11:22 +02:00
|
|
|
|
|
|
|
// 253 is the maximum?? TODO: use uniform buffer objects
|
|
|
|
const int SPHERES = 250;
|
|
|
|
uniform int _activeSpheres;
|
|
|
|
layout (location = 1) uniform Sphere _spheres[SPHERES];
|