Skip to content

Commit feeb79d

Browse files
FrancescoC-unitysebastienlagarde
authored andcommitted
Small qol (#6036)
1 parent 37f7366 commit feeb79d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeVolumeBakingWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ void DelayCreateAsset()
418418
var serializedSet = serializedSets.GetArrayElementAtIndex(m_BakingSets.index);
419419
var probeVolumeBakingSettings = serializedSet.FindPropertyRelative("settings");
420420
EditorGUILayout.PropertyField(probeVolumeBakingSettings);
421+
422+
// Clamp to make sure minimum we set for dilation distance is min probe distance
423+
set.settings.dilationSettings.dilationDistance = Mathf.Max(set.profile.minDistanceBetweenProbes, set.settings.dilationSettings.dilationDistance);
421424
}
422425
else
423426
{

com.unity.render-pipelines.high-definition/Runtime/Lighting/ProbeVolume/ProbeVolumesOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public sealed class ProbeVolumesOptions : VolumeComponent
2525
public ClampedFloatParameter viewBias = new ClampedFloatParameter(0.0f, 0.0f, 1.0f);
2626

2727
/// <summary>
28-
/// Whether the scale the bias for Probe Volumes by the minimum distance between probes.
28+
/// Whether to scale the bias for Probe Volumes by the minimum distance between probes.
2929
/// </summary>
30-
[AdditionalProperty, Tooltip("Whether the scale the bias for Probe Volumes by the minimum distance between probes.")]
30+
[AdditionalProperty, Tooltip("Whether to scale the bias for Probe Volumes by the minimum distance between probes.")]
3131
public BoolParameter scaleBiasWithMinProbeDistance = new BoolParameter(false);
3232

3333
/// <summary>

0 commit comments

Comments
 (0)