Bliss-Shader/shaders/lib/voxel_common.glsl

13 lines
282 B
Plaintext
Raw Normal View History

#ifdef RENDER_SHADOW
layout(r16ui) uniform uimage3D imgVoxelMask;
#else
layout(r16ui) uniform readonly uimage3D imgVoxelMask;
#endif
2024-05-01 16:32:25 -04:00
const uint VoxelSize = uint(exp2(LPV_SIZE));
const uvec3 VoxelSize3 = uvec3(VoxelSize);
2024-05-02 14:18:49 -04:00
const float voxelDistance = 64.0;
2024-05-03 13:39:05 -04:00
#define BLOCK_EMPTY 0