Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
WIP: fix heightmap orientation, black is low and white is high #170
there is only one heightmap standard: black is low and white is high
xreal was doing white is low and black is high for heightmap in alpha channel of normal map but was doing black is low and white is high for heightmap in loose file which does not make sense
in any way daemon seems to have been forked before the addition of shader keywords to support heightmap loose file so only heightmap in alpha channel is supported at this point
Yay, maybe, I tried to import similar code straight from ioquake3's renderergl2 instead and it renders the good way without to invert stuff. It also fixed a second bug for free. Will push code later.
Btw there is still another bug that is not fixed yet (or maybe two if I'm wrong by assuming two weirdness I see come from the same bug), but there is maybe more parallax code I can pick…