Fix vertex color for object_pass2

This commit is contained in:
Vincent Lejeune 2014-07-08 01:35:04 +02:00
parent 7bf6d4db8b
commit d961a9a8bc

View File

@ -8,7 +8,8 @@ vec3 getLightFactor(float specMapValue);
void main(void)
{
vec4 col = texture(Albedo, uv) * color;
vec4 col = texture(Albedo, uv);
col.xyz *= pow(color.xyz, vec3(2.2));
vec3 LightFactor = getLightFactor(1.);
FragColor = vec4(col.xyz * LightFactor, 1.);
}