#version 110 // example vert shader, to test basic data types. uniform float floatU; uniform int intU; uniform vec3 vec3U; uniform mat4 mat4U; attribute vec3 vec3A; attribute vec2 vec2A; varying float z; void main(void) { vec3 junk = vec3U * floatU; junk.x += float(intU); vec4 junk4 = vec4(junk, 1); junk4 *= mat4U; junk4.xyz += vec3A.zyx; junk4.xy += vec2A; gl_Position = junk4; z = junk4.z; }