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

Instance uniform's value is discarded when an error show up in the shader editor #64057

Open
mieldepoche opened this issue Aug 7, 2022 · 0 comments

Comments

@mieldepoche
Copy link
Contributor

Godot version

4.0.alpha13

System information

Linux

Issue description

recording-2022-08-07_16.51.37.mp4

As you can see, instance uniforms are reset when an error is detected in the shader.
Also (you can't see that in the video): the value during the error is actually reset to 0. It just happens my custom value in the video is 0.

For some reason a [null] field showed up in the inspector (I think it appeared when I renamed uniforms for this test) but went away on scene reload and I couldn't reproduce it.

Steps to reproduce

shader_type spatial;

instance uniform float r = 1.0;

void fragment() {
	ALBEDO.r = r;
}

Minimal reproduction project

No response

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

No branches or pull requests

2 participants