Fixed GLES
This commit is contained in:
parent
cec7c51bc0
commit
6a16f23132
@ -24,7 +24,7 @@ void main(void)
|
||||
#endif
|
||||
vec4 detail = texture(Detail, uv_bis);
|
||||
detail.rgb = detail.a * detail.rgb;
|
||||
color.rgb = detail.rgb + color.rgb * (1 - detail.a);
|
||||
color.rgb = detail.rgb + color.rgb * (1. - detail.a);
|
||||
float specmap = texture(SpecMap, uv).g;
|
||||
FragColor = vec4(getLightFactor(color.xyz, vec3(1.), specmap, 0.), 1.);
|
||||
}
|
||||
|
@ -30,6 +30,6 @@ void main(void)
|
||||
float specmap = texture(SpecMap, uv).g;
|
||||
#endif
|
||||
detail.rgb = detail.a * detail.rgb;
|
||||
color.rgb = detail.rgb + color.rgb * (1 - detail.a);
|
||||
color.rgb = detail.rgb + color.rgb * (1. - detail.a);
|
||||
FragColor = vec4(getLightFactor(color.xyz, vec3(1.), specmap, 0.), 1.);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user