mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-12 10:18:18 +08:00
7 lines
208 B
GLSL
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));
|
|
}
|