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