浏览代码

Move lerp code to LightEvaluation.hlsl

/main
Remy 6 年前
当前提交
34c39d24
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Lighting/LightEvaluation.hlsl
  2. 1
      com.unity.render-pipelines.high-definition/HDRP/Material/Lit/Lit.hlsl

2
com.unity.render-pipelines.high-definition/HDRP/Lighting/LightEvaluation.hlsl


// Note: we do not modify the distance to the light, or the light angle for the back face.
// This is a performance-saving optimization which makes sense as long as the thickness is small.
}
transmittance = lerp( bsdfData.transmittance, transmittance, lightData.shadowDimmer);
}
return transmittance;

1
com.unity.render-pipelines.high-definition/HDRP/Material/Lit/Lit.hlsl


{
// Caution: This function modify N and lightData.contactShadowIndex
transmittance = PreEvaluatePunctualLightTransmission(lightLoopContext, posInput, distances.x, NdotL, L, bsdfData, N, lightData);
transmittance = lerp( bsdfData.transmittance, transmittance, lightData.shadowDimmer);
}
float3 color;

正在加载...
取消
保存