summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorKiritoDev <36680385+KiritoDv@users.noreply.github.com>2022-04-25 17:04:15 -0500
committerNicholas Estelami <NEstelami@users.noreply.github.com>2022-04-25 19:14:46 -0400
commit0ea9612b7e1ea82b771b0d85a42a86f9bd530b4a (patch)
treec91b6c690d0bbb17509991d67d8df1663038de5b /soh/src/code
parenteecad3dc1513f0dd62e8022c86ae1f07c1598a76 (diff)
Moved vismono effect to the gpu
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_play.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c
index 193b14164..f62e719ba 100644
--- a/soh/src/code/z_play.c
+++ b/soh/src/code/z_play.c
@@ -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;