Add emit map to object pass 2 shader
This commit is contained in:
parent
d3224712c9
commit
b54ddb9828
@ -24,5 +24,6 @@ void main(void)
|
|||||||
#endif
|
#endif
|
||||||
col.xyz *= pow(color.xyz, vec3(2.2));
|
col.xyz *= pow(color.xyz, vec3(2.2));
|
||||||
float specmap = texture(SpecMap, uv).g;
|
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.);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user