phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
24 lines (23 loc) • 756 B
JavaScript
module.exports = [
'#pragma phaserTemplate(shaderName)',
'#pragma phaserTemplate(extensions)',
'#pragma phaserTemplate(features)',
'#ifdef GL_FRAGMENT_PRECISION_HIGH',
'precision highp float;',
'#else',
'precision mediump float;',
'#endif',
'#pragma phaserTemplate(vertexDefine)',
'uniform mat4 uProjectionMatrix;',
'attribute vec2 inPosition;',
'attribute vec2 inTexCoord;',
'varying vec2 outTexCoord;',
'#pragma phaserTemplate(outVariables)',
'#pragma phaserTemplate(vertexHeader)',
'void main ()',
'{',
' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',
' outTexCoord = inTexCoord;',
' #pragma phaserTemplate(vertexProcess)',
'}',
].join('\n');