more shader things that needs multiplatform investigation

This commit is contained in:
minjaesong
2023-02-28 16:57:33 +09:00
parent f0b1d7f1bd
commit 8d7a62f796
5 changed files with 61 additions and 112 deletions

View File

@@ -0,0 +1,14 @@
#version 150
in vec4 a_position;
in vec4 a_color;
uniform mat4 u_projModelView;
out vec4 v_col;
void main() {
gl_Position = u_projModelView * a_position;
v_col = a_color;
v_col.a *= 255.0 / 254.0;
gl_PointSize = 1.0;
}