clean main menu start while starting on mesh creation
This commit is contained in:
10
android/assets/shaders/mesh.fsh
Executable file
10
android/assets/shaders/mesh.fsh
Executable file
@@ -0,0 +1,10 @@
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
//input from vertex shader
|
||||
varying vec4 vColor;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = vColor;
|
||||
}
|
13
android/assets/shaders/mesh.vsh
Executable file
13
android/assets/shaders/mesh.vsh
Executable file
@@ -0,0 +1,13 @@
|
||||
attribute vec2 a_position;
|
||||
attribute vec4 a_color;
|
||||
|
||||
//our camera matrix
|
||||
uniform mat4 u_projTrans;
|
||||
|
||||
//send the color out to the fragment shader
|
||||
varying vec4 vColor;
|
||||
|
||||
void main() {
|
||||
vColor = a_color;
|
||||
gl_Position = u_projTrans * vec4(a_position.xy, 0.0, 1.0);
|
||||
}
|
Reference in New Issue
Block a user