mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
12 lines
263 B
GLSL
12 lines
263 B
GLSL
#version 330 core
|
|
uniform mat4 transform;
|
|
|
|
vec3 gridPlane[6] = vec3[](
|
|
vec3(1, 1, 0), vec3(-1, -1, 0), vec3(-1, 1, 0),
|
|
vec3(-1, -1, 0), vec3(1, 1, 0), vec3(1, -1, 0)
|
|
);
|
|
|
|
void main() {
|
|
vec3 p = gridPlane[gl_VertexID].xyz;
|
|
gl_Position = vec4(p, 1.0f);
|
|
} |