diff options
| author | yum <yum.food.vr@gmail.com> | 2024-10-17 17:56:05 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-10-17 17:56:05 -0700 |
| commit | dd46f7e166eabee42564b6dfe4c0a4e1d54b5e7d (patch) | |
| tree | c5c204f1e96b8b171dad1a0b7eaa9d4b3976661c /tooner_lighting.cginc | |
| parent | 182e51776a51977d480ac19e668d3c209e601766 (diff) | |
Begin work on aurora gimmick
Diffstat (limited to 'tooner_lighting.cginc')
| -rw-r--r-- | tooner_lighting.cginc | 11 |
1 files changed, 9 insertions, 2 deletions
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; } |
