Merge branch 'small_editor_fix' of https://github.com/cristhofermarques/FlaxEngine into cristhofermarques-small_editor_fix
This commit is contained in:
@@ -24,7 +24,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
||||
public override void Initialize(LayoutElementsContainer layout)
|
||||
{
|
||||
string[] layerNames = LayersAndTagsSettings.GetCurrentLayers();
|
||||
int layersCount = Math.Max(4, layerNames.Length);
|
||||
int layersCount = layerNames.Length;
|
||||
_checkBoxes = new List<CheckBox>();
|
||||
_layersCount = layersCount;
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
/// If checked, Environment Probes will use HDR texture format. Improves quality in very bright scenes at cost of higher memory usage.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes = "EditorOrder(1502), EditorDisplay(\"Quality\")")
|
||||
bool UeeHDRProbes = false;
|
||||
bool UseHDRProbes = false;
|
||||
|
||||
/// <summary>
|
||||
/// If checked, enables Global SDF rendering. This can be used in materials, shaders, and particles.
|
||||
|
||||
@@ -204,7 +204,7 @@ int32 ProbesRenderer::Entry::GetResolution() const
|
||||
|
||||
PixelFormat ProbesRenderer::Entry::GetFormat() const
|
||||
{
|
||||
return GraphicsSettings::Get()->UeeHDRProbes ? PixelFormat::R11G11B10_Float : PixelFormat::R8G8B8A8_UNorm;
|
||||
return GraphicsSettings::Get()->UseHDRProbes ? PixelFormat::R11G11B10_Float : PixelFormat::R8G8B8A8_UNorm;
|
||||
}
|
||||
|
||||
int32 ProbesRenderer::GetBakeQueueSize()
|
||||
|
||||
Reference in New Issue
Block a user