浏览代码

Fix roughness transfer from bsdfdata to precalculated data.

/main
Stephane Laroche 7 年前
当前提交
8a39a724
共有 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);

正在加载...
取消
保存