Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WOTLK terrain sometimes weirdly checkerboxed #654

Open
wgreenberg opened this issue Apr 7, 2024 · 2 comments
Open

WOTLK terrain sometimes weirdly checkerboxed #654

wgreenberg opened this issue Apr 7, 2024 · 2 comments

Comments

@wgreenberg
Copy link
Collaborator

For example, here on Strand of the Ancients: image

This might be a texture decoding issue, or maybe the heightmapped ADT terrain?

@wgreenberg wgreenberg added this to the World of Warcraft milestone Apr 7, 2024
@magcius
Copy link
Owner

magcius commented Apr 21, 2024

Improved by 6d8a82e. The crater here still seems to have a seam; up to you whether you want to keep this issue open for that, or close and open a new one.

@magcius
Copy link
Owner

magcius commented Apr 22, 2024

    alphaBlend.r = 1.0 - saturate(dot(alphaBlend.gba, vec3(1.0)));
    vec4 tex = tex0*alphaBlend.r + tex1*alphaBlend.g + tex2*alphaBlend.b + tex3*alphaBlend.a;
    // vec4 tex = mix(mix(mix(tex0, tex1, alphaBlend.g), tex2, alphaBlend.b), tex3, alphaBlend.a);

Treating the weights as if they are weight blends like heightmap texturing does fixes Strand of the Ancients, but it breaks Alterac Valley. Screenshots attached. Strand of the Ancient's WDT doesn't appear to have the "hasHeightTexturing" flag marked, but that might just be us not parsing out the flags correctly.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants