diff options
| author | yum <yum.food.vr@gmail.com> | 2024-10-24 18:45:29 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-10-24 18:45:29 -0700 |
| commit | 1705cd25f5bcd796a560bcce22ef91d190a94900 (patch) | |
| tree | 122c80d25228e2e7c83fa720982576535223ebab /tooner_outline_pass.cginc | |
| parent | 09aa66c9c13965105133ca000da4d2c37d455877 (diff) | |
add water stuff
Diffstat (limited to 'tooner_outline_pass.cginc')
| -rw-r--r-- | tooner_outline_pass.cginc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tooner_outline_pass.cginc b/tooner_outline_pass.cginc index 93ba73c..46a03f0 100644 --- a/tooner_outline_pass.cginc +++ b/tooner_outline_pass.cginc @@ -50,13 +50,16 @@ v2f vert(appdata v) float4 objPos = v.vertex; +#if defined(_OUTLINES) #if !defined(_SCROLL) && defined(_GIMMICK_GERSTNER_WATER) { GerstnerParams p = getGerstnerParams(); objPos.xyz = gerstner_vert(objPos.xyz, p); - v.normal = gerstner_frag(objPos.xyz, p); + GerstnerFragResult r = gerstner_frag(objPos.xyz, p); + v.normal = r.normal; } #endif +#endif #if defined(_OUTLINES) float outline_mask = _Outline_Mask.SampleLevel(linear_repeat_s, v.uv0.xy, /*lod=*/0); |
