Description
switch ( entity->e .reType )
{
case RT_PORTALSURFACE:
break ; // don't draw anything
case RT_SPRITE:
case RT_BEAM:
case RT_ORIENTED_QUAD:
case RT_ELECTRICITY:
case RT_LINE:
case RT_ORIENTEDLINE:
case RT_CYLINDER:
case RT_SABER_GLOW:
case RT_ENT_CHAIN:
break ;
case RT_MODEL:
{
#if 0
if ( entity->e.renderfx & RF_FIRST_PERSON ){}
else if ( entity->e.renderfx & RF_THIRD_PERSON ){}
else
#endif
model_t *model = R_GetModelByHandle ( entity->e .hModel );
if ( !model )
continue ;
qboolean contains_transparent = qfalse;
switch ( model->type )
{
case MOD_BRUSH:
{
process_bsp_entity ( i, refdef, entity, model, &model_instance_idx );
}
break ;
case MOD_MESH:
case MOD_MDXM:
case MOD_BAD:
{
process_regular_entity ( i, refdef, entity, model, qfalse, qfalse, &model_instance_idx, &instance_idx, &num_instanced_prim, MESH_FILTER_OPAQUE, &contains_transparent );
if (model->num_light_polys > 0 )
{
mat4_t transform;
// const bool is_viewer_weapon = (entity->e.renderfx & RF_FIRST_PERSON) != 0;
create_entity_matrix ( transform, entity, qfalse );
instance_model_lights ( model->num_light_polys , model->light_polys , transform );
}
}
break ;
default :
break ;
}
if ( contains_transparent )
transparent_model_indices[transparent_model_num++] = i;
break ;
}
default :
Com_Error (ERR_DROP, " R_AddEntitySurfaces: Bad reType" );
break ;
}
}
Reactions are currently unavailable
You can’t perform that action at this time.
EternalJK/codemp/rd-vulkan/rtx/vk_rtx_shade.cpp
Lines 698 to 762 in a91c0ac