mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 00:26:07 +09:00
more shader things that needs multiplatform investigation
This commit is contained in:
17
src/shaders/gl32spritebatch.frag
Normal file
17
src/shaders/gl32spritebatch.frag
Normal file
@@ -0,0 +1,17 @@
|
||||
#version 150
|
||||
|
||||
#ifdef GL_ES
|
||||
#define LOWP lowp
|
||||
precision mediump float;
|
||||
#else
|
||||
#define LOWP
|
||||
#endif
|
||||
|
||||
in LOWP vec4 v_color;
|
||||
in vec2 v_texCoords;
|
||||
uniform sampler2D u_texture;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = v_color * texture(u_texture, v_texCoords);
|
||||
}
|
||||
Reference in New Issue
Block a user