UFO: Alien Invasion
|
Pseudoinstanced grass generation and rendering. More...
Go to the source code of this file.
Functions | |
void | R_ClearGrass () |
void | R_GenerateGrass () |
void | R_DrawGrass () |
Pseudoinstanced grass generation and rendering.
Definition in file r_grass.h.
void R_ClearGrass | ( | ) |
Definition at line 56 of file r_grass.cpp.
References clumpCount, clumpsForLevel, clumpTriangleCount, clumpTrianglesForLevel, and OBJZERO.
Referenced by R_ModBeginLoading().
void R_DrawGrass | ( | ) |
Definition at line 399 of file r_grass.cpp.
References rendererData_t::batchCount, clumpTriangleCount, clumpTrianglesForLevel, gfv_pos, gfv_texcoord, it_pic, R_BindArray(), R_BindDefaultArray(), R_BindTexture, R_EnableAlphaTest(), R_FindImage(), refdef, and rendererData_t::worldlevel.
Referenced by R_RenderFrame().
void R_GenerateGrass | ( | ) |
Definition at line 228 of file r_grass.cpp.
References model_s::bsp, clumpCount, clumpsForLevel, clumpTriangleCount, clumpTrianglesForLevel, Com_Printf(), CrossProduct(), f, mBspHeader_s::firstface, Clump::firstTriangle, mBspSurface_s::firstTriangle, mBspTexInfo_s::flags, mBspSurface_s::frame, frand(), GRASS_MARK, i, mBspModel_s::indexes, level, LEVEL_LASTVISIBLE, MAX_CLUMPS, cBspPlane_s::normal, mBspHeader_s::numfaces, Clump::numTriangles, mBspSurface_s::numTriangles, PATHFINDING_HEIGHT, mBspSurface_s::plane, R_AddClump(), r_mapTiles, r_numMapTiles, R_OrganizeClumps(), R_PlantGrass(), mBspModel_s::submodels, SURF_FOLIAGE, mBspModel_s::surfaces, mBspSurface_s::texinfo, v, va(), VectorCopy, VectorLength(), VectorMA(), VectorSubtract, and mBspModel_s::verts.
Referenced by R_ModEndLoading().