From b54ddb9828269b89234ed854a1823efa2780a5e1 Mon Sep 17 00:00:00 2001 From: samuncle Date: Sun, 21 Dec 2014 09:58:03 +0100 Subject: [PATCH] Add emit map to object pass 2 shader --- data/shaders/object_pass2.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/shaders/object_pass2.frag b/data/shaders/object_pass2.frag index 25e463240..bc0c5b839 100644 --- a/data/shaders/object_pass2.frag +++ b/data/shaders/object_pass2.frag @@ -24,5 +24,6 @@ void main(void) #endif col.xyz *= pow(color.xyz, vec3(2.2)); float specmap = texture(SpecMap, uv).g; - FragColor = vec4(getLightFactor(col.xyz, vec3(1.), specmap, 0.), 1.); + float emitmap = texture(SpecMap, uv).b; + FragColor = vec4(getLightFactor(col.xyz, vec3(1.), specmap, emitmap), 1.); }