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: Incorrect texture read in Editor (Compatibility Renderer) #78228

Closed
HaruYou27 opened this issue Jun 14, 2023 · 0 comments · Fixed by #78287
Closed

Shader: Incorrect texture read in Editor (Compatibility Renderer) #78228

HaruYou27 opened this issue Jun 14, 2023 · 0 comments · Fixed by #78287

Comments

@HaruYou27
Copy link

Godot version

v4.0.3.stable.arch_linux

System information

Arch linux - OpenGL API 4.2 (Core Profile) Mesa 21.3.9 Amber - Compatibility - Using Device: Intel Open Source Technology Center - Mesa DRI Intel(R) HD Graphics 2500 (IVB GT1)

Issue description

I wrote a simple colorize shader:

uniform sampler2D color_map;
void fragment()
{
	vec2 uv = COLOR.rg;
	COLOR.rgb = texture(color_map, uv).rgb;
}

20230614_21h26m15s_grim

But when I change the uniform parameter in the editor, it turned into this
20230614_21h07m45s_grim

However, this issue does not appear on Vulkan renderer (Foward+ and Mobile)

Steps to reproduce

Change value in the gradient in the shader parameter.

Minimal reproduction project

shader-bug.zip

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