浏览代码

Remove redundant ALU

/feature-ReflectionProbeFit
Evgenii Golubev 7 年前
当前提交
585ef2d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl


anisotropy = inGBuffer2.b * 2.0 - 1.0;
// Get the rotation angle of the actual tangent frame with respect to the default one.
uint quadrant = UnpackByte(inGBuffer2.g) & 3;
uint quadrant = UnpackByte(inGBuffer2.g);
uint storeSin = UnpackByte(inGBuffer2.g) & 4;
float absVal0 = inGBuffer2.r * rsqrt(2);
float absVal1 = sqrt(1 - absVal0 * absVal0);

正在加载...
取消
保存