Added libm into build system '-lm'. Edited shaders. Added dynamic resize window. Added another triangle and test depth with intersection triangles.
12 lines
173 B
GLSL
12 lines
173 B
GLSL
#version 330
|
|
|
|
layout(location = 0) in vec4 pos;
|
|
layout(location = 1) in vec4 colour;
|
|
|
|
smooth out vec4 _colour;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = pos;
|
|
_colour = colour;
|
|
}
|