浏览代码

[ReflectionProbeEditor] BlendDistance cannot be negative

/feature-ReflectionProbeFit
Frédéric Vauchelles 7 年前
当前提交
c192412b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Handles.cs

2
ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Handles.cs


ValidateAABB(p, ref center, ref radius);
influenceRadius = radius.x;
var blendDistance = (influenceRadius - blendRadius) * 0.5f;
var blendDistance = Mathf.Max(0, (influenceRadius - blendRadius) * 0.5f);
reflectionData.influenceSphereRadius = influenceRadius;
p.blendDistance = blendDistance;

正在加载...
取消
保存