VisualShaderNodeBillboard
继承: VisualShaderNode
< Resource
< RefCounted
< Object
A node that controls how the object faces the camera to be used within the visual shader graph.
描述
The output port of this node needs to be connected to Model View Matrix
port of VisualShaderNodeOutput
.
属性
枚举
enum BillboardType:
BillboardType BILLBOARD_TYPE_DISABLED = 0
Billboarding is disabled and the node does nothing.
BillboardType BILLBOARD_TYPE_ENABLED = 1
A standard billboarding algorithm is enabled.
BillboardType BILLBOARD_TYPE_FIXED_Y = 2
A billboarding algorithm to rotate around Y-axis is enabled.
BillboardType BILLBOARD_TYPE_PARTICLES = 3
A billboarding algorithm designed to use on particles is enabled.
BillboardType BILLBOARD_TYPE_MAX = 4
Represents the size of the BillboardType enum.
属性说明
BillboardType billboard_type = 1
void
set_billboard_type ( value: BillboardType )- BillboardType get_billboard_type ( )
Controls how the object faces the camera. See BillboardType.
bool
keep_scale = false
If true
, the shader will keep the scale set for the mesh. Otherwise, the scale is lost when billboarding.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。