Newer
Older
pixi.js / packages / core / src / shader / defaultProgram.vert
@Matt Karl Matt Karl on 31 Oct 2017 262 bytes Next Restructure for v5 (#4387)
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;

uniform mat3 projectionMatrix;

varying vec2 vTextureCoord;

void main(void){
   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
   vTextureCoord = aTextureCoord;
}