charcoal/OpenGLEngine/ImageVS.glsl
elipzer b7456401e0 Almost able to render the image
Added image scene to render an image in a scene. There is also now
a testing image that is an uber meme. Currently the problem is
that the spritebatch cannot use the offsetof macro because it is a
templated class. Possible solutions to this are changing it to be
specifyable or implemented per vertex type as the other batches
have been.
2018-10-09 11:42:17 -04:00

14 lines
347 B
GLSL

#version 430
layout(location = 0) in vec3 vertex_position;
layout(location = 1) in vec2 vertex_uv;
layout(location = 2) in mat4 model_to_world;
layout(location = 0) uniform mat4 world_to_projection;
out vec2 fragment_uv;
void main()
{
fragment_uv = vertex_uv;
gl_Position = world_to_projection * model_to_world * vec4(vertex_position, 1.0);
}