浏览代码

Merge pull request #1231 from Unity-Technologies/stacklit

Fix roughness transfer from bsdfdata to precalculated data.
/main
GitHub 7 年前
当前提交
79bd45da
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/StackLit/StackLit.hlsl

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


float3 N = bsdfData.normalWS;
preLightData.NdotV = dot(N, V);
preLightData.iblPerceptualRoughness[0] = bsdfData.perceptualRoughnessA;
preLightData.iblPerceptualRoughness[1] = bsdfData.perceptualRoughnessB;
float NdotV = ClampNdotV(preLightData.NdotV);

正在加载...
取消
保存