diff options
| author | yum <yum.food.vr@gmail.com> | 2024-12-25 20:29:23 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-12-25 20:29:23 -0800 |
| commit | 4f78fa07364d921d3dca811442cdf05e6a384370 (patch) | |
| tree | b2a3c2bb124d27f22e59226af09f2cf869a5086b /pbr.cginc | |
| parent | bc1a80b614afa8bf6f7d601f0caa3eba33320201 (diff) | |
Tweak LTCGI based on world experiments
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -245,7 +245,7 @@ float4 getLitColor( direct_light.color *= (1 - e); } -#if defined(_LTCGI) +#if 0 && defined(_LTCGI) ltcgi_acc acc = (ltcgi_acc) 0; if (_LTCGI_Enabled_Dynamic) { LTCGI_Contribution( @@ -379,6 +379,21 @@ float4 getLitColor( indirect_light).xyz; #endif + +#if 1 && defined(_LTCGI) + ltcgi_acc acc = (ltcgi_acc) 0; + if (_LTCGI_Enabled_Dynamic) { + LTCGI_Contribution( + acc, + i.worldPos, + normal, + view_dir, + 1.0 - smoothness, + 0); + pbr.rgb += acc.diffuse * pbr.rgb + acc.specular; + } +#endif + // TODO formalize with parameters // Break up color banding by adding some dithering to shaded color. float screen_dither = ign(tdata.screen_uv_round) * .00390625; |
