devmiyax / yabause

Yabause is a Sega Saturn emulator and took over as Yaba Sanshiro
http://www.uoyabause.org
GNU General Public License v2.0
211 stars 35 forks source link

Metal Black #901

Closed devmiyax closed 6 months ago

devmiyax commented 1 year ago

https://user-images.githubusercontent.com/1174152/198832756-bdd4249a-77e7-45d5-8fa5-4ab79d8e6368.mp4

devmiyax commented 1 year ago

Reference

https://www.youtube.com/watch?v=BBSZxMJ5oV0&t=749s

image

devmiyax commented 1 year ago

image

devmiyax commented 1 year ago

Drawn but ignored image

devmiyax commented 1 year ago

all alpha value is 0xC0

devmiyax commented 1 year ago

YglRenderFrameBufferShadow does not work???

devmiyax commented 1 year ago

Sprite window function use msb on the frame buffer. VDP1 draws msb with (CMDPMOD & 0x8000) or color CMDCOLR(bank mode). msb on CMDCOLR is cleared in Vdp1ReadPriority. I don't know why. But using this value sprite window function works.

image

devmiyax commented 1 year ago

back to main textgure.

        YglRenderFrameBufferShadow();
        glBindTexture(GL_TEXTURE_2D, YglTM->textureID_in[YglTM->current]);
        glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);

image

devmiyax commented 1 year ago

https://user-images.githubusercontent.com/1174152/198865387-d88072dd-4cfa-4d80-96a3-ff76492c4fa1.mp4