浏览代码

HDRenderLoop: Split LIT_DISPLAY_REFERENCE in LIT_DISPLAY_REFERENCE_AREA and LIT_DISPLAY_REFERENCE_IBL

/main
sebastienlagarde 8 年前
当前提交
2f4f4d22
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 7
      Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl

7
Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl


#endif
// Reference Lambert diffuse / GGX Specular for IBL and area lights
// #define LIT_DISPLAY_REFERENCE
// #define LIT_DISPLAY_REFERENCE_AREA
// #define LIT_DISPLAY_REFERENCE_IBL
// Use Lambert diffuse instead of Disney diffuse
// #define LIT_DIFFUSE_LAMBERT_BRDF
// Use optimization of Precomputing LambdaV

out float3 diffuseLighting,
out float3 specularLighting)
{
#ifdef LIT_DISPLAY_REFERENCE
#ifdef LIT_DISPLAY_REFERENCE_AREA
IntegrateGGXAreaRef(V, positionWS, preLightData, lightData, bsdfData, diffuseLighting, specularLighting);
#else
// TODO: This could be precomputed

float3 V, float3 positionWS, PreLightData preLightData, EnvLightData lightData, BSDFData bsdfData,
out float3 diffuseLighting, out float3 specularLighting, out float2 weight)
{
#ifdef LIT_DISPLAY_REFERENCE
#ifdef LIT_DISPLAY_REFERENCE_IBL
specularLighting = IntegrateSpecularGGXIBLRef(lightLoopContext, V, lightData, bsdfData);

正在加载...
取消
保存