Basic hex gradient grid
This commit is contained in:
parent
682a9b45e6
commit
a0507d3ea6
2 changed files with 20 additions and 16 deletions
|
|
@ -2,8 +2,13 @@
|
|||
layout (location = 0) in vec3 pos;
|
||||
uniform vec4 uniform_color;
|
||||
out vec4 vertex_color;
|
||||
const mat4 to_draw_coordinates_matrix = mat4(
|
||||
1., 0., 0., 0.,
|
||||
0., 1., 0., 0.,
|
||||
0., 0., 1., 0.,
|
||||
-1, 1, 0, 1);
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(pos, 1.0f);
|
||||
gl_Position = to_draw_coordinates_matrix*vec4(pos.x,-pos.y,pos.z, 1.0f);
|
||||
vertex_color = uniform_color;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue