浏览代码

Merge branch 'new_aniso_hack' of https://github.com/EvgeniiG/ScriptableRenderLoop into new_aniso_hack

/Yibing-Project-2
Evgenii Golubev 7 年前
当前提交
836904e9
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 1
      ScriptableRenderPipeline/Core/ShaderLibrary/ImageBasedLighting.hlsl

1
ScriptableRenderPipeline/Core/ShaderLibrary/ImageBasedLighting.hlsl


float3 GetAnisotropicModifiedNormal(float3 grainDir, float3 N, float3 V, float anisotropy)
{
float3 grainNormal = ComputeGrainNormal(grainDir, V);
// TODO: test whether normalizing 'grainNormal' is worth it.
return normalize(lerp(N, grainNormal, anisotropy));
}

正在加载...
取消
保存