shader updates

This commit is contained in:
minjaesong
2023-02-28 17:18:22 +09:00
parent 8d7a62f796
commit 315b984d3b
34 changed files with 212 additions and 143 deletions

View File

@@ -1,14 +1,17 @@
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_texCoord0;
#version 150
in vec4 a_position;
in vec4 a_color;
in vec2 a_texCoord0;
uniform mat4 u_projTrans;
varying vec4 v_color;
varying vec2 v_texCoords;
out vec4 v_color;
out vec2 v_texCoords;
void main() {
v_color = a_color;
v_color.a = v_color.a * (255.0/254.0);
v_texCoords = a_texCoord0;
gl_Position = u_projTrans * a_position;
}