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 f5e37de746
commit 7b91d48954
2 changed files with 8 additions and 12 deletions
+4 -6
View File
@@ -12,12 +12,6 @@
static int daVrbox_color_set(vrbox_class* i_this);
static int daVrbox_Draw(vrbox_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
J3DModel* soraModel_p = i_this->mpSoraModel;
f32 fvar = 0.0f;
dStage_FileList_dt_c* filelist_p = NULL;
@@ -49,6 +43,9 @@ static int daVrbox_Draw(vrbox_class* i_this) {
soraModel_p->setBaseTRMtx(mDoMtx_stack_c::get());
dKy_GxFog_set();
#if !TARGET_PC
// This code is broken but happens to not do anything on the real game.
// these casts look like fake matches, but this ptr is used as both J3DModel and J3DModelData?
for (int i = ((J3DModelData*)soraModel_p)->getMaterialNum() - 1; i >= 0; i--) {
J3DMaterial* material_p = ((J3DModelData*)soraModel_p)->getMaterialNodePointer(i);
@@ -60,6 +57,7 @@ static int daVrbox_Draw(vrbox_class* i_this) {
fogInfo_p->mType = 2;
}
#endif
dComIfGd_setListSky();
mDoExt_modelUpdateDL(soraModel_p);
+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 +