From e67f4288b988784d0686ca2f90efb68414a31c3e Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 14 Jun 2024 15:28:13 -0700 Subject: LTCGI now uses specular Also fix _lightmap codepath (unused currently) --- tooner_lighting.cginc | 3 ++- tooner_outline_pass.cginc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc index f4ec9eb..220a1e8 100644 --- a/tooner_lighting.cginc +++ b/tooner_lighting.cginc @@ -927,7 +927,8 @@ float4 effect(inout v2f i) roughness, 0); float3 ltcgi_emission = 0; - ltcgi_emission += clamp(acc.diffuse * albedo.rgb, 0, 2); + ltcgi_emission += acc.diffuse; + ltcgi_emission += acc.specular; result.rgb += ltcgi_emission; } #endif diff --git a/tooner_outline_pass.cginc b/tooner_outline_pass.cginc index 69de32c..a6f982a 100644 --- a/tooner_outline_pass.cginc +++ b/tooner_outline_pass.cginc @@ -67,7 +67,7 @@ v2f vert(appdata v) o.normal = normal; o.uv = v.uv0.xy; #if defined(LIGHTMAP_ON) - o.lmuv = v.uv1 * unity_LightmapST.xy + unity_LightmapST.zw + o.lmuv = v.uv1 * unity_LightmapST.xy + unity_LightmapST.zw; #endif return o; -- cgit v1.2.3