Add Foliage Density Scale option to Graphics Quality Window in Editor

This commit is contained in:
Wojtek Figat
2021-07-09 21:44:20 +02:00
parent 91cf85c50e
commit e95010b1b2

View File

@@ -88,6 +88,14 @@ namespace FlaxEditor.Windows
set => Graphics.AllowCSMBlending = value;
}
[NoSerialize, DefaultValue(1.0f), Limit(0, 1)]
[EditorOrder(1500), EditorDisplay("Quality"), Tooltip("The global density scale for all foliage instances. The default value is 1. Use values from range 0-1. Lower values decrease amount of foliage instances in-game. Use it to tweak game performance for slower devices.")]
public float FoliageDensityScale
{
get => Foliage.GlobalDensityScale;
set => Foliage.GlobalDensityScale = value;
}
[NoSerialize]
[EditorOrder(2000), EditorDisplay("Textures", EditorDisplayAttribute.InlineStyle), Tooltip("Textures streaming configuration.")]
public TextureGroup[] TextureGroups