浏览代码

[PlanarReflection] Dont use a center offset for sphere shape

/main
Frédéric Vauchelles 7 年前
当前提交
6f3aafbe
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 3
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Volume/InfluenceVolumeUI.Drawers.cs
  2. 1
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Volume/InfluenceVolumeUI.Handles.cs

3
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Volume/InfluenceVolumeUI.Drawers.cs


var maxFaceDistance = d.sphereBaseRadius.floatValue;
EditorGUILayout.PropertyField(d.sphereBaseRadius, _.GetContent("Radius"));
EditorGUILayout.PropertyField(d.sphereBaseOffset, _.GetContent("Offset"));
//EditorGUILayout.PropertyField(d.sphereBaseOffset, _.GetContent("Offset"));
d.sphereBaseOffset.vector3Value = Vector3.zero;
EditorGUILayout.Space();

1
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Volume/InfluenceVolumeUI.Handles.cs


{
Undo.RecordObject(sourceAsset, "Modified Base Volume AABB");
center = b.center;
radius = b.radius;
EditorUtility.SetDirty(sourceAsset);

正在加载...
取消
保存