DXX Raytracer is a fork of the DXX Retro project for Windows. DXX Raytracer uses modern raytracing techniques to update the graphics of the beloved retro game known as Descent.
Other
216
stars
10
forks
source link
Fix for issue with tangents rotating the wrong direction with mirrored uv coordinates. #30
Discovered an issue when rotating tangents for overlay textures. When the surfaces uv coordinates were mirrored the tangent would rotate in the wrong direction resulting in incorrect lighting and parallax. Added check for mirrored uv coordinates and set orientation correctly when detected.
Incorrect: Mirrored texture on left has inverted normals.
Corrected: Mirrored texture on left now has correct normals that match right side.
Discovered an issue when rotating tangents for overlay textures. When the surfaces uv coordinates were mirrored the tangent would rotate in the wrong direction resulting in incorrect lighting and parallax. Added check for mirrored uv coordinates and set orientation correctly when detected.
Incorrect: Mirrored texture on left has inverted normals.
Corrected: Mirrored texture on left now has correct normals that match right side.