summaryrefslogtreecommitdiffstats
path: root/mochie_shadow_caster.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-08-28 17:49:05 -0700
committeryum <yum.food.vr@gmail.com>2024-08-28 17:49:05 -0700
commit6074470a44ec25a0fe4da6b96944a3997a69ffc5 (patch)
treec22719d1b375a3ef894902661c2ed9aee0f6a23d /mochie_shadow_caster.cginc
parentc1a54b9eefa073a1a0c2bfb61d836b6ea9a590ac (diff)
Bump up emissions cap; add discard to all passes
Diffstat (limited to 'mochie_shadow_caster.cginc')
-rw-r--r--mochie_shadow_caster.cginc5
1 files changed, 5 insertions, 0 deletions
diff --git a/mochie_shadow_caster.cginc b/mochie_shadow_caster.cginc
index 6c33ce7..9e8ee1e 100644
--- a/mochie_shadow_caster.cginc
+++ b/mochie_shadow_caster.cginc
@@ -50,6 +50,11 @@ struct v2f {
};
v2f vert (appdata v){
+#if defined(_DISCARD)
+ if (_Discard_Enable_Dynamic) {
+ return (v2f) (0.0 / 0.0);
+ }
+#endif
v2f o = (v2f)0;
UNITY_SETUP_INSTANCE_ID(v);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);