-
Notifications
You must be signed in to change notification settings - Fork 70
Switch to "OpenGL" normalmap direction? #274
Copy link
Copy link
Closed
Labels
Description
This is a thread to decide whether we should keep the default interpretation of normalmaps the way it is now (so-called DirectX style), or switch to OpenGL style, which interprets the y-axis (green channel) as pointing the opposite direction. Note that the direction chosen doesn't really have any relation to the rendering library you use - it's up to the GPU shader code to decide how to interpret things.
Advantages of switching to OpenGL direction:
- More intuitive: y-component points up, as expected, and the coordinate system is right-handed
- Matches most OpenGL normal mapping tutorials
- Improves compatibility with Xonotic assets
Advantages of staying on DirectX:
- Our assets continue to work unchanged - we don't have to add q3shaders to reverse the direction of every existing normalmap
- Maybe it's more common among games in general? (unclear)
Reactions are currently unavailable