From 4bc0dc5594ae2744090d27a5cea10a4f8e8b928d Mon Sep 17 00:00:00 2001 From: SmileTheory Date: Tue, 2 Apr 2013 00:17:24 -0700 Subject: Add sunlight/lightmap merging by multiply (r_sunlightMode 1) Merge additive sunlight and map lighting into one GLSL shader (r_sunlightMode 2) Change single lightmap blends to use lightall --- src/renderergl2/tr_local.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/renderergl2/tr_local.h') diff --git a/src/renderergl2/tr_local.h b/src/renderergl2/tr_local.h index c550ca18..96f657e4 100644 --- a/src/renderergl2/tr_local.h +++ b/src/renderergl2/tr_local.h @@ -791,6 +791,11 @@ typedef enum UNIFORM_AUTOEXPOSUREMINMAX, UNIFORM_TONEMINAVGMAXLINEAR, + UNIFORM_PRIMARYLIGHTORIGIN, + UNIFORM_PRIMARYLIGHTCOLOR, + UNIFORM_PRIMARYLIGHTAMBIENT, + UNIFORM_PRIMARYLIGHTRADIUS, + UNIFORM_COUNT } uniform_t; @@ -1972,6 +1977,7 @@ extern cvar_t *r_forceSun; extern cvar_t *r_forceSunMapLightScale; extern cvar_t *r_forceSunLightScale; extern cvar_t *r_forceSunAmbientScale; +extern cvar_t *r_sunlightMode; extern cvar_t *r_drawSunRays; extern cvar_t *r_sunShadows; extern cvar_t *r_shadowFilter; -- cgit