vrbox/vrbox2 rendering: take two

just disable only the broken code, it does nothing according to Jasper
This commit is contained in:
PJB3005
2026-03-02 21:40:35 +01:00
parent 4343d51b4d
commit 7513c820cf
2 changed files with 8 additions and 12 deletions
+4 -6
View File
@@ -25,12 +25,6 @@ static void texScrollCheck(f32& param_0) {
}
static int daVrbox2_Draw(vrbox2_class* i_this) {
#if TARGET_PC
// This code is broken but happens to work on hardware. Does not work on PC.
// Not decomp's fault!
return 1;
#endif
camera_class* camera_p;
dKankyo_sunlenz_Packet* lenz_p;
J3DModel* kumo_model_p;
@@ -57,6 +51,9 @@ static int daVrbox2_Draw(vrbox2_class* i_this) {
filelist_p = NULL;
dKy_GxFog_set();
#if !TARGET_PC
// Code is broken but does nothing on real hardware.
// these casts look like fake matches, but this ptr is used as both J3DModel and J3DModelData?
sp38 = (J3DModelData*)kumo_model_p;
sp34 = (J3DModelData*)sun_model_p;
@@ -93,6 +90,7 @@ static int daVrbox2_Draw(vrbox2_class* i_this) {
fogInfo_p->mType = 2;
}
#endif
if ((g_env_light.vrbox_kasumi_outer_col.r + g_env_light.vrbox_kasumi_outer_col.g +
g_env_light.vrbox_kasumi_outer_col.b + g_env_light.vrbox_sky_col.r + g_env_light.vrbox_sky_col.g +