This can be used to achieve a billboarding behavior for flat meshes. That means they are oriented always towards the camera.
material.vertexNode = billboarding();
export {}| Parameter | Type | Default Value |
|---|---|---|
| config | Object | — |
| config.position? | Node<vec3> | null | null |
| config.horizontal? | boolean | true |
| config.vertical? | boolean | false |
Returns
Node<vec3>