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

Initial fog volume rendering implementation

This commit is contained in:
Jack Andersen
2017-03-09 17:40:24 -10:00
parent 0f6ae9d217
commit 2d093b6d80
7 changed files with 151 additions and 13 deletions

View File

@@ -29,6 +29,7 @@ SClipScreenRect CGraphics::g_CroppedViewport;
int CGraphics::g_ViewportSamples = 1;
bool CGraphics::g_IsGXModelMatrixIdentity = true;
SViewport g_Viewport = {0, 0, 640, 480, 640 / 2.f, 480 / 2.f};
u32 CGraphics::g_FrameCounter = 0;
void CGraphics::DisableAllLights()
{
@@ -117,6 +118,8 @@ void CGraphics::EndScene()
/* Flush text instance buffers just before GPU command list submission */
CTextSupportShader::UpdateBuffers();
++g_FrameCounter;
}
void CGraphics::SetAlphaCompare(ERglAlphaFunc comp0, u8 ref0, ERglAlphaOp op, ERglAlphaFunc comp1, u8 ref1)