2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 00:06:09 +00:00

CVisorFlare implementation

This commit is contained in:
2022-05-24 01:44:20 -04:00
parent f80813b9cc
commit 05ad95bdd0
5 changed files with 177 additions and 43 deletions

View File

@@ -42,8 +42,7 @@ void CSimpleShadow::Render(TLockedToken<CTexture>& tex) {
ERglLogicOp::Clear);
CGraphics::StreamBegin(GX::QUADS);
float radius = x34_radius * x30_scale;
float t = x3c_heightAlpha * x38_userAlpha;
CGraphics::StreamColor(zeus::CColor{t, t} /* TODO double check */);
CGraphics::StreamColor(zeus::CColor{1.f, x3c_heightAlpha * x38_userAlpha});
CGraphics::StreamTexcoord(0.f, 0.f);
CGraphics::StreamVertex(-radius, 0.f, -radius);
CGraphics::StreamTexcoord(0.f, 1.f);