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 Mapping for Projected Textures #132

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

CiMaWi
Copy link
Contributor

@CiMaWi CiMaWi commented Oct 25, 2023

Triplanar mapping for projected diffuse textures (introduced by Better Dynamic Snow / Simplicity Of Snow / Shaders Of Solstheim).

Fixes texture striping when projection is parallel to object geometry, most notably for snow on Windhelm architecture.

Uses screen space derivatives because geometry normals don't help. Uses UV based triplanar mapping for performance.

Works for VR and flat screen, although it needs to hook into different code paths for each platform. The function "ComputeTriplanarUV" does the math.

CiMaWi and others added 2 commits October 25, 2023 22:54
…r Dynamic Snow / Simplicity Of Snow / Shaders Of Solstheim).

Fixes texture striping when projection is parallel to object geometry, most notably for snow on Windhelm architecture.

Uses screen space derivatives because geometry normals don't help. Uses UV based triplanar mapping for performance.

Works for VR and flat screen, although it needs to hook into different code paths for each platform. The function "ComputeTriplanarUV" does the math.
@doodlum doodlum merged commit 22a2e5c into doodlum:dev Oct 25, 2023
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.

2 participants