Skip to content

Commit 4268517

Browse files
authored
fix texture anim shader on macOS (#2870)
1 parent 0ee20a2 commit 4268517

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

game/graphics/opengl_renderer/shaders/tex_anim.frag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#version 430 core
1+
#version 410 core
22

33
out vec4 color;
44

@@ -10,12 +10,12 @@ uniform float alpha_multiply;
1010

1111
in vec2 uv;
1212

13-
layout (binding = 0) uniform sampler2D tex;
13+
uniform sampler2D tex_T0;
1414

1515
void main() {
1616

1717
if (enable_tex == 1) {
18-
vec4 tex_color = texture(tex, uv);
18+
vec4 tex_color = texture(tex_T0, uv);
1919
vec4 unscambled_tex = vec4(tex_color[channel_scramble[0]],
2020
tex_color[channel_scramble[1]],
2121
tex_color[channel_scramble[2]],

game/graphics/opengl_renderer/shaders/tex_anim.vert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#version 430 core
1+
#version 410 core
22

33
layout (location = 0) in int vertex_index;
44

0 commit comments

Comments
 (0)