浏览代码

HDRenderLoop: Fix a warning

/main
Sebastien Lagarde 8 年前
当前提交
a71d48c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderLoop/ShaderLibrary/GeometricTools.hlsl

2
Assets/ScriptableRenderLoop/ShaderLibrary/GeometricTools.hlsl


// TODO: check that this code is effectively equivalent to code above (it should)
// Box is AABB
float3 DistancePointBox(float3 pos, float3 boxMin, float3 boxMax)
float DistancePointBox(float3 pos, float3 boxMin, float3 boxMax)
{
return length(max(max(pos - boxMax, boxMin - pos), float3(0.0, 0.0, 0.0)));
}
正在加载...
取消
保存