summaryrefslogtreecommitdiffstats
path: root/scene/3d/label_3d.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-31 10:40:08 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-31 10:46:38 +0200
commitb4fe514aa3c4aa928663eb1cf45cef0afb5015b0 (patch)
tree5695ec2292b27c225ea6bd01f420eb825ad44e54 /scene/3d/label_3d.h
parente9de988020f3d46c3e7b4fd5a8a80724996035e0 (diff)
downloadredot-engine-b4fe514aa3c4aa928663eb1cf45cef0afb5015b0.tar.gz
[Sprite3D/Label3D] Expose alpha antialiasing properties.
Diffstat (limited to 'scene/3d/label_3d.h')
-rw-r--r--scene/3d/label_3d.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/3d/label_3d.h b/scene/3d/label_3d.h
index 576735840a..912f485354 100644
--- a/scene/3d/label_3d.h
+++ b/scene/3d/label_3d.h
@@ -62,6 +62,8 @@ private:
AlphaCutMode alpha_cut = ALPHA_CUT_DISABLED;
float alpha_scissor_threshold = 0.5;
float alpha_hash_scale = 1.0;
+ StandardMaterial3D::AlphaAntiAliasing alpha_antialiasing_mode = StandardMaterial3D::ALPHA_ANTIALIASING_OFF;
+ float alpha_antialiasing_edge = 0.0f;
AABB aabb;
@@ -234,6 +236,12 @@ public:
void set_alpha_hash_scale(float p_hash_scale);
float get_alpha_hash_scale() const;
+ void set_alpha_antialiasing(BaseMaterial3D::AlphaAntiAliasing p_alpha_aa);
+ BaseMaterial3D::AlphaAntiAliasing get_alpha_antialiasing() const;
+
+ void set_alpha_antialiasing_edge(float p_edge);
+ float get_alpha_antialiasing_edge() const;
+
void set_billboard_mode(StandardMaterial3D::BillboardMode p_mode);
StandardMaterial3D::BillboardMode get_billboard_mode() const;