core2/modelRender.c documentation
This commit is contained in:
@@ -69,10 +69,10 @@ Actor *chMotzhand_draw(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx){
|
||||
func_8033A238(func_803356A0(this->unk148));
|
||||
|
||||
if(this->state == 4){
|
||||
func_8033A410((s32) (local->alpha * 255.0f));
|
||||
modelRender_setAlpha((s32) (local->alpha * 255.0f));
|
||||
}
|
||||
else{
|
||||
func_8033A410((s32) 255);
|
||||
modelRender_setAlpha((s32) 255);
|
||||
}
|
||||
|
||||
sp3C[0] = sp3C[1] = sp3C[2] = 0.0f;
|
||||
|
@@ -84,10 +84,10 @@ Actor *chnapper_draw(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx){
|
||||
}
|
||||
|
||||
if(this->state == 1){ //set model alpha
|
||||
func_8033A410(0x80);
|
||||
modelRender_setAlpha(0x80);
|
||||
}
|
||||
else{
|
||||
func_8033A410(0xdc);
|
||||
modelRender_setAlpha(0xdc);
|
||||
}
|
||||
|
||||
return func_80325888(marker, gfx, mtx, vtx);
|
||||
|
@@ -32,9 +32,9 @@ void func_8038AC40(Struct_MMM_47D0_0 *arg0, struct struct_68_s *arg1, f32 positi
|
||||
|
||||
if (arg0->unk4 != 3) {
|
||||
if ((arg0->unk4 == 0) || (arg0->unk4 == 1)) {
|
||||
func_8033A410(0xFF, arg0);
|
||||
modelRender_setAlpha(0xFF);
|
||||
} else if (arg0->unk4 == 2) {
|
||||
func_8033A410((s32)((1 - ((f64)arg0->unk8 * 1)) * 255.0), arg0);
|
||||
modelRender_setAlpha((s32)((1 - ((f64)arg0->unk8 * 1)) * 255.0));
|
||||
}
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
|
||||
modelRender_draw(gfx, mtx, position, rotation, scale, NULL, model_bin);
|
||||
|
@@ -25,21 +25,21 @@ void func_8038B3F0(Struct5Fs *arg0, struct struct_68_s *arg1, f32 position[3], f
|
||||
sp58[1] = temp_f4;
|
||||
sp58[2] = temp_f4;
|
||||
sp58[3] = 0xFF;
|
||||
func_8033A334(sp58, __mmm_5000_red);
|
||||
modelRender_setPrimAndEnvColors(sp58, __mmm_5000_red);
|
||||
} else if (arg0->unk4 > 0.0f) {
|
||||
temp_f6 = (s32) (((1.0f - arg0->unk4) * 223.0f) + 32.0f);
|
||||
sp44[0] = temp_f6;
|
||||
sp44[1] = temp_f6;
|
||||
sp44[2] = temp_f6;
|
||||
sp44[3] = 0xFF;
|
||||
func_8033A334(sp44, __mmm_5000_green);
|
||||
modelRender_setPrimAndEnvColors(sp44, __mmm_5000_green);
|
||||
} else if (arg0->unk0 > 0.0f) {
|
||||
temp_f8 = (s32) (((1.0f - arg0->unk0) * 223.0f) + 32.0f);
|
||||
sp30[0] = temp_f8;
|
||||
sp30[1] = temp_f8;
|
||||
sp30[2] = temp_f8;
|
||||
sp30[3] = 0xFF;
|
||||
func_8033A334(sp30, __mmm_5000_blue);
|
||||
modelRender_setPrimAndEnvColors(sp30, __mmm_5000_blue);
|
||||
}
|
||||
modelRender_setDepthMode(MODEL_RENDER_DEPTH_FULL);
|
||||
modelRender_draw(gfx, mtx, position, rotation, scale, NULL, model_bin);
|
||||
|
Reference in New Issue
Block a user