diff --git a/data/shaders/instanced_objectref_pass2.frag b/data/shaders/instanced_objectref_pass2.frag index 4d3aae883..3363f674f 100644 --- a/data/shaders/instanced_objectref_pass2.frag +++ b/data/shaders/instanced_objectref_pass2.frag @@ -29,6 +29,7 @@ void main(void) #else vec4 col = texture(Albedo, uv); float specmap = texture(SpecMap, uv).g; + float emitmap = texture(SpecMap, uv).b; float mask = texture(colorization_mask, uv).a; #endif col.xyz *= pow(color.xyz, vec3(2.2)); @@ -43,5 +44,5 @@ void main(void) col = vec4(new_color.r, new_color.g, new_color.b, col.a); } - FragColor = vec4(getLightFactor(col.xyz, vec3(1.), specmap, 0.), 1.); + FragColor = vec4(getLightFactor(col.xyz, vec3(1.), specmap, emitmap), 1.); }