{
case ShapeType.Box:
blendBox.center = sp.target.center - (probeBlendDistancePositive - probeBlendDistanceNegative) * 0.5f;
blendBox.size = sp.target.size - probeBlendDistancePositive - probeBlendDistanceNegative;
alternativeBlendBox.center = sp.target.center - (probeBlendDistancePositive - probeBlendDistanceNegative) * 0.5f;
alternativeBlendBox.size = sp.target.size - probeBlendDistancePositive - probeBlendDistanceNegative;
Handles.color = k_GizmoThemeColorExtent;
Handles.color = color;
if(s.useNewGizmo)
alternativeBlendBox.DrawHandle();
}
else
blendBox.DrawHandle();
if (EditorGUI.EndChangeCheck())
Undo.RecordObject(sp.target, "Modified Reflection Probe Influence");
var influenceSize = sp.target.size;
var diff = 2 * ((s.useNewGizmo?alternativeBlendBox.center:blendBox.center) - center);
var sum = influenceSize - (s.useNewGizmo?alternativeBlendBox.size:blendBox.size);
var diff = 2 * (alternativeBlendBox.center - center);
var sum = influenceSize - (alternativeBlendBox.size);
var positive = (sum - diff) * 0.5f;
var negative = (sum + diff) * 0.5f;
var blendDistancePositive = Vector3.Max(Vector3.zero, Vector3.Min(positive, influenceSize));
if (s.useNewGizmo)
s.alternativeBoxInfluenceHandle.center = sp.target.center;
s.alternativeBoxInfluenceHandle.size = sp.target.size;
s.boxInfluenceHandle.center = sp.target.center;
s.boxInfluenceHandle.size = sp.target.size;
s.alternativeBoxInfluenceHandle.DrawHandle();
s.boxInfluenceHandle.DrawHandle();
Undo.RecordObject(sp.target, "Modified Reflection Probe AABB");
Vector3 size;
center = s.alternativeBoxInfluenceHandle.center;
size = s.alternativeBoxInfluenceHandle.size;
center = s.boxInfluenceHandle.center;
size = s.boxInfluenceHandle.size;
HDReflectionProbeEditorUtility.ValidateAABB(sp.target, ref center, ref size);
if(e != null && e.m_UIState.useNewGizmo)
if(e != null)
box.DrawHull(isEdit);
e.m_UIState.alternativeBoxInfluenceHandle.DrawHull(isEdit);