mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-21 00:07:50 +08:00
7 lines
242 B
GLSL
7 lines
242 B
GLSL
void SetVoxelBlock(const in vec3 playerPos, const in uint blockId) {
|
|
ivec3 voxelPos = GetVoxelIndex(playerPos);
|
|
if (clamp(voxelPos, ivec3(0), ivec3(VoxelSize-1u)) != voxelPos) return;
|
|
|
|
imageStore(imgVoxelMask, voxelPos, uvec4(blockId));
|
|
}
|