mkst / sm64-port

My mirror of the sm64-port. You probably want to look at the 3DS port branch: https://github.com/mkst/sm64-port/tree/3ds-port
https://discord.gg/7bcNTPK
251 stars 34 forks source link

BUG - Vanish cap #4

Open mkst opened 4 years ago

mkst commented 4 years ago

Vanish cap effect does not match N64

3DS image

N64 image

Edit:

Naive edit, applied to triangles rather than per-pixel

if (hasNoise && hasAlpha)
{
    *dst++ = buf_vbo[offset + vtxOffs++] * (rand() % 2);
}

image

Edit 2:

Seeing as there are no programmable fragment shaders on the 3DS, this is going to be tricky. Treat the colour as a texture and apply noise to that?

Idiot64 commented 3 years ago

Sometimes the n64 uses dithering for transparency when you teleport, it uses it too