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

Custom clear color #1429

Open
slipher opened this issue Nov 10, 2024 · 0 comments
Open

Custom clear color #1429

slipher opened this issue Nov 10, 2024 · 0 comments
Labels

Comments

@slipher
Copy link
Member

slipher commented Nov 10, 2024

The other day @illwieckz suggested a configurable color for r_clear, as a debugging tool. This is a good idea: when I tried this the other day, I uncovered many hidden voids in our stock maps.

But also, what about a custom solid sky color for maps? I think it would be cool to let maps specify a color in the worldspawn that would be used for clearing when r_drawSky is off.

So I propose to add both mechanisms. The cvar can be a cheat cvar that takes precedence over the map's color when set. Also when r_drawSky and r_clear are both on, the map color should not be respected, so that we don't reveal more voids than necessary :)

For color cvars that don't need to be configurable via a menu, I like to use a string parsed by the color code parser (^1, ^xf0f etc.).

@slipher slipher added A-Renderer T-Feature-Request Proposed new feature labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant