static void game_shadow_conf(int pose, int enable) { if (enable && config_get_d(CONFIG_SHADOW)) { switch (pose) { case POSE_LEVEL: /* No shadow. */ tex_env_active(&tex_env_default); break; case POSE_BALL: /* Shadow only. */ tex_env_select(&tex_env_pose, &tex_env_default, NULL); break; default: /* Regular shadow. */ tex_env_select(&tex_env_shadow_clip, &tex_env_shadow, &tex_env_default, NULL); break; } } else { tex_env_active(&tex_env_default); } }
static void game_shadow_conf(int enable) { if (enable && config_get_d(CONFIG_SHADOW)) { tex_env_select(&tex_env_shadow_clip, &tex_env_shadow, &tex_env_default, NULL); } else { tex_env_active(&tex_env_default); } }