Merge pull request #883 from Xtarsia/fix-some-artifacts

fix edge artifacts
This commit is contained in:
Emerson Rowland 2025-12-03 15:48:23 +00:00 committed by GitHub
commit 8ca1116e50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,8 @@ group_uniforms;
float auto_blend = clamp(fma(auto_slope * 2.0, (w_normal.y - 1.0), 1.0)
- auto_height_reduction * 0.01 * v_vertex.y, 0.0, 1.0);
// Enable Autoshader if outside regions or painted in regions, otherwise manual painted
uvec4 is_auto = (control & uvec4(0x1u)) | uvec4(uint(region_uv.z < 0.0));
uvec4 is_auto = (control & uvec4(0x1u)) |
uvec4(lessThanEqual(ivec4(index[0].z, index[1].z, index[2].z, index[3].z), ivec4(0)));
uint u_auto =
((uint(auto_base_texture) & 0x1Fu) << 27u) |
((uint(auto_overlay_texture) & 0x1Fu) << 22u) |

View File

@ -78,5 +78,6 @@ group_uniforms;
alb = mix(alb, far_alb, far_factor);
nrm = mix(nrm, far_nrm, far_factor);
ao = mix(ao, far_ao, far_factor);
world_normal = mix(world_normal, 1.0, far_factor);
}
)"