浏览代码

Update ImageBasedLighting.hlsl

/Yibing-Project-2
GitHub 7 年前
当前提交
271f304d
共有 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));
}

正在加载...
取消
保存