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

Implement color banding for diffuse texture images #387

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

rdw-software
Copy link
Member

Colors being limited to 16 bits per pixel means that all textures need to be posterized, not just the lightmaps. The resulting color banding softens certain highlights, e.g. on xmas_fild01 - removing it causes some spots to look "off" as they're way too bright.

This code isn't optimized at all since the posterization step doesn't seem to take significant time anyway. Can move it into the runtime's image processing API if that ever becomes necessary. For now, there's no use in doing this, at least for GND textures.

Colors being limited to 16 bits per pixel means that all textures need to be posterized, not just the lightmaps. The resulting color banding softens certain highlights, e.g. on xmas_fild01 - removing it causes some spots to look "off" as they're way too bright.

This code isn't optimized at all since the posterization step doesn't seem to take significant time anyway. Can move it into the runtime's image processing API if that ever becomes necessary. For now, there's no use in doing this, at least for GND textures.
@rdw-software rdw-software merged commit e96fadd into main Mar 18, 2024
6 checks passed
@rdw-software rdw-software deleted the reduced-color-textures branch March 18, 2024 02:27
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.

1 participant