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 /mochie_shadow_caster.cginc | |
| parent | 09aa66c9c13965105133ca000da4d2c37d455877 (diff) | |
add water stuff
Diffstat (limited to 'mochie_shadow_caster.cginc')
| -rw-r--r-- | mochie_shadow_caster.cginc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mochie_shadow_caster.cginc b/mochie_shadow_caster.cginc index 9e8ee1e..028cc31 100644 --- a/mochie_shadow_caster.cginc +++ b/mochie_shadow_caster.cginc @@ -1,3 +1,5 @@ +#include "gerstner.cginc" + #ifndef __MOCHIE_SHADOW_CASTER_INC #define __MOCHIE_SHADOW_CASTER_INC @@ -55,6 +57,12 @@ v2f vert (appdata v){ return (v2f) (0.0 / 0.0); } #endif +#if !defined(_SCROLL) && defined(_GIMMICK_GERSTNER_WATER) + { + GerstnerParams p = getGerstnerParams(); + v.vertex.xyz = gerstner_vert(v.vertex.xyz, p); + } +#endif v2f o = (v2f)0; UNITY_SETUP_INSTANCE_ID(v); UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); |
