oglc/shader/include/sphere.glsl

13 lines
237 B
Plaintext
Raw Normal View History

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;
2022-01-30 23:01:02 +01:00
int material;
2021-07-30 00:39:04 +02:00
};
2021-08-10 02:11:22 +02:00
2022-01-30 23:01:02 +01:00
// TODO: use uniform buffer objects
const int SPHERES = 167;
2021-08-10 02:11:22 +02:00
uniform int _activeSpheres;
layout (location = 1) uniform Sphere _spheres[SPHERES];