summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/leedsBuilding_vs_gl.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/shaders/leedsBuilding_vs_gl.inc')
-rw-r--r--src/extras/shaders/leedsBuilding_vs_gl.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/extras/shaders/leedsBuilding_vs_gl.inc b/src/extras/shaders/leedsBuilding_vs_gl.inc
index 4e2db0d0..33c5eccc 100644
--- a/src/extras/shaders/leedsBuilding_vs_gl.inc
+++ b/src/extras/shaders/leedsBuilding_vs_gl.inc
@@ -2,6 +2,8 @@ const char *leedsBuilding_vert_src =
"uniform vec4 u_amb;\n"
"uniform vec4 u_emiss;\n"
+"#define surfEmissive (u_surfProps.w)\n"
+
"VSIN(ATTRIB_POS) vec3 in_pos;\n"
"VSOUT vec4 v_color;\n"
@@ -19,7 +21,7 @@ const char *leedsBuilding_vert_src =
" v_color = in_color;\n"
" v_color.rgb *= u_amb.rgb;\n"
-" v_color.rgb += u_emiss.rgb;\n"
+" v_color.rgb += u_emiss.rgb*surfEmissive;\n"
" v_color = clamp(v_color, 0.0, 1.0);\n"
" v_color.a *= u_matColor.a;\n"