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

Enable generating blank textures using custom colors #231

Merged
merged 5 commits into from
Dec 16, 2023

Conversation

rdw-software
Copy link
Member

Instead of a white texture that is easy to confuse with "something failed to load", let's pick a distinct color (like pink). As a first step, the generation logic must allow non-white colors - such as said pink "error" shade.

@rdw-software rdw-software force-pushed the conspicuous-fallback-textures branch from 503a548 to 5dca3e3 Compare December 16, 2023 00:21
So far I've just silently assumed all textures are POT. Asserting is preferable though as it reduces the potential for nasty surprises.
Instead of a white texture that is easy to confuse with "something failed to load", let's pick a distinct color (like pink). As a first step, the generation logic must allow non-white colors - such as said pink "error" shade.
A runtime there could be validation errors, but they may be more difficult to debug than loud failures at the time to creation. Additionally, generating very large textures will always be costly, so exiting early helps to circumvent issues like stalling or memory exhaustion.
This is just so I don't forget the hex codes and have to look them up again.
@rdw-software rdw-software force-pushed the conspicuous-fallback-textures branch from d01b136 to 6ceb626 Compare December 16, 2023 00:25
@rdw-software rdw-software merged commit 01074f0 into main Dec 16, 2023
5 checks passed
@rdw-software rdw-software deleted the conspicuous-fallback-textures branch December 16, 2023 00: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