shader cleanup; a config key for higher bits per pixel on graphics

This commit is contained in:
minjaesong
2022-03-25 15:49:43 +09:00
parent af542e43a9
commit 327e000a54
17 changed files with 39 additions and 193 deletions

14
src/shaders/default.vert Normal file
View File

@@ -0,0 +1,14 @@
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_texCoord0;
uniform mat4 u_projTrans;
varying vec4 v_color;
varying vec2 v_texCoords;
void main() {
v_color = a_color;
v_texCoords = a_texCoord0;
gl_Position = u_projTrans * a_position;
}