oF - PassThroughShader
#version 150
uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;
uniform mat4 textureMatrix;
uniform mat4 modelViewProjectionMatrix;
uniform vec4 globalColor;
in vec4 position;
in vec3 normal;
in vec2 texcoord;
in vec4 color;
out vec4 positionVarying;
out vec3 normalVarying;
out vec2 texCoordVarying;
out vec4 colorVarying;
void main() {
positionVarying = position;
normalVarying = normal;
texCoordVarying = texcoord;
colorVarying = color;
gl_Position = modelViewProjectionMatrix * positionVarying;
}
#version 150
uniform sampler2D tex0;
in vec4 colorVarying;
in vec2 texCoordVarying;
in vec3 normalVarying;
in vec4 positionVarying;
out vec4 flagColor;
void main()
{
vec2 st = texCoordVarying;
flagColor = texture(tex0, st);
}