Add emit map to object pass 2 shader

This commit is contained in:
samuncle 2014-12-21 09:58:03 +01:00
parent d3224712c9
commit b54ddb9828

View File

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