This commit is contained in:
mcrcortex
2024-11-17 19:26:11 +10:00
parent a15978d1fb
commit 0a7c0c573c

View File

@@ -6,6 +6,8 @@ layout(binding = 0) uniform sampler2D depthTex;
void main() { void main() {
vec4 depths = textureGather(depthTex, uv, 0); // Get depth values from all surrounding texels. vec4 depths = textureGather(depthTex, uv, 0); // Get depth values from all surrounding texels.
//TODO: fully fix this system
//TODO, do it so that for the first 2,3 levels if 1 (or maybe even 2 (on the first layer)) pixels are air, just ignore that //TODO, do it so that for the first 2,3 levels if 1 (or maybe even 2 (on the first layer)) pixels are air, just ignore that
// this is to stop issues with 1 pixel gaps // this is to stop issues with 1 pixel gaps
bvec4 cv = lessThanEqual(vec4(0.99999999), depths); bvec4 cv = lessThanEqual(vec4(0.99999999), depths);