From 45cc425ab78b3d6e3766a713facc093f876d2c86 Mon Sep 17 00:00:00 2001 From: purplemarshmallow Date: Tue, 28 Jun 2016 10:35:26 +0200 Subject: [PATCH] [Glide64] add special blend modes for Pokemon Stadium games taken from https://github.com/gonetz/GLideN64/commit/74612aaa6e0702e4bfa229c86b03feea99b1f09e --- Source/Glide64/Combine.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Source/Glide64/Combine.cpp b/Source/Glide64/Combine.cpp index 07e39d1c7..e0ac9c9d1 100644 --- a/Source/Glide64/Combine.cpp +++ b/Source/Glide64/Combine.cpp @@ -15799,6 +15799,8 @@ void CombineBlender() A_BLEND(GR_BLEND_ONE, GR_BLEND_ONE); break; + //Pokemon Stadium + case 0xc712: // LOT in Zelda: MM case 0xaf50: case 0x0f5a: //clr_in * 0 + clr_mem * 1 @@ -15868,9 +15870,17 @@ void CombineBlender() A_BLEND(GR_BLEND_ONE_MINUS_SRC_ALPHA, GR_BLEND_SRC_ALPHA); break; - case 0xFA00: // Bomberman second attack - A_BLEND(GR_BLEND_ONE, GR_BLEND_ZERO); - break; + case 0xFA00: // Bomberman second attack + A_BLEND(GR_BLEND_ONE, GR_BLEND_ZERO); + break; + + //Pokemon Stadium + case 0x0F1A: + if (rdp.cycle_mode == 0) + A_BLEND(GR_BLEND_ONE, GR_BLEND_ZERO); + else + A_BLEND(GR_BLEND_ZERO, GR_BLEND_ONE); + break; default: A_BLEND(GR_BLEND_SRC_ALPHA, GR_BLEND_ONE_MINUS_SRC_ALPHA);