mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-12 22:56:06 +09:00
more shader things that needs multiplatform investigation
This commit is contained in:
14
src/shaders/gl32shaperenderer.vert
Normal file
14
src/shaders/gl32shaperenderer.vert
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user