mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-20 07:57:55 +08:00
13 lines
327 B
GLSL
13 lines
327 B
GLSL
uint GetVoxelBlock(const in ivec3 voxelPos) {
|
|
// TODO: exit early if outside bounds
|
|
|
|
return imageLoad(imgVoxelMask, voxelPos).r;
|
|
}
|
|
|
|
// uint GetVoxelBlock(const in vec3 playerPos) {
|
|
// ivec3 voxelPos = GetVoxelIndex(playerPos);
|
|
|
|
// // TODO: exit early if outside bounds
|
|
// return imageLoad(imgVoxelMask, voxelPos).r;
|
|
// }
|