|
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 clumpTriangleCount, clumpTrianglesForLevel, gfv_pos, gfv_texcoord, it_pic, R_BindArray(), R_BindDefaultArray(), R_BindTexture, R_EnableAlphaTest(), R_FindImage(), and refdef.
Referenced by R_RenderFrame().
| void R_GenerateGrass | ( | ) |
Definition at line 228 of file r_grass.cpp.
References clumpCount, clumps, clumpsForLevel, clumpTriangleCount, clumpTrianglesForLevel, Com_Printf(), CrossProduct(), mBspHeader_t::firstface, Clump::firstTriangle, mBspSurface_t::firstTriangle, mBspTexInfo_t::flags, mBspSurface_t::frame, frand(), GRASS_MARK, i, mBspModel_t::indexes, level, LEVEL_LASTVISIBLE, MAX_CLUMPS, cBspPlane_t::normal, mBspHeader_t::numfaces, Clump::numTriangles, mBspSurface_t::numTriangles, PATHFINDING_HEIGHT, mBspSurface_t::plane, R_AddClump(), r_mapTiles, r_numMapTiles, R_OrganizeClumps(), R_PlantGrass(), mBspModel_t::submodels, SURF_FOLIAGE, mBspModel_t::surfaces, mBspSurface_t::texinfo, v, va(), VectorCopy, VectorLength(), VectorMA(), VectorSubtract, and mBspModel_t::verts.
Referenced by R_ModEndLoading().