Added setAnim to camera. Added global fog set via worldspawn.

This commit is contained in:
Justin Marshall
2026-05-21 06:17:29 -07:00
parent 24e694c240
commit aec93deaa0
26 changed files with 571 additions and 156 deletions
+17 -1
View File
@@ -146,6 +146,21 @@ enum {
// guis
const int MAX_RENDERENTITY_GUI = 3;
typedef enum renderGlobalFogMode_s {
RENDER_GLOBAL_FOG_LINEAR,
RENDER_GLOBAL_FOG_EXP,
RENDER_GLOBAL_FOG_EXP2
} renderGlobalFogMode_t;
typedef struct renderGlobalFog_s {
bool enabled;
renderGlobalFogMode_t mode;
float density;
float start;
float end;
idVec4 color;
} renderGlobalFog_t;
#ifdef QUAKE4
enum {
RD_MISC = 0,
@@ -517,6 +532,7 @@ typedef struct renderView_s {
int time;
float shaderParms[MAX_GLOBAL_SHADER_PARMS]; // can be used in any way by shader
const idMaterial* globalMaterial; // used to override everything draw
renderGlobalFog_t globalFog; // fixed-function global depth fog
#ifdef QUAKE4
// RAVEN BEGIN
@@ -1010,4 +1026,4 @@ ID_INLINE void idRenderWorld::DebugFOV(const idVec4& color, const idVec3& origin
#endif /* QUAKE4 */
#endif /* !__RENDERWORLD_H__ */
#endif /* !__RENDERWORLD_H__ */