Ading menu
This commit is contained in:
1 parent
4e35c0e218
commit
b054872af9
21 files changed
+356
-309
No files matched your search
Executable
+11
@@ -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;
|
||||
}
|
||||
Executable
+14
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user