Added support for culling csqc entities according to pvs (primarily to fix skyrooms, but can also help other situations too). Requires r_ignoreentpvs 0 (compat builds still use 1).
Added some explicit IMGFMT_ constants for qc. Apply contrast after gamma, instead of before, should give a slightly more colourful result. Version command now lists supported image formats (separately from extensions). More BIH fixes. Add patchDefWS parsing in .map files, for rgba vertex colours. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5444 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e581d3ffeb
commit
12d3e48785
32 changed files with 645 additions and 341 deletions
|
@ -5559,12 +5559,12 @@ batch_t *GLBE_GetTempBatch(void)
|
|||
|
||||
/*called from shadowmapping code*/
|
||||
#ifdef RTLIGHTS
|
||||
void GLBE_BaseEntTextures(void)
|
||||
void GLBE_BaseEntTextures(qbyte *worldpvs)
|
||||
{
|
||||
batch_t *batches[SHADER_SORT_COUNT];
|
||||
batch_t **ob = shaderstate.mbatches;
|
||||
shaderstate.mbatches = batches;
|
||||
BE_GenModelBatches(batches, shaderstate.curdlight, shaderstate.mode);
|
||||
BE_GenModelBatches(batches, shaderstate.curdlight, shaderstate.mode, worldpvs);
|
||||
GLBE_SubmitMeshes(NULL, SHADER_SORT_PORTAL, SHADER_SORT_SEETHROUGH+1);
|
||||
GLBE_SelectEntity(&r_worldentity);
|
||||
shaderstate.mbatches = ob;
|
||||
|
@ -6231,7 +6231,7 @@ void GLBE_DrawWorld (batch_t **worldbatches)
|
|||
}
|
||||
|
||||
//memset(batches, 0, sizeof(batches));
|
||||
BE_GenModelBatches(batches, shaderstate.curdlight, BEM_STANDARD);
|
||||
BE_GenModelBatches(batches, shaderstate.curdlight, BEM_STANDARD, r_refdef.scenevis);
|
||||
R_GenDlightBatches(batches);
|
||||
shaderstate.curentity = &r_worldentity;
|
||||
// if (cl.paused || cls.state < ca_active)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue