Event Timeline
Comment Actions
@Clément Foucault (fclem) Can I get your thoughts on this please?
Currently the function generator for Eevee uses all sockets in the calling function. Whether they are available or not.
The above patch is designed to omit the unavailable sockets and compact the signature.
This is useful for dynamic nodes that make sockets available depending on the mode.
E.g. From
void node_mix_blend(float fac,
vec3 facvec,
float f1,
float f2,
vec3 v1,
vec3 v2,
vec4 col1,
vec4 col2,
out float outfloat,
out vec3 outvec,
out vec4 outcol)
{
outcol = mix(col1, col2, fac);
outcol.a = col1.a;
}to
void node_mix_blend(float fac, vec4 col1, vec4 col2, out vec4 outcol)
{
outcol = mix(col1, col2, fac);
outcol.a = col1.a;
}