floodfill add buffer qualifiers, use image sampler

This commit is contained in:
NULL511
2024-05-04 16:33:11 -04:00
parent 94ad32bd7f
commit 50f0aacc5d
10 changed files with 40 additions and 13 deletions

View File

@ -4,6 +4,7 @@
#extension GL_EXT_shader_image_load_store: enable
#endif
#define RENDER_SHADOW
/*
@ -221,6 +222,7 @@ void main() {
break;
// TODO: blaze, magma_cube
}
}
if (voxelId > 0u)
@ -275,4 +277,4 @@ void main() {
bias = 6.0 + (1-clamp(dot(WsunVec,FlatNormals),0,1))*0.3;
}
gl_Position.z /= bias;
}
}