mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Sort decals and lights based on camera origin
Also implement sort_offset for decals Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -156,6 +156,10 @@ void Decal::_validate_property(PropertyInfo &p_property) const {
|
||||
if (!distance_fade_enabled && (p_property.name == "distance_fade_begin" || p_property.name == "distance_fade_length")) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
}
|
||||
|
||||
if (p_property.name == "sorting_offset") {
|
||||
p_property.usage = PROPERTY_USAGE_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
PackedStringArray Decal::get_configuration_warnings() const {
|
||||
|
||||
Reference in New Issue
Block a user