CElementGen: Render PMAB models with ForcedAdditiveNoZWrite

Fixes rendering for missile impacts, charge beam & more
This commit is contained in:
Luke Street 2020-09-23 03:24:14 -04:00
parent 9ca0d2afb0
commit 3d01549af3
1 changed files with 3 additions and 1 deletions

View File

@ -1038,7 +1038,9 @@ void CElementGen::RenderModels(const CActorLights* actorLights) {
if (g_subtractBlend) {
model->Draw({5, 0, 1, zeus::CColor(1.f, 0.5f)});
} else if (desc->x44_31_x31_25_PMAB) {
model->Draw({7, 0, 1, col});
CModelFlags flags{7, 0, 1, col};
flags.m_extendedShader = EExtendedShader::ForcedAdditiveNoZWrite;
model->Draw(flags);
} else if (1.f == col.a()) {
model->Draw({0, 0, 3, zeus::skWhite});
} else {