Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix parallax mapping artifacts.
Previously artifacts were noticed in the area where the shader change of step, after some test it appears that using a mipmapped texture to compute the parallax uv is unsafe. Replacing a call to texture2D by a call to textureLod(..., 0) avoid using any mipmap and resolve the artifacts. Even if we don't use mipmapping to compute the parallax uv, all the texture using this uv can keep using mipmapping. In the same time the unused function parallax_scale is removed.
- Loading branch information
9f621ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc texture2DLod didn't work on TwisterGE old computer: https://www.opengl.org/sdk/docs/man4/html/textureLod.xhtml (doesn't work on VERSION < 130)