Skip to content

Commit

Permalink
use appropriate variable names for diffuse calcs
Browse files Browse the repository at this point in the history
  • Loading branch information
AltimorTASDK committed Sep 17, 2023
1 parent 19ec5a0 commit 823a048
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/FRPG_FlverPBL/FRPG_Common_ForwardPBL.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ float3 CalcSH(float3 N, float4 worldPos)
float3 CalcDiffuseLD(float3 dominantN)
{
#ifdef WITH_EnvLerp
float3 spec1 = gFC_EnvDifMapMulCol.rgb * texCUBElod(gSMP_EnvDifMap, float4(dominantN, 0.0f)).rgb;
float3 spec2 = gFC_EnvDifMapMulCol2.rgb * texCUBElod(gSMP_EnvDifMap2, float4(dominantN, 0.0f)).rgb;
return gFC_DifMapMultiplier * lerp(spec1, spec2, gFC_EnvDifMapMulCol2.a);
float3 dif1 = gFC_EnvDifMapMulCol.rgb * texCUBElod(gSMP_EnvDifMap, float4(dominantN, 0.0f)).rgb;
float3 dif2 = gFC_EnvDifMapMulCol2.rgb * texCUBElod(gSMP_EnvDifMap2, float4(dominantN, 0.0f)).rgb;
return gFC_DifMapMultiplier * lerp(dif1, dif2, gFC_EnvDifMapMulCol2.a);
#else
return gFC_EnvDifMapMulCol.rgb * gFC_DifMapMultiplier * texCUBElod(gSMP_LightProbeDif, float4(dominantN, 0.0f)).rgb;
#endif
Expand Down

0 comments on commit 823a048

Please sign in to comment.