We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tested in 4.3 and 4.4 dev builds
Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 960 (NVIDIA; 32.0.15.6636) - Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz (4 Threads)
Instantiating a new ShaderMaterial results in the default uniform values marked source_color to skip the sRGB-to-linear transform.
ShaderMaterial
source_color
set_shader_parameter()
Workaround: manually set the uniform to it's own default after instantiating.
material.set_shader_parameter(p_name, RenderingServer.shader_get_parameter_default(material.shader.get_rid(), p_name))
shader_type spatial; render_mode unshaded; uniform vec3 test_color: source_color = vec3(0.2, 0.5, 0.2); void fragment() { ALBEDO = test_color; }
Note that the color looks washed out. Save the scene and reload, it now looks correct.
source_color_bug.tscn.zip
The text was updated successfully, but these errors were encountered:
#70927 maybe related
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Tested versions
tested in 4.3 and 4.4 dev builds
System information
Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 960 (NVIDIA; 32.0.15.6636) - Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz (4 Threads)
Issue description
Instantiating a new
ShaderMaterial
results in the default uniform values markedsource_color
to skip the sRGB-to-linear transform.set_shader_parameter()
, the correct color is rendered.Workaround: manually set the uniform to it's own default after instantiating.
Steps to reproduce
Note that the color looks washed out.
Save the scene and reload, it now looks correct.
Minimal reproduction project (MRP)
source_color_bug.tscn.zip
The text was updated successfully, but these errors were encountered: