mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename BaseMaterial3D properties to use fully spelled out "texture"
This is more consistent with other BaseMaterial properties such as `ao_texture_channel`. This also improves the documentation related to `albedo_texture_force_srgb`. This also fixes a typo in the 3.x material converter.
This commit is contained in:
parent
4dd6f56c82
commit
a8a6e664fb
2 changed files with 16 additions and 12 deletions
|
@ -2557,8 +2557,8 @@ void BaseMaterial3D::_bind_methods() {
|
|||
ADD_GROUP("Albedo", "albedo_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::COLOR, "albedo_color"), "set_albedo", "get_albedo");
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::OBJECT, "albedo_texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture2D"), "set_texture", "get_texture", TEXTURE_ALBEDO);
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "albedo_tex_force_srgb"), "set_flag", "get_flag", FLAG_ALBEDO_TEXTURE_FORCE_SRGB);
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "albedo_tex_msdf"), "set_flag", "get_flag", FLAG_ALBEDO_TEXTURE_MSDF);
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "albedo_texture_force_srgb"), "set_flag", "get_flag", FLAG_ALBEDO_TEXTURE_FORCE_SRGB);
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "albedo_texture_msdf"), "set_flag", "get_flag", FLAG_ALBEDO_TEXTURE_MSDF);
|
||||
|
||||
ADD_GROUP("ORM", "orm_");
|
||||
ADD_PROPERTYI(PropertyInfo(Variant::OBJECT, "orm_texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture2D"), "set_texture", "get_texture", TEXTURE_ORM);
|
||||
|
@ -2965,7 +2965,7 @@ bool StandardMaterial3D::_set(const StringName &p_name, const Variant &p_value)
|
|||
{ "flags_no_depth_test", "no_depth_test" },
|
||||
{ "flags_use_point_size", "use_point_size" },
|
||||
{ "flags_fixed_size", "fixed_Size" },
|
||||
{ "flags_albedo_tex_force_srg", "albedo_tex_force_srgb" },
|
||||
{ "flags_albedo_tex_force_srgb", "albedo_texture_force_srgb" },
|
||||
{ "flags_do_not_receive_shadows", "disable_receive_shadows" },
|
||||
{ "flags_disable_ambient_light", "disable_ambient_light" },
|
||||
{ "params_diffuse_mode", "diffuse_mode" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue