浏览代码

Fix the cubemap GGX convolution

/main
Evgenii Golubev 8 年前
当前提交
16b21b8b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/GGXConvolve.shader

3
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/GGXConvolve.shader


half4 Frag(Varyings input) : SV_Target
{
float3 N = input.eyeVector;
// Vector interpolation is not magnitude-preserving.
float3 N = normalize(input.eyeVector);
float3 V = N;
float perceptualRoughness = mipmapLevelToPerceptualRoughness(_Level);

正在加载...
取消
保存