Ading menu

This commit is contained in:
vladislav.khorev committed 2018-07-22 16:36:06 +05:00
1 parent 4e35c0e218
commit b054872af9
21 files changed
+356 -309

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
precision highp float;
uniform sampler2D Texture;
varying vec2 texCoord;
varying vec4 color;
void main()
{
vec4 texColor = texture2D(Texture,texCoord).rgba;
gl_FragColor = color * texColor.rgba;
}
+14
View File
@@ -0,0 +1,14 @@
attribute vec3 vPosition;
attribute vec2 vTexCoord;
attribute vec4 vColor;
varying vec2 texCoord;
varying vec4 color;
uniform mat4 ProjectionMatrix;
void main()
{
//480x320
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
texCoord = vTexCoord;
color = vColor;
}