浏览代码

Update preprocessor definitions

/main
Evgenii Golubev 8 年前
当前提交
700f909f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl

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


// Evaluate the diffuse part.
{
#ifdef DIFFUSE_LAMBERT_BRDF
#ifdef LIT_DIFFUSE_LAMBERT_BRDF
ltcValue = LTCEvaluate(P1, P2, B, _identity3x3);
#else
ltcValue = LTCEvaluate(P1, P2, B, preLightData.ltcXformDisneyDiffuse);

return;
}
#ifndef DIFFUSE_LAMBERT_BRDF
#ifndef LIT_DIFFUSE_LAMBERT_BRDF
ltcValue *= preLightData.ltcDisneyDiffuseMagnitude;
#endif

// Evaluate the diffuse part.
{
#ifdef DIFFUSE_LAMBERT_BRDF
#ifdef LIT_DIFFUSE_LAMBERT_BRDF
ltcValue = LTCEvaluate(L, V, bsdfData.normalWS, preLightData.NdotV, lightData.twoSided,
_identity3x3);
#else

return;
}
#ifndef DIFFUSE_LAMBERT_BRDF
#ifndef LIT_DIFFUSE_LAMBERT_BRDF
ltcValue *= preLightData.ltcDisneyDiffuseMagnitude;
#endif

正在加载...
取消
保存