-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace "Invert" import option with more useful "Normal Map Invert Y" #39202
Replace "Invert" import option with more useful "Normal Map Invert Y" #39202
Conversation
Wouldn't it be more consistent to move this option to SpatialMaterial3D? Seeing as we have the other flip options there already. We need to keep in mind that Godot users upgrading from 3.2 to 4.0 may have designed their assets with Godot in mind. |
I'm not sure if it's safe to assume that this option is not used for something else, because as of now it's quite general-purpose. Even if it's doesn't make sense to have this in the engine as of now, I'm sure other modules/plugins could possibly benefit from the existing logic, as this could cover more than just ability to invert green channel, I'd personally keep |
Is this pr considered rejected? @Xrayez makes an accurate point that normal fixing is different from invert. |
@fire I don't think we've gotten enough opinions about this yet. Also, this pull request is only for 4.0; I can make a PR for |
I don't think more opinions will arrive. What is our consensus? |
7de4a5e
to
3998478
Compare
For the reference, we discussed this in a PR review meeting today and agreed with the change. We agreed that referencing Y instead of green would likely be better, though there was some concern about potential confusing with flipping the texture vertically on the Y axis. We suggested using |
This can be used to invert a normal map's direction. The "Invert" import option is no longer useful in Godot 4.0 since it uses height maps instead of depth maps in StandardMaterial3D. This closes godotengine/godot-proposals#785.
3998478
to
4ef71d7
Compare
Thanks! |
master
version of #48693.This can be used to invert a normal map's direction.
The "Invert" import option is no longer useful in Godot 4.0 since it uses height maps instead of depth maps in StandardMaterial3D. If you still need to use a depth map, SpatialMaterial3D features several properties to invert the height:
This closes godotengine/godot-proposals#785. This partially addresses #18299 (needs further testing).
Preview
Left: inverted
Right: not inverted
test_normal_map_direction.zip (build Godot with this PR before opening the project)