Repository navigation
UVs all messed up on quad #10323
RoastedKaju
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When rendering a Quad with a texture, it seems that Filament treats triangles as separate meshes, the triangles has UVs that are relative not continuous from left to right.
You see it very clearly in the UV color material, this gradient should be smooth yet each triangle has its own black area that goes to being 1 and fully white. This results in a diagonal seam running through our quad.
Full code is here:
https://gist.github.com/RoastedKaju/c94a8600aef8053ecdc717f1fc6649ee
I even tried this which is exactly the same from Filament samples.
I have changed the material to this for debugging purposes. I tried to reference the official quad textured sample and the indices and vertex array matches.
I am using Filament from Releases tab. I am not sure if its a bug or something wrong on my part.
All reactions