Bliss-Shader/shaders/lib/voxel_write.glsl
2024-05-02 12:43:30 -04:00

7 lines
208 B
GLSL

void SetVoxelBlock(const in vec3 playerPos, const in uint blockId) {
ivec3 voxelPos = GetVoxelIndex(playerPos);
// TODO: exit early if outside bounds
imageStore(imgVoxelMask, voxelPos, uvec4(blockId));
}