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.); }