// view origin
//
extern cvar_t r_drawentities;
+extern cvar_t r_draw2d;
+extern qboolean r_draw2d_force;
extern cvar_t r_drawviewmodel;
extern cvar_t r_drawworld;
extern cvar_t r_speeds;
extern unsigned int r_numqueries;
extern unsigned int r_maxqueries;
-void R_TimeReport(char *name);
+void R_TimeReport(const char *name);
// r_stain
void R_Stain(const vec3_t origin, float radius, int cr1, int cg1, int cb1, int ca1, int cr2, int cg2, int cb2, int ca2);
// this transforms only the Z to S, and T is always 0.5
matrix4x4_t entitytoattenuationz;
+ // user wavefunc parameters (from csqc)
+ float userwavefunc_param[Q3WAVEFUNC_USER_COUNT];
+
// pointer to an entity_render_t used only by R_GetCurrentTexture and
// RSurf_ActiveWorldEntity/RSurf_ActiveModelEntity as a unique id within
// each frame (see r_frame also)
RSURFPASS_BASE,
RSURFPASS_BACKGROUND,
RSURFPASS_RTLIGHT,
- RSURFPASS_DEFERREDGEOMETRY,
+ RSURFPASS_DEFERREDGEOMETRY
}
rsurfacepass_t;
void R_SetupShader_Generic(rtexture_t *first, rtexture_t *second, int texturemode, int rgbscale);
void R_SetupShader_DepthOrShadow(void);
void R_SetupShader_ShowDepth(void);
-void R_SetupShader_Surface(const vec3_t lightcolorbase, qboolean modellighting, float ambientscale, float diffusescale, float specularscale, rsurfacepass_t rsurfacepass, int texturenumsurfaces, const msurface_t **texturesurfacelist);
+void R_SetupShader_Surface(const vec3_t lightcolorbase, qboolean modellighting, float ambientscale, float diffusescale, float specularscale, rsurfacepass_t rsurfacepass, int texturenumsurfaces, const msurface_t **texturesurfacelist, void *waterplane);
void R_SetupShader_DeferredLight(const rtlight_t *rtlight);
typedef struct r_waterstate_waterplane_s