modelRender.c documentation

This commit is contained in:
Banjo Kazooie
2022-12-01 00:21:11 -06:00
parent 0ffe8f35a2
commit b74c76a430
69 changed files with 296 additions and 326 deletions

View File

@@ -77,8 +77,8 @@ Actor *chMotzhand_draw(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx){
sp3C[0] = sp3C[1] = sp3C[2] = 0.0f;
sp3C[1] = 180.0f;
set_model_render_mode(1);
func_803391A4(gfx, mtx, this->position, sp3C, 1.0f, NULL, func_80330B1C(marker));
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
modelRender_draw(gfx, mtx, this->position, sp3C, 1.0f, NULL, func_80330B1C(marker));
this->marker->unk14_21 = func_8033A170();
return this;
}

View File

@@ -36,8 +36,8 @@ void func_8038AC40(Struct_MMM_47D0_0 *arg0, struct struct_68_s *arg1, f32 positi
} else if (arg0->unk4 == 2) {
func_8033A410((s32)((1 - ((f64)arg0->unk8 * 1)) * 255.0), arg0);
}
set_model_render_mode(1);
func_803391A4(gfx, mtx, position, rotation, scale, NULL, model_bin);
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
modelRender_draw(gfx, mtx, position, rotation, scale, NULL, model_bin);
}
}

View File

@@ -41,8 +41,8 @@ void func_8038B3F0(Struct5Fs *arg0, struct struct_68_s *arg1, f32 position[3], f
sp30[3] = 0xFF;
func_8033A334(sp30, __mmm_5000_blue);
}
set_model_render_mode(1);
func_803391A4(gfx, mtx, position, rotation, scale, NULL, model_bin);
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
modelRender_draw(gfx, mtx, position, rotation, scale, NULL, model_bin);
}
void func_8038B590(Struct5Fs *arg0, Struct68s *arg1){