OpenGL_Clock/shaders/SimpleVertexShader.vertexshader

15 lines
268 B
Text
Raw Permalink Normal View History

2018-04-27 15:03:40 +00:00
#version 330 core
// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec4 position;
out float colorF;
void main() {
if (position.z <= 0.0)
colorF = 0;
else
colorF = 1;
gl_Position = position;
}