Ajout du GUI
This commit is contained in:
4
kivy/data/glsl/default.fs
Normal file
4
kivy/data/glsl/default.fs
Normal file
@@ -0,0 +1,4 @@
|
||||
$HEADER$
|
||||
void main (void){
|
||||
gl_FragColor = frag_color * texture2D(texture0, tex_coord0);
|
||||
}
|
||||
BIN
kivy/data/glsl/default.png
Normal file
BIN
kivy/data/glsl/default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 B |
6
kivy/data/glsl/default.vs
Normal file
6
kivy/data/glsl/default.vs
Normal 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);
|
||||
}
|
||||
12
kivy/data/glsl/header.fs
Normal file
12
kivy/data/glsl/header.fs
Normal file
@@ -0,0 +1,12 @@
|
||||
#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;
|
||||
|
||||
uniform mat4 frag_modelview_mat;
|
||||
17
kivy/data/glsl/header.vs
Normal file
17
kivy/data/glsl/header.vs
Normal 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;
|
||||
Reference in New Issue
Block a user