pathfinder/resources/shaders/gl4/tile_copy.vs.glsl

31 lines
336 B
GLSL

#version {{version}}
// Automatically generated from files in pathfinder/shaders/. Do not edit!
precision highp float;
uniform mat4 uTransform;
uniform vec2 uTileSize;
in ivec2 aTilePosition;
void main(){
vec2 position = vec2(aTilePosition)* uTileSize;
gl_Position = uTransform * vec4(position, 0.0, 1.0);
}