浏览代码

moved constant offset outside of loop

/main
sleal-unity 4 年前
当前提交
c3b73229
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Utilities/PoissonDiskSampling.cs

5
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Utilities/PoissonDiskSampling.cs


}
// Remove the positional offset from the filtered-but-still-super-sampled points
var offset = new float2(minimumRadius, minimumRadius);
{
croppedSamples[i] -= new float2(minimumRadius, minimumRadius);
}
croppedSamples[i] -= offset;
results.Dispose();
}

正在加载...
取消
保存