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

UI Opacity #37

Open
andrey-zakharov opened this issue Feb 16, 2023 · 1 comment
Open

UI Opacity #37

andrey-zakharov opened this issue Feb 16, 2023 · 1 comment

Comments

@andrey-zakharov
Copy link
Contributor

I'm trying to animate appeareance of UI stuff by smooth revealing from transparent state to full opacity.
I could not find out any easy way to make UiSurface semitransparent. I'd prefer to have some exposed shader's uniform as alphaMultiplier.
How could i make this?

@fabmax
Copy link
Owner

fabmax commented Feb 17, 2023

Yes some kind of global alpha multplier is still missing. All meshes that make up an UI are managed by UiSurface (UiPrimitiveMesh, TextMesh and ImageMesh), so it should be relatively easy to add an alphaMultiplier uniform to the corresponding shaders and add a property to UiSurface which then sets the shader uniforms.

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

No branches or pull requests

2 participants