added a easier material name for portal skies

This commit is contained in:
«BielBdeLuna» 2024-06-20 18:19:36 +02:00 committed by Daniel Gibson
parent d3b2794c24
commit b34c625798

View file

@ -655,7 +655,7 @@ void idRenderWorldLocal::AddWorldModelEntities() {
for ( int j = 0; j < hModel->NumSurfaces(); j++ ) {
const modelSurface_t *surf = hModel->Surface( j );
if ( surf->shader->GetName() == idStr( "textures/smf/portal_sky" ) ) {
if ( ( surf->shader->GetName() == idStr( "textures/smf/portal_sky" ) ) || ( surf->shader->GetName() == idStr( "textures/editor/portal_sky" ) ) ) {
def->needsPortalSky = true;
}
}