Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
VisualShaderNodeBillboard
繼承: VisualShaderNode < Resource < RefCounted < Object
在視覺化著色器圖中,用於控制物件如何面向相機的節點。
說明
這個節點的輸出埠需要連接至 VisualShaderNodeOutput 的 Model View Matrix 埠。
屬性
|
||
|
列舉
enum BillboardType: 🔗
BillboardType BILLBOARD_TYPE_DISABLED = 0
公告板被禁用,該節點不做任何事情。
BillboardType BILLBOARD_TYPE_ENABLED = 1
啟用標準公告板演算法。
BillboardType BILLBOARD_TYPE_FIXED_Y = 2
啟用圍繞 Y 軸旋轉的公告板演算法。
BillboardType BILLBOARD_TYPE_PARTICLES = 3
啟用針對粒子設計的公告板演算法。
BillboardType BILLBOARD_TYPE_MAX = 4
代表 BillboardType 列舉的大小。
屬性說明
BillboardType billboard_type = 1 🔗
void set_billboard_type(value: BillboardType)
BillboardType get_billboard_type()
Controls how the object faces the camera.
如果為 true,則著色器將保持為網格設定的縮放。否則,進行公告板處理時將丟失縮放。