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

Add subtle gradient effect to background #423

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

onelivesleft
Copy link
Contributor

@onelivesleft onelivesleft commented Sep 19, 2024

Adds a subtle color gradient to background draws, which adds depth to the UI. The gradient is coded in gl.jai, in two shaders.
You can find them by searching for effect_strength in that file: you can either change the value assigned to effect_strength if you'd like it to me more or less subtle, or can change the formula for the gradient if you wish (it's pretty simple, it just mixes the color with another color, generated from the window xy and a passed in scalar)

@onelivesleft
Copy link
Contributor Author

Added gradient_effect color setting; effect_strength is no longer hard-coded.

@focus-editor focus-editor added the kept-for-reference This PR won't be merged but instead will be used as a reference when solving the underlying problem label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kept-for-reference This PR won't be merged but instead will be used as a reference when solving the underlying problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants