浏览代码

SHADER TARGET 45 = SM 5.0

/feature-ReflectionProbeFit
Evgenii Golubev 7 年前
当前提交
dfbbcbc0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      ScriptableRenderPipeline/Core/ShaderLibrary/Common.hlsl
  2. 2
      ScriptableRenderPipeline/Core/ShaderLibrary/Hammersley.hlsl

2
ScriptableRenderPipeline/Core/ShaderLibrary/Common.hlsl


return (x < 1.0) ? poly : HALF_PI - poly;
}
#if (SHADER_TARGET >= 50)
#if (SHADER_TARGET >= 45)
uint FastLog2(uint x)
{
return firstbithigh(x) - 1u;

2
ScriptableRenderPipeline/Core/ShaderLibrary/Hammersley.hlsl


// Ref: http://holger.dammertz.org/stuff/notes_HammersleyOnHemisphere.html
uint ReverseBits32(uint bits)
{
#if (SHADER_TARGET >= 50)
#if (SHADER_TARGET >= 45)
return reversebits(bits);
#else
bits = (bits << 16) | (bits >> 16);

正在加载...
取消
保存