2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 15:47:43 +00:00

COmegaPirate: Implement CFlash

This commit is contained in:
2020-04-19 02:47:25 -04:00
parent 025a989e12
commit 4e88f503ac
12 changed files with 144 additions and 61 deletions

View File

@@ -90,14 +90,14 @@ void CAuiImagePane::DoDrawImagePane(const zeus::CColor& color, const CTexture& t
}};
if (noBlur) {
quad.drawVerts(useColor, verts.data());
quad.drawVerts(useColor, verts);
} else if ((x14c_deResFactor == 0.f && alpha == 1.f) || tex.GetNumMips() == 1) {
quad.drawVerts(useColor, verts.data(), 0.f);
quad.drawVerts(useColor, verts, 0.f);
} else {
const float tmp = (1.f - x14c_deResFactor) * alpha;
const float tmp3 = 1.f - tmp * tmp * tmp;
const float mip = tmp3 * (tex.GetNumMips() - 1);
quad.drawVerts(useColor, verts.data(), mip);
quad.drawVerts(useColor, verts, mip);
}
}