Skip to content
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

Triplanar terrain + Better terrain normals #179

Closed
wants to merge 8 commits into from

Conversation

JamesTKhan
Copy link
Owner

@JamesTKhan JamesTKhan commented May 15, 2023

  • Adds Triplanar option under terrain settings
  • Overhaul Terrain Normals. Improves terrain normal calculations and accuracy at the cost of additional memory by averaging the normals
  • New CLI argument to disable shader preprocessor caching for development purposes

Triplanar should work on terrains up to 252 Vertex resolution

Note: Triplanar is not always better, it is situation depending on your terrain. Triplanar is more expensive (more texture sampling) and can look bad with lots of sharp edges close together, etc..

Once Merged I will start putting together the 0.5.0 release

Dependent on merging #176

Triplanar On/Off Comparison

triplanar

Before Terrain Normal overhaul:
image

After Terrain Normal overhaul:
image

@JamesTKhan JamesTKhan linked an issue May 15, 2023 that may be closed by this pull request
@JamesTKhan JamesTKhan marked this pull request as ready for review May 16, 2023 02:06
@JamesTKhan JamesTKhan added this to the 0.5.0 Release milestone May 16, 2023
@JamesTKhan JamesTKhan marked this pull request as draft May 17, 2023 13:25
@JamesTKhan
Copy link
Owner Author

Made obsolete by #184

@JamesTKhan JamesTKhan closed this Jun 7, 2023
@JamesTKhan JamesTKhan deleted the triplanar-terrain branch June 28, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Triplanar Texture mapping for Terrain
1 participant