Added shaders and textures for the main menu.
This commit is contained in:
BIN
assets/data/gfx/textures/tile_aqua.png
Normal file
BIN
assets/data/gfx/textures/tile_aqua.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
12
assets/shaders/bckg/bckg.frag
Normal file
12
assets/shaders/bckg/bckg.frag
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#ifdef GL_ES
|
||||||
|
precision mediump float;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
uniform sampler2D u_texture;
|
||||||
|
uniform vec2 u_scaling;
|
||||||
|
|
||||||
|
varying vec2 v_texCoords;
|
||||||
|
|
||||||
|
void main(){
|
||||||
|
gl_FragColor = texture2D(u_texture, v_texCoords * u_scaling);
|
||||||
|
}
|
11
assets/shaders/bckg/bckg.vert
Normal file
11
assets/shaders/bckg/bckg.vert
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
uniform mat4 u_projTrans;
|
||||||
|
|
||||||
|
attribute vec4 a_position;
|
||||||
|
attribute vec2 a_texCoord0;
|
||||||
|
|
||||||
|
varying vec2 v_texCoords;
|
||||||
|
|
||||||
|
void main(){
|
||||||
|
v_texCoords = a_texCoord0;
|
||||||
|
gl_Position = u_projTrans * a_position;
|
||||||
|
}
|
Reference in New Issue
Block a user