Skip to content

Commit

Permalink
Merge pull request #77 from Santarh/ignoreWhiteOutByMainLight
Browse files Browse the repository at this point in the history
Ignore white out by main light + ambient light pass.
  • Loading branch information
Santarh authored Jun 5, 2019
2 parents bba7719 + 70ac3a4 commit 0199580
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MToon/Resources/Shaders/MToonCore.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ float4 frag_forward(v2f i) : SV_TARGET
half3 indirectLighting = lerp(toonedGI, ShadeSH9(half4(worldNormal, 1)), _IndirectLightIntensity);
indirectLighting = lerp(indirectLighting, max(EPS_COL, max(indirectLighting.x, max(indirectLighting.y, indirectLighting.z))), _LightColorAttenuation); // color atten
col += indirectLighting * lit;

col = min(col, lit); // comment out if you want to PBR absolutely.
#endif

// parametric rim lighting
Expand Down

0 comments on commit 0199580

Please sign in to comment.