use GLShader for MeshLayer
This commit is contained in:
21
vtm/resources/assets/shaders/mesh_layer_2D.glsl
Normal file
21
vtm/resources/assets/shaders/mesh_layer_2D.glsl
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifdef GLES
|
||||
precision mediump float;
|
||||
#endif
|
||||
uniform mat4 u_mvp;
|
||||
uniform float u_height;
|
||||
attribute vec2 a_pos;
|
||||
void
|
||||
main(){
|
||||
gl_Position = u_mvp * vec4(a_pos, u_height, 1.0);
|
||||
}
|
||||
|
||||
$$
|
||||
|
||||
#ifdef GLES
|
||||
precision mediump float;
|
||||
#endif
|
||||
uniform vec4 u_color;
|
||||
void
|
||||
main(){
|
||||
gl_FragColor = u_color;
|
||||
}
|
||||
Reference in New Issue
Block a user