ES2 Shader Fix
This commit is contained in:
parent
21f52cba33
commit
86dadd6644
@ -23,7 +23,7 @@ void main(void) {
|
|||||||
gl_FragColor = v_color;
|
gl_FragColor = v_color;
|
||||||
// Texture
|
// Texture
|
||||||
if (u_has_texture) {
|
if (u_has_texture) {
|
||||||
vec4 texture_color = texture(u_texture_unit, v_texture_pos.xy);
|
vec4 texture_color = texture2D(u_texture_unit, v_texture_pos.xy);
|
||||||
if (u_highlight_mode) {
|
if (u_highlight_mode) {
|
||||||
texture_color.rgb = u_highlight_mode_color.rgb;
|
texture_color.rgb = u_highlight_mode_color.rgb;
|
||||||
texture_color.a *= u_highlight_mode_color.a;
|
texture_color.a *= u_highlight_mode_color.a;
|
||||||
|
Reference in New Issue
Block a user