fix texture anim shader on macOS (#2870)

This commit is contained in:
water111 2023-07-30 19:59:44 -04:00 committed by GitHub
parent 0ee20a255e
commit 426851720f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#version 430 core
#version 410 core
out vec4 color;
@ -10,12 +10,12 @@ uniform float alpha_multiply;
in vec2 uv;
layout (binding = 0) uniform sampler2D tex;
uniform sampler2D tex_T0;
void main() {
if (enable_tex == 1) {
vec4 tex_color = texture(tex, uv);
vec4 tex_color = texture(tex_T0, uv);
vec4 unscambled_tex = vec4(tex_color[channel_scramble[0]],
tex_color[channel_scramble[1]],
tex_color[channel_scramble[2]],

View file

@ -1,4 +1,4 @@
#version 430 core
#version 410 core
layout (location = 0) in int vertex_index;