Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (props) => {
const defaults = {
model: mat4.identity([])
}
props = Object.assign({}, defaults, props)
return single([
{ color: xColor, model: mat4.multiply(mat4.create(), props.model, xAxisModel) }, // X
{ color: yColor, model: mat4.multiply(mat4.create(), props.model, yAxisModel) }, // Y
{ color: zColor, model: mat4.multiply(mat4.create(), props.model, zAxisModel) } // Z
])
}
}
return (_, {model, headModel}) => mat4.multiply(out, model, headModel)
})()