浏览代码

More typo fixing

/feature-ReflectionProbeFit
sebastienlagarde 7 年前
当前提交
f9c65ed3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Random.hlsl

4
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Random.hlsl


return JenkinsHash(v.x ^ JenkinsHash(v.y) ^ JenkinsHash(v.z) ^ JenkinsHash(v.w));
}
// Construct a float with float-open range [0, 1) using low 23 bits.
// Construct a float with half-open range [0, 1) using low 23 bits.
// All zeros yields 0, all ones yields the next smallest representable value below 1.
float ConstructFloat(int m) {
const int ieeeMantissa = 0x007FFFFF; // Binary FP32 mantissa bitmask

return ConstructFloat(asint(m));
}
// Pseudo-random value in float-open range [0, 1). The distribution is reasonably uniform.
// Pseudo-random value in half-open range [0, 1). The distribution is reasonably uniform.
// Ref: https://stackoverflow.com/a/17479300
float GenerateHashedRandomFloat(uint x)
{

正在加载...
取消
保存