UFO: Alien Invasion
|
Go to the source code of this file.
Functions | |
void | R_CreateSurfaceFlare (mBspSurface_t *surf) |
void | R_DrawFlareSurfaces (const mBspSurfaces_t *surfs, glElementIndex_t *indexPtr) |
Flares are batched by their texture. Usually, this means one draw operation for all flares in view. Flare visibility is calculated every few millis, and flare alpha is ramped up or down depending on the results of the visibility trace. Flares are also faded according to the angle of their surface to the view origin. More... | |
void R_CreateSurfaceFlare | ( | mBspSurface_t * | surf | ) |
Definition at line 24 of file r_flare.cpp.
References mBspSurface_s::center, mBspFlare_s::color, materialStage_s::color, materialStage_s::flags, material_s::flags, mBspSurface_s::flare, AABB::getDiagonal(), mBspTexInfo_s::image, mBspFlare_s::image, materialStage_s::image, mBspSurface_s::lightColor, m, image_s::material, mBspSurface_s::mbsBox, Mem_PoolAllocType, materialStage_s::next, mBspSurface_s::normal, mBspFlare_s::origin, mBspFlare_s::radius, scale_s::s, materialStage_s::scale, STAGE_COLOR, STAGE_FLARE, STAGE_SCALE_S, STAGE_SCALE_T, material_s::stages, scale_s::t, mBspSurface_s::texinfo, VectorCopy, VectorLength(), VectorMA(), and vid_modelPool.
Referenced by R_CreateMaterialData_().
void R_DrawFlareSurfaces | ( | const mBspSurfaces_t * | surfs, |
glElementIndex_t * | indexPtr | ||
) |
Flares are batched by their texture. Usually, this means one draw operation for all flares in view. Flare visibility is calculated every few millis, and flare alpha is ramped up or down depending on the results of the visibility trace. Flares are also faded according to the angle of their surface to the view origin.
Definition at line 69 of file r_flare.cpp.
References mBspFlare_s::alpha, entity_s::alpha, rendererData_t::batchCount, rstate_s::blend_enabled, mBspFlare_s::color, rstate_s::color_array, mBspSurfaces_s::count, default_texcoords, DotProduct, f, mBspSurface_s::flare, trace_s::fraction, mBspSurface_s::frame, rlocals_s::frame, i, mBspFlare_s::image, cvar_s::integer, m, MASK_SOLID, mBspSurface_s::normal, mBspFlare_s::origin, R_BindTexture, R_BlendFunc(), R_Color(), R_DrawArrays(), R_EnableBlend(), R_EnableColorArray(), r_flares, r_flaretextures, r_locals, R_ResetArrayState(), r_state, R_Trace(), mBspFlare_s::radius, refdef, rlocals_s::right, scale, mBspSurfaces_s::surfaces, image_s::texnum, texunit_diffuse, mBspFlare_s::time, rendererData_t::time, rendererData_t::trace, rlocals_s::up, cvar_s::value, VectorAdd, VectorNormalize(), VectorScale, VectorSubtract, rstate_s::vertex_array_3d, and rendererData_t::viewOrigin.
Referenced by R_RenderFlareBspRRefs().