d_bg_s_acch 70%

This commit is contained in:
LagoLunatic
2023-10-09 08:27:32 -04:00
parent 387a9bf4ca
commit 2e70dd019b
13 changed files with 290 additions and 119 deletions
+4 -9
View File
@@ -177,19 +177,14 @@ void daPy_npc_c::drawDamageFog() {
return;
}
cXyz temp;
f32 temp_f1;
f32 temp_f2;
mDoLib_pos2camera(&current.pos, &temp);
temp_f2 = fabs(cM_ssin(g_Counter.mTimer * 0x800));
cXyz camPos;
mDoLib_pos2camera(&current.pos, &camPos);
f32 adjust = fabsf(cM_ssin(g_Counter.mTimer * 0x800));
mTevStr.mFogColor.r = 255;
mTevStr.mFogColor.g = 60;
mTevStr.mFogColor.b = 60;
temp_f1 = -temp.z;
temp_f1 -= 200.0f;
temp_f2 = 200.0f * temp_f2;
mTevStr.mFogStartZ = temp_f1 + temp_f2;
mTevStr.mFogStartZ = (-camPos.z - 200.0f) + 200.0f * adjust;
mTevStr.mFogEndZ = mTevStr.mFogStartZ + 300.0f;
}