diff options
| author | yum <yum.food.vr@gmail.com> | 2024-12-25 20:30:14 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-01-22 21:07:06 -0800 |
| commit | 690f824533db02ecf9ac7e2a5672c0c84c5d1c1d (patch) | |
| tree | f82cf1dd878b3dc90382ba5b49096da31e70f88e /pbr.cginc | |
| parent | 358c53eb9ffae8da890fdc7ff10952bf3958819d (diff) | |
Tweak clearcoat
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,6 +4,7 @@ #include "filament_math.cginc" #include "globals.cginc" #include "interpolators.cginc" +#include "math.cginc" #include "MochieStandardBRDF.cginc" #include "poi.cginc" #include "tone.cginc" @@ -432,6 +433,7 @@ float4 getLitColor( /*smoothness=*/1 - cc_roughness, /*metallic=*/0, worldPos); + // Indirect specular { // TODO fold this into the full BRDF and apply the brightness corrections // described in the filament whitepaper: @@ -449,7 +451,7 @@ float4 getLitColor( LoH, h, Fc); - pbr.rgb += cc_term * cc_indirect_specular * cc_mask; + pbr.rgb += cc_term * (indirect_light.specular + indirect_light.diffuse) * cc_mask; } // Direct { |
