13 lines
288 B
GLSL
13 lines
288 B
GLSL
#version 330 core
|
|
layout (location = 0) in vec3 aPos;
|
|
layout (location = 1) in vec3 aColor;
|
|
|
|
out vec3 vertexPos;
|
|
out vec3 vertexColor;
|
|
uniform float offset;
|
|
|
|
void main() {
|
|
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
|
vertexPos = vec3(abs(aPos.x), abs(aPos.y), abs(aPos.z));
|
|
}
|