summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pbr.cginc17
1 files changed, 16 insertions, 1 deletions
diff --git a/pbr.cginc b/pbr.cginc
index d65f981..0095654 100644
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -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;