diff options
| author | Kiloku <mateus.sateles@protonmail.com> | 2025-02-02 16:44:44 -0300 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-02-02 14:04:48 -0600 |
| commit | 1f79880fd55564d75d0d5225cd5842261abe37de (patch) | |
| tree | 150ee50a78eef3e74bb236829afd52171e07470c /src/engine | |
| parent | 41cc11d0f15f5a0bf75894244b3c07d2e55813af (diff) | |
Allow customizing cockpit glass opacity
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/fox_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/fox_display.c b/src/engine/fox_display.c index 77cff46d..38135a6e 100644 --- a/src/engine/fox_display.c +++ b/src/engine/fox_display.c @@ -699,7 +699,8 @@ void Display_CockpitGlass(void) { Matrix_Scale(gGfxMatrix, D_display_800CA28C, D_display_800CA28C, D_display_800CA28C, MTXF_APPLY); Matrix_SetGfxMtx(&gMasterDisp); RCP_SetupDL_64_2(); - gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, 120); + u16 opacity = CVarGetInteger("gCockpitOpacity", 120); + gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, opacity); gSPClearGeometryMode(gMasterDisp++, G_CULL_BACK); gSPDisplayList(gMasterDisp++, D_arwing_30194E0); gSPSetGeometryMode(gMasterDisp++, G_CULL_BACK); |
