mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 22:44:30 +00:00
Fix a couple of render modes (#1994)
This commit is contained in:
parent
a1c7937dba
commit
17a88746e7
4 changed files with 5 additions and 13 deletions
|
@ -267,7 +267,7 @@ void PreRender_CoverageRgba16ToI8(PreRender* this, Gfx** gfxP, void* img, void*
|
||||||
gDPSetOtherMode(gfx++,
|
gDPSetOtherMode(gfx++,
|
||||||
G_AD_DISABLE | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
G_AD_DISABLE | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
||||||
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
||||||
G_AC_NONE | G_ZS_PRIM | G_RM_PASS | G_RM_OPA_CI2);
|
G_AC_NONE | G_ZS_PRIM | G_RM_OPA_CI | G_RM_OPA_CI2);
|
||||||
|
|
||||||
// Set the combiner to draw the texture as-is, discarding alpha channel
|
// Set the combiner to draw the texture as-is, discarding alpha channel
|
||||||
gDPSetCombineLERP(gfx++, 0, 0, 0, TEXEL0, 0, 0, 0, 0, 0, 0, 0, TEXEL0, 0, 0, 0, 0);
|
gDPSetCombineLERP(gfx++, 0, 0, 0, TEXEL0, 0, 0, 0, 0, 0, 0, 0, TEXEL0, 0, 0, 0, 0);
|
||||||
|
|
|
@ -79,7 +79,7 @@ Gfx* VisMono_DesaturateDList(VisMono* this, Gfx* gfx) {
|
||||||
gDPSetOtherMode(gfx++,
|
gDPSetOtherMode(gfx++,
|
||||||
G_AD_DISABLE | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_IA16 | G_TL_TILE |
|
G_AD_DISABLE | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_IA16 | G_TL_TILE |
|
||||||
G_TD_CLAMP | G_TP_NONE | G_CYC_2CYCLE | G_PM_1PRIMITIVE,
|
G_TD_CLAMP | G_TP_NONE | G_CYC_2CYCLE | G_PM_1PRIMITIVE,
|
||||||
G_AC_NONE | G_ZS_PRIM | GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1) | G_RM_CLD_SURF2);
|
G_AC_NONE | G_ZS_PRIM | G_RM_PASS | G_RM_CLD_SURF2);
|
||||||
// First color cycle sums texel 1 alpha and texel 0 color
|
// First color cycle sums texel 1 alpha and texel 0 color
|
||||||
// By using IA16 palettes, this means summing A (from the IA16 color texel 1 maps to)
|
// By using IA16 palettes, this means summing A (from the IA16 color texel 1 maps to)
|
||||||
// with I (from the IA16 color texel 0 maps to)
|
// with I (from the IA16 color texel 0 maps to)
|
||||||
|
|
|
@ -3294,10 +3294,7 @@ void func_80941BC0(BossTw* this, PlayState* play) {
|
||||||
(-this->work[CS_TIMER_2] * 2) & 0x3F, 0, 0x10, 0x10));
|
(-this->work[CS_TIMER_2] * 2) & 0x3F, 0, 0x10, 0x10));
|
||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 195, 225, 235, (s16)this->workf[UNK_F9]);
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 195, 225, 235, (s16)this->workf[UNK_F9]);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 255, 255, 255, 128);
|
gDPSetEnvColor(POLY_XLU_DISP++, 255, 255, 255, 128);
|
||||||
gDPSetRenderMode(POLY_XLU_DISP++,
|
gDPSetRenderMode(POLY_XLU_DISP++, G_RM_FOG_SHADE_A, G_RM_ZB_OVL_SURF2);
|
||||||
Z_CMP | IM_RD | CVG_DST_SAVE | ZMODE_DEC | FORCE_BL |
|
|
||||||
GBL_c1(G_BL_CLR_FOG, G_BL_A_SHADE, G_BL_CLR_IN, G_BL_1MA),
|
|
||||||
G_RM_ZB_OVL_SURF2);
|
|
||||||
gSPSetGeometryMode(POLY_XLU_DISP++, G_CULL_BACK | G_FOG);
|
gSPSetGeometryMode(POLY_XLU_DISP++, G_CULL_BACK | G_FOG);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, SEGMENTED_TO_VIRTUAL(gTwinrovaEffectHaloDL));
|
gSPDisplayList(POLY_XLU_DISP++, SEGMENTED_TO_VIRTUAL(gTwinrovaEffectHaloDL));
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
|
|
@ -588,9 +588,7 @@ Gfx* func_809CA4A0(GraphicsContext* gfxCtx) {
|
||||||
ASSERT(dListHead != NULL, "gfxp != NULL", "../z_en_box.c", 1546);
|
ASSERT(dListHead != NULL, "gfxp != NULL", "../z_en_box.c", 1546);
|
||||||
|
|
||||||
dList = dListHead;
|
dList = dListHead;
|
||||||
gDPSetRenderMode(dListHead++,
|
gDPSetRenderMode(dListHead++, G_RM_FOG_SHADE_A,
|
||||||
AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
|
|
||||||
GBL_c1(G_BL_CLR_FOG, G_BL_A_SHADE, G_BL_CLR_IN, G_BL_1MA),
|
|
||||||
AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
|
AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
|
||||||
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
|
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
|
||||||
gSPEndDisplayList(dListHead++);
|
gSPEndDisplayList(dListHead++);
|
||||||
|
@ -606,10 +604,7 @@ Gfx* func_809CA518(GraphicsContext* gfxCtx) {
|
||||||
ASSERT(dListHead != NULL, "gfxp != NULL", "../z_en_box.c", 1564);
|
ASSERT(dListHead != NULL, "gfxp != NULL", "../z_en_box.c", 1564);
|
||||||
|
|
||||||
dList = dListHead;
|
dList = dListHead;
|
||||||
gDPSetRenderMode(dListHead++,
|
gDPSetRenderMode(dListHead++, G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2);
|
||||||
AA_EN | Z_CMP | Z_UPD | IM_RD | CVG_DST_CLAMP | ZMODE_OPA | ALPHA_CVG_SEL |
|
|
||||||
GBL_c1(G_BL_CLR_FOG, G_BL_A_SHADE, G_BL_CLR_IN, G_BL_1MA),
|
|
||||||
G_RM_AA_ZB_OPA_SURF2);
|
|
||||||
gSPEndDisplayList(dListHead++);
|
gSPEndDisplayList(dListHead++);
|
||||||
|
|
||||||
return dList;
|
return dList;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue