A renderer settings. See the description of [[RendererFirstPersonFlags]] for more info
Readonly
humanoidIts associated VRMHumanoid.
Static
Readonly
DEFAULT_A default camera layer for FirstPersonOnly
layer.
Static
Readonly
DEFAULT_A default camera layer for ThirdPersonOnly
layer.
A camera layer represents FirstPersonOnly
layer.
Note that you must call setup first before you use the layer feature or it does not work properly.
The value is DEFAULT_FIRSTPERSON_ONLY_LAYER by default but you can change the layer by specifying via setup if you prefer.
A camera layer represents ThirdPersonOnly
layer.
Note that you must call setup first before you use the layer feature or it does not work properly.
The value is DEFAULT_THIRDPERSON_ONLY_LAYER by default but you can change the layer by specifying via setup if you prefer.
Copy the given VRMFirstPerson into this one. humanoid must be same as the source one.
The VRMFirstPerson you want to copy
this
In this method, it assigns layers for every meshes based on mesh annotations. You must call this method first before you use the layer feature.
This is an equivalent of VRMFirstPerson.Setup of the UniVRM.
The cameraLayer
parameter specifies which layer will be assigned for FirstPersonOnly
/ ThirdPersonOnly
.
In UniVRM, we specified those by naming each desired layer as FIRSTPERSON_ONLY_LAYER
/ THIRDPERSON_ONLY_LAYER
but we are going to specify these layers at here since we are unable to name layers in Three.js.
Optional
cameraLayer: { firstPersonOnlyLayer?: number; thirdPersonOnlyLayer?: number }Specify which layer will be for FirstPersonOnly
/ ThirdPersonOnly
.
Create a new VRMFirstPerson object.