1
0

kivy:Improve startup speed

This commit is contained in:
akshayaurora
2016-01-27 20:21:20 +05:30
parent 9fa8c4de27
commit 900346b89e
24 changed files with 813 additions and 61 deletions

View File

@@ -0,0 +1,4 @@
$HEADER$
void main (void){
gl_FragColor = frag_color * texture2D(texture0, tex_coord0);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

View File

@@ -0,0 +1,6 @@
$HEADER$
void main (void) {
frag_color = color * vec4(1.0, 1.0, 1.0, opacity);
tex_coord0 = vTexCoords0;
gl_Position = projection_mat * modelview_mat * vec4(vPosition.xy, 0.0, 1.0);
}

View File

@@ -0,0 +1,10 @@
#ifdef GL_ES
precision highp float;
#endif
/* Outputs from the vertex shader */
varying vec4 frag_color;
varying vec2 tex_coord0;
/* uniform texture samplers */
uniform sampler2D texture0;

View File

@@ -0,0 +1,17 @@
#ifdef GL_ES
precision highp float;
#endif
/* Outputs to the fragment shader */
varying vec4 frag_color;
varying vec2 tex_coord0;
/* vertex attributes */
attribute vec2 vPosition;
attribute vec2 vTexCoords0;
/* uniform variables */
uniform mat4 modelview_mat;
uniform mat4 projection_mat;
uniform vec4 color;
uniform float opacity;