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