Files
voxel-raycaster/shaders/passthrough.vert
MitchellHansen 259f6a8488 Got some geometry up and rotating. It will be pretty trivial to pass in
the camera rotation now and have it follow along.
2016-11-29 00:31:22 -08:00

14 lines
261 B
GLSL

#version 330 core
layout (location = 0) in vec3 position;
uniform mat4 transform;
out vec4 vertexColor;
void main() {
gl_Position = transform * vec4(position, 1.0f);
//gl_Position = vec4(position, 1.0);
vertexColor = vec4(0.5f, 0.0f, 0.0f, 1.0f);
}