Merge pull request #30635 from KoBeWi/billbo_3dns
Add a Billboard property for Sprite3D
This commit is contained in:
commit
9762372329
4 changed files with 34 additions and 7 deletions
|
|
@ -437,9 +437,7 @@ private:
|
|||
|
||||
_FORCE_INLINE_ void _validate_feature(const String &text, Feature feature, PropertyInfo &property) const;
|
||||
|
||||
enum {
|
||||
MAX_MATERIALS_FOR_2D = 32
|
||||
};
|
||||
static const int MAX_MATERIALS_FOR_2D = 128;
|
||||
|
||||
static Ref<SpatialMaterial> materials_for_2d[MAX_MATERIALS_FOR_2D]; //used by Sprite3D and other stuff
|
||||
|
||||
|
|
@ -626,7 +624,7 @@ public:
|
|||
static void finish_shaders();
|
||||
static void flush_changes();
|
||||
|
||||
static RID get_material_rid_for_2d(bool p_shaded, bool p_transparent, bool p_double_sided, bool p_cut_alpha, bool p_opaque_prepass);
|
||||
static RID get_material_rid_for_2d(bool p_shaded, bool p_transparent, bool p_double_sided, bool p_cut_alpha, bool p_opaque_prepass, bool p_billboard = false, bool p_billboard_y = false);
|
||||
|
||||
RID get_shader_rid() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue