billboarding

Last modified: Feb 5, 2025

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

Returns

Node<vec3>