diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/vbsp/disp_vbsp.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/vbsp/disp_vbsp.h')
| -rw-r--r-- | utils/vbsp/disp_vbsp.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/utils/vbsp/disp_vbsp.h b/utils/vbsp/disp_vbsp.h new file mode 100644 index 0000000..5af7760 --- /dev/null +++ b/utils/vbsp/disp_vbsp.h @@ -0,0 +1,46 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef VBSP_DISPINFO_H +#define VBSP_DISPINFO_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "vbsp.h" + + + +class CCoreDispInfo; + + +extern CUtlVector<CCoreDispInfo*> g_CoreDispInfos; + + +// Setup initial entries in g_dispinfo with some of the vertex data from the mapdisps. +void EmitInitialDispInfos(); + +// Resample vertex alpha into lightmap alpha for displacement surfaces so LOD popping artifacts are +// less noticeable on the mid-to-high end. +// +// Also builds neighbor data. +void EmitDispLMAlphaAndNeighbors(); + +// Setup a CCoreDispInfo given a mapdispinfo_t. +// If pFace is non-NULL, then lightmap texture coordinates will be generated. +void DispMapToCoreDispInfo( mapdispinfo_t *pMapDisp, + CCoreDispInfo *pCoreDispInfo, dface_t *pFace, int *pSwappedTexInfos ); + + +void DispGetFaceInfo( mapbrush_t *pBrush ); +bool HasDispInfo( mapbrush_t *pBrush ); + +// Computes the bounds for a disp info +void ComputeDispInfoBounds( int dispinfo, Vector& mins, Vector& maxs ); + +#endif // VBSP_DISPINFO_H |