#version 150 in vec2 position; in vec2 texCoord; in vec4 color; in float textureIndex; uniform mat4 projectionTransform; uniform mat4 viewTransform; out vec4 vertColor; out vec2 vertTexCoord; out float vertTextureIndex; void main() { vertTexCoord = texCoord; vertColor = color; vertTextureIndex = textureIndex; gl_Position = projectionTransform * viewTransform * vec4(position, 0.0, 1.0); }