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