mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-13 02:06:09 +00:00
COmegaPirate: Implement CFlash
This commit is contained in:
@@ -372,12 +372,12 @@ void CPlayerVisor::DrawScanEffect(const CStateManager& mgr, CTargetingManager* t
|
||||
const float uvX1 = float(rect.x4_left + rect.xc_width) / float(g_Viewport.x8_width);
|
||||
const float uvY0 = float(rect.x8_top) / float(g_Viewport.xc_height);
|
||||
const float uvY1 = float(rect.x8_top + rect.x10_height) / float(g_Viewport.xc_height);
|
||||
CTexturedQuadFilter::Vert rttVerts[4] = {
|
||||
const std::array<CTexturedQuadFilter::Vert, 4> rttVerts{{
|
||||
{{-5.f, 0.f, 4.45f}, {uvX0, uvY0}},
|
||||
{{5.f, 0.f, 4.45f}, {uvX1, uvY0}},
|
||||
{{-5.f, 0.f, -4.45f}, {uvX0, uvY1}},
|
||||
{{5.f, 0.f, -4.45f}, {uvX1, uvY1}},
|
||||
};
|
||||
}};
|
||||
if (CGraphics::g_BooPlatform == boo::IGraphicsDataFactory::Platform::OpenGL) {
|
||||
rttVerts[0].m_uv.y() = uvY1;
|
||||
rttVerts[1].m_uv.y() = uvY1;
|
||||
|
||||
Reference in New Issue
Block a user