core2/modelRender.c documentation

This commit is contained in:
Banjo Kazooie
2022-12-01 13:27:28 -06:00
parent b74c76a430
commit aa33833595
43 changed files with 385 additions and 356 deletions

View File

@@ -48,7 +48,7 @@ Actor *func_802D6F48(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx){
}
if(other)
func_8033A410(other->alpha_124_19);
modelRender_setAlpha(other->alpha_124_19);
sp40 = ml_map_f(this->unk28, 0.0f , 800.0f, 0.53f, 0.18f)*this->unk1C[1];
modelRender_setDepthMode(MODEL_RENDER_DEPTH_COMPARE);
modelRender_draw(gfx, mtx, this->position, sp44, sp40, NULL, func_80330B1C(marker));

View File

@@ -109,10 +109,10 @@ Actor *func_802C4360(ActorMarker *marker, Gfx **arg1, Mtx **arg2, Vtx **arg3){
func_8033A45C(0xC, 1);
func_8033A45C(0xF, 1);
if(sp1C == D_80365E00){
func_8033A388(0xFF, 0xFF, 0xFF, 0xFF);
modelRender_setEnvColor(0xFF, 0xFF, 0xFF, 0xFF);
}
else{
func_8033A388(0x64, 0x64, 0x64, 0xFF);
modelRender_setEnvColor(0x64, 0x64, 0x64, 0xFF);
}
return func_80325888(marker, arg1, arg2, arg3);
}