You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Visual Shader Editor, if a Parameter is defined as Instance (Qualifier: Instance), all previews connected to the chain will stop working, and present the message "The 2D preview cannot correctly show the result retrieved from instance parameter.".
Expected behavior
When the Qualifier is set to None then the preview utilizes the default parameter (if set).
I was expecting for this behavior to not change, even when selecting a different Qualifier
Current workaround
I'm manually switching properties to Qualifier: None while I'm working on the Shader, and then changing it back to Qualifier: Instance when I run the program.
Depending on the Shader, and the amount of properties, this can range from "a minor nuance" to "doubting my life decisions" situation 😓
Notes
The behavior in code is working properly.
I.e. Using set_instance_shader_parameter is applying the effect to each individual element.
Source
The code for the Visual Shader (.tres) used in the test:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Godot version:
v4.4.1.stable.official
Situation
When using the Visual Shader Editor, if a Parameter is defined as Instance (
Qualifier: Instance
), all previews connected to the chain will stop working, and present the message "The 2D preview cannot correctly show the result retrieved from instance parameter.".Expected behavior
When the
Qualifier
is set toNone
then the preview utilizes the default parameter (if set).I was expecting for this behavior to not change, even when selecting a different
Qualifier
Current workaround
I'm manually switching properties to
Qualifier: None
while I'm working on the Shader, and then changing it back toQualifier: Instance
when I run the program.Notes
The behavior in code is working properly.
I.e. Using
set_instance_shader_parameter
is applying the effect to each individual element.Source
The code for the Visual Shader (
.tres
) used in the test:Beta Was this translation helpful? Give feedback.
All reactions