]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - render.h
implemented a fixed function fallback for water, but it is disabled
[xonotic/darkplaces.git] / render.h
index a1105ac455d4e5a3bb8eedd634ea56d2fcbe0946..28e476ce76d2783418012c4439974076f17866a2 100644 (file)
--- a/render.h
+++ b/render.h
@@ -359,7 +359,15 @@ void R_DrawModelSurfaces(entity_render_t *ent, qboolean skysurfaces, qboolean wr
 void RSurf_PrepareVerticesForBatch(qboolean generatenormals, qboolean generatetangents, int texturenumsurfaces, msurface_t **texturesurfacelist);
 void RSurf_DrawBatch_Simple(int texturenumsurfaces, msurface_t **texturesurfacelist);
 
-int R_SetupSurfaceShader(const vec3_t lightcolorbase, qboolean modellighting, float ambientscale, float diffusescale, float specularscale);
+typedef enum rsurfacepass_e
+{
+       RSURFPASS_BASE,
+       RSURFPASS_BACKGROUND,
+       RSURFPASS_RTLIGHT
+}
+rsurfacepass_t;
+
+int R_SetupSurfaceShader(const vec3_t lightcolorbase, qboolean modellighting, float ambientscale, float diffusescale, float specularscale, rsurfacepass_t pass);
 
 #endif