浏览代码

Fix new gismo usage

/main
RSlysz 7 年前
当前提交
dd9e9bb2
共有 1 个文件被更改,包括 10 次插入58 次删除
  1. 68
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeUI.cs

68
com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeUI.cs


public BoxBoundsHandle boxProjectionHandle = new BoxBoundsHandle();
public BoxBoundsHandle boxBlendHandle = new BoxBoundsHandle();
public BoxBoundsHandle boxBlendNormalHandle = new BoxBoundsHandle();
public Gizmo6FacesBox alternativeBoxInfluenceHandle = new Gizmo6FacesBox();
public Gizmo6FacesBox alternativeBoxInfluenceHandle;
public Gizmo6FacesBoxContained alternativeBoxBlendHandle;
public Gizmo6FacesBoxContained alternativeBoxBlendNormalHandle;
public SphereBoundsHandle sphereInfluenceHandle = new SphereBoundsHandle();

isSectionExpendedAdvancedBlendNormalDistanceBoxShape.value = false;
isSectionExpendedAdvancedBlendFaceFadeBoxShape.value = false;
alternativeBoxBlendHandle = new Gizmo6FacesBoxContained(alternativeBoxInfluenceHandle);
alternativeBoxBlendNormalHandle = new Gizmo6FacesBoxContained(alternativeBoxInfluenceHandle);
alternativeBoxInfluenceHandle = new Gizmo6FacesBox(monochromeFace:true, monochromeSelectedFace:true);
alternativeBoxBlendHandle = new Gizmo6FacesBoxContained(alternativeBoxInfluenceHandle, monochromeFace:true, monochromeSelectedFace:true);
alternativeBoxBlendNormalHandle = new Gizmo6FacesBoxContained(alternativeBoxInfluenceHandle, monochromeFace:true, monochromeSelectedFace:true);
Color[] handleColors = new Color[]
{

alternativeBoxBlendHandle.handleColors = handleColors;
alternativeBoxBlendNormalHandle.handleColors = handleColors;
//unified color is finally better [Todo: improve gizmo to have an override color]
alternativeBoxInfluenceHandle.faceColors = new Color[]
{
HDReflectionProbeEditor.k_GizmoThemeColorExtent,
HDReflectionProbeEditor.k_GizmoThemeColorExtent,
HDReflectionProbeEditor.k_GizmoThemeColorExtent,
HDReflectionProbeEditor.k_GizmoThemeColorExtent,
HDReflectionProbeEditor.k_GizmoThemeColorExtent,
HDReflectionProbeEditor.k_GizmoThemeColorExtent
};
alternativeBoxInfluenceHandle.faceColorsSelected = new Color[]
{
HDReflectionProbeEditor.k_GizmoThemeColorExtentFace,
HDReflectionProbeEditor.k_GizmoThemeColorExtentFace,
HDReflectionProbeEditor.k_GizmoThemeColorExtentFace,
HDReflectionProbeEditor.k_GizmoThemeColorExtentFace,
HDReflectionProbeEditor.k_GizmoThemeColorExtentFace,
HDReflectionProbeEditor.k_GizmoThemeColorExtentFace
};
alternativeBoxBlendHandle.faceColors = new Color[]
{
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend
};
alternativeBoxBlendHandle.faceColorsSelected = new Color[]
{
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace
};
alternativeBoxBlendNormalHandle.faceColors = new Color[]
{
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend
};
alternativeBoxBlendNormalHandle.faceColorsSelected = new Color[]
{
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace,
HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace
};
alternativeBoxInfluenceHandle.faceColors = new Color[] { HDReflectionProbeEditor.k_GizmoThemeColorExtent };
alternativeBoxInfluenceHandle.faceColorsSelected = new Color[] { HDReflectionProbeEditor.k_GizmoThemeColorExtentFace };
alternativeBoxBlendHandle.faceColors = new Color[] { HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlend };
alternativeBoxBlendHandle.faceColorsSelected = new Color[] { HDReflectionProbeEditor.k_GizmoThemeColorInfluenceBlendFace };
alternativeBoxBlendNormalHandle.faceColors = new Color[] { HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlend };
alternativeBoxBlendNormalHandle.faceColorsSelected = new Color[] { HDReflectionProbeEditor.k_GizmoThemeColorInfluenceNormalBlendFace };
}
public override void Update()

正在加载...
取消
保存