billboarding

Last modified: Aug 10, 2026

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 {}
ParameterTypeDefault Value
configObject—
config.position?Node<vec3> | nullnull
config.horizontal?booleantrue
config.vertical?booleanfalse
config.horizontalRotation?booleanfalse

Returns

Node<vec3>