What if im downloading shader from my server and apply it on my panel with this code:
func _on_shader_loaded(result, response_code, headers, body, node):
if response_code == 200:
var shader_code = body.get_string_from_utf8()
var shader = Shader.new()
shader.set_code(shader_code)
print(shader_code)
node.material = ShaderMaterial.new()
node.material.shader = shader
else:
push_warning("Failed to load shader. Response code: %d" % response_code)
But when i try to play, i get the error: E 0:00:04:0032 version_get_shader: Parameter “version” is null. <Source code C++>./servers/rendering/renderer_rd/shader_rd.h:165 @ version_get_shader() I’m sure my shader code is fine.
The problem is that I have not understood why I have a console endlessly displays this error.
Despite the fact that _process(delta) doesn’t even have any call that could infinitely output it to the console.
This error can happen if I switched from Godot 3.5 to 4.2.1, but all the shaders work and display correctly, so I think the error is just a phantom error, but very much interferes with work