diff --git a/Shaders/LTCGI.cginc b/Shaders/LTCGI.cginc index 1e5082c..71d112c 100644 --- a/Shaders/LTCGI.cginc +++ b/Shaders/LTCGI.cginc @@ -297,6 +297,7 @@ void LTCGI_Contribution( lmd = smoothstep(0.0, LTCGI_SPECULAR_LIGHTMAP_STEP, saturate(lm - LTCGI_LIGHTMAP_CUTOFF)); } ltcgi_output diff; + diff.color = 0; LTCGI_Evaluate(input, worldNorm, viewDir, identityBrdf, roughness, true, diff); diff.intensity *= lmd; @@ -316,6 +317,7 @@ void LTCGI_Contribution( if (flags.specular) { ltcgi_output spec; + spec.color = 0; LTCGI_Evaluate(input, worldNorm, viewDir, Minv, roughness, false, spec); spec.intensity *= spec_amp * smoothstep(0.0, LTCGI_SPECULAR_LIGHTMAP_STEP, saturate(lm - LTCGI_LIGHTMAP_CUTOFF)); @@ -404,4 +406,4 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#endif \ No newline at end of file +#endif