Bliss-Shader/shaders/lib/voxel_common.glsl
2024-06-10 23:43:10 -04:00

11 lines
247 B
GLSL

#ifdef RENDER_SHADOW
layout(r16ui) uniform uimage3D imgVoxelMask;
#else
layout(r16ui) uniform readonly uimage3D imgVoxelMask;
#endif
const uint VoxelSize = uint(exp2(LPV_SIZE));
const uvec3 VoxelSize3 = uvec3(VoxelSize);
#define BLOCK_EMPTY 0