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

The default value of the uniform type "color" can lead to suspected scene when the user has not uploaded a value. #2562

Open
Sway007 opened this issue Feb 17, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request medium priority Medium priority issue

Comments

@Sway007
Copy link
Member

Sway007 commented Feb 17, 2025

Is your feature request related to a problem? Please describe.
The current default value for not uploaded color uniform is (0,0,0,0),which cause the entites and material inspector in editor be totally transparent, which is like some bug.

Describe the solution you'd like
Change the default value for not uploaded color uniform to (0,0,0,1) or any reasonable value which get rid of this buggy phenomenon

Additional context
Material with not uploaded color uniform often present when user delete a color type property from the Editor module of ShaderLab, related issue galacean/editor#3088

@Sway007 Sway007 added enhancement New feature or request medium priority Medium priority issue labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority Medium priority issue
Projects
None yet
Development

No branches or pull requests

2 participants