diff options
| author | yum <yum.food.vr@gmail.com> | 2024-06-14 15:28:13 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-06-14 15:28:13 -0700 |
| commit | e67f4288b988784d0686ca2f90efb68414a31c3e (patch) | |
| tree | df3bc06edc7e7e287fba12f6026258befb0f4ac2 | |
| parent | 86bc50eb8b9d4dbc5561a5729cac89dca6ad50ed (diff) | |
LTCGI now uses specular
Also fix _lightmap codepath (unused currently)
| -rw-r--r-- | tooner_lighting.cginc | 3 | ||||
| -rw-r--r-- | 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; |
