From dd46f7e166eabee42564b6dfe4c0a4e1d54b5e7d Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 17 Oct 2024 17:56:05 -0700 Subject: Begin work on aurora gimmick --- tooner_lighting.cginc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tooner_lighting.cginc') diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc index f771f4a..63cd69d 100644 --- a/tooner_lighting.cginc +++ b/tooner_lighting.cginc @@ -3,6 +3,7 @@ #include "UnityPBSLighting.cginc" #include "audiolink.cginc" +#include "aurora.cginc" #include "clones.cginc" #include "cnlohr.cginc" #include "disinfo.cginc" @@ -2203,8 +2204,14 @@ float4 effect(inout v2f i, out float depth) { Fog00PBR pbr = getFog00(i); albedo = pbr.albedo; - normal = pbr.normal; - ao = pbr.ao; + depth = pbr.depth; + diffuse_contrib += pbr.diffuse; + } +#endif +#if defined(_GIMMICK_AURORA) + { + AuroraPBR pbr = getAurora(i); + albedo = pbr.albedo; depth = pbr.depth; diffuse_contrib += pbr.diffuse; } -- cgit v1.2.3