ES2 Shader Fix
This commit is contained in:
parent
21f52cba33
commit
86dadd6644
|
@ -23,7 +23,7 @@ void main(void) {
|
|||
gl_FragColor = v_color;
|
||||
// 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) {
|
||||
texture_color.rgb = u_highlight_mode_color.rgb;
|
||||
texture_color.a *= u_highlight_mode_color.a;
|
||||
|
|
|
@ -108,7 +108,7 @@ int main() {
|
|||
|
||||
// Make Window Context Current
|
||||
glfwMakeContextCurrent(glfw_window);
|
||||
|
||||
|
||||
// Setup Compatibility Layer
|
||||
init_gles_compatibility_layer();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user