forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an import option to correct a heightmap texture's baseline or nor…
…malize it Automatic detection is implemented in the BaseMaterial3D shader. It can be integrated in custom shaders by adding `hint_height` to the relevant sampler uniforms or setting the texture mode to Height Map in VisualShaderNodeTextureParameter. When a texture is detected to be used as a heightmap, it'll switch to the Correct Baseline mode automatically, which reduces parallax issues without requiring manual adjustments to the heightmap scale. If you want to further improve quality (or reduce the number of deep parallax steps without impacting quality), you can use the Normalized mode which requires adjusting the heightmap scale used in the material. When doing so, the required heightmap scale multiplier is printed on import so you can get the same effective heightmap scale as before.
- Loading branch information
Showing
20 changed files
with
199 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.