Open fguillen opened 1 year ago
Also applies to v4.1.3.stable.mono.official [f06b6836a] (only compatibility mode, Forward works fine)
This is a very strange bug as it stops happening in the scene view in the editor if you turn off filter_nearest
for a moment and then turn it back on. The bug is always visible in the material view.
As a workaround:
Using vec4 text = textureLod(screen_texture, grid_uv ,0.0)
instead of vec4 text = texture(screen_texture, grid_uv)
fixes the issue for me on v4.2.2
I can only reproduce this in 4.1.4 (I tested 4.3, 4.2.2, 4.2.1, 4.2.0, and 4.1.1)
Given the nature of the issue though, I'm not convinced that it is necessarily fixed. I have a feeling that https://github.com/godotengine/godot/pull/96502 may fix it though
Godot version
4.1.1.stable
System information
MacOS - Ventura 13.1 - Godot 4.1.1.stable
Issue description
When in a shader I use screen_texture:
and Compatibility mode. In many cases, a gridded pink lines appear:
In Forward+ mode:
In Mobile mode:
In Compatibility mode:
Steps to reproduce
Add this shader to a
ColorRect
in an independentCanvasLayer
:Minimal reproduction project
TestingShaderGlitch.zip