1
0
mirror of synced 2024-12-01 02:27:22 +01:00
Switch-Toolbox/Toolbox/Shader/KCL.vert

27 lines
426 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;
uniform mat4 previewScale;
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;
}