mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Moved vismono effect to the gpu
This commit is contained in:
parent
eecad3dc15
commit
0ea9612b7e
8 changed files with 21 additions and 11 deletions
|
@ -1,3 +1,5 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "global.h"
|
||||
#include "vt.h"
|
||||
|
||||
|
@ -1119,6 +1121,7 @@ void Gameplay_Draw(GlobalContext* globalCtx) {
|
|||
|
||||
gfxP = Graph_GfxPlusOne(sp1CC);
|
||||
gSPDisplayList(OVERLAY_DISP++, gfxP);
|
||||
gsSPGrayscale(gfxP++, false);
|
||||
|
||||
if ((globalCtx->transitionMode == 3) || (globalCtx->transitionMode == 11) ||
|
||||
(globalCtx->transitionCtx.transitionType >= 56)) {
|
||||
|
@ -1136,8 +1139,8 @@ void Gameplay_Draw(GlobalContext* globalCtx) {
|
|||
TransitionFade_Draw(&globalCtx->transitionFade, &gfxP);
|
||||
|
||||
if (D_801614B0.a > 0) {
|
||||
D_80161498.primColor.rgba = D_801614B0.rgba;
|
||||
VisMono_Draw(&D_80161498, &gfxP);
|
||||
gsDPSetGrayscaleColor(gfxP++, D_801614B0.r, D_801614B0.g, D_801614B0.b, D_801614B0.a);
|
||||
gsSPGrayscale(gfxP++, true);
|
||||
}
|
||||
|
||||
gSPEndDisplayList(gfxP++);
|
||||
|
@ -1171,7 +1174,7 @@ void Gameplay_Draw(GlobalContext* globalCtx) {
|
|||
|
||||
//goto Gameplay_Draw_DrawOverlayElements;
|
||||
}
|
||||
//else
|
||||
//else
|
||||
{
|
||||
s32 sp80;
|
||||
|
||||
|
@ -1472,7 +1475,7 @@ void Gameplay_InitEnvironment(GlobalContext* globalCtx, s16 skyboxId) {
|
|||
Environment_Init(globalCtx, &globalCtx->envCtx, 0);
|
||||
}
|
||||
|
||||
void Gameplay_InitScene(GlobalContext* globalCtx, s32 spawn)
|
||||
void Gameplay_InitScene(GlobalContext* globalCtx, s32 spawn)
|
||||
{
|
||||
globalCtx->curSpawn = spawn;
|
||||
globalCtx->linkActorEntry = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue