26 lines
401 B
GLSL
26 lines
401 B
GLSL
|
#version 330
|
|||
|
|
|||
|
const int MY_ARRAY_SIZE = 200;
|
|||
|
|
|||
|
in vec3 vPosition;
|
|||
|
in vec3 vNormal;
|
|||
|
in vec3 vColor;
|
|||
|
|
|||
|
out vec3 normal;
|
|||
|
out vec3 color;
|
|||
|
out vec3 position;
|
|||
|
|
|||
|
uniform mat4 mtxCam;
|
|||
|
uniform mat4 mtxMdl;
|
|||
|
|
|||
|
void main()
|
|||
|
{
|
|||
|
normal = vNormal;
|
|||
|
color = vColor;
|
|||
|
position = vPosition;
|
|||
|
|
|||
|
gl_Position = mtxCam * mtxMdl * vec4(vPosition.xyz, 1.0);
|
|||
|
|
|||
|
vec3 distance = (vPosition.xyz + vec3(5, 5, 5))/2;
|
|||
|
|
|||
|
}
|