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

Shader hint source_color does not transmit the correct default value to the Inspector #66619

Closed
golddotasksquestions opened this issue Sep 29, 2022 · 1 comment · Fixed by #74937

Comments

@golddotasksquestions
Copy link

golddotasksquestions commented Sep 29, 2022

Godot version

4.0 Beta 2

System information

Win 10, Nvidea 765M

Issue description

image

This is not just a visual issue, the Inspector value is indeed vec4(0.0, 0.0, 0.0, 1.0) aka the color Black as can be seen when mouse over.

Possibly related: #61554

Steps to reproduce

  1. Add a Sprite,
  2. add a shader
  3. add this line: uniform vec4 solid_color: source_color = vec4(1.0,0.0,0.0,1.0);

Minimal reproduction project

This is faster tested without having to download and extract a MRP

Bugsquad edit: removed unrelated rant

@Calinou
Copy link
Member

Calinou commented Sep 30, 2022

PS: I really absolutely hate the name change of the color hint to "source_color". What was the point of this? The only thing it does is to make it less consistent with other hints and therefore harder to remember and less intuitive. :(

See godotengine/godot-proposals#2323.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants