I’m not sure if this is doable or not, it would have to look into it because I’m not sure how it would be achieved. Since you’d be moving from getting the value from the UBO block and trying to somehow transparently exchange this for a #define
with the value from the param definition, but some things still need to come from the UBO block.
Sounds super hacky…
One possibility would be to add a auto-generated #define USE_STATIC_VALUES
(turned on/off from the ui) which the shader writer could react to and use static values they define and ignore the parameters. But it would also be ignoring the parameter values in the preset
The shader writer would still need to write their shader this way though