vec4 top-level property
dynamic Function(dynamic params)
vec4
getter/setter pair
Implementation
var vec4 = (params) {
if (params[0]?.isNode == true) {
return nodeObject(new ConvertNode(params[0], 'vec4'));
} else {
// Providing one scalar value: This value is used for all components
if (params.length == 1) {
params[1] = params[2] = params[3] = params[0];
}
return nodeObject(new Vector4Node(new Vector4(params)).setConst(true));
}
};