mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 13:03:36 +00:00
25 lines
729 B
JavaScript
25 lines
729 B
JavaScript
|
module.exports = [
|
||
|
'#define SHADER_NAME PHASER_MOBILE_VS',
|
||
|
'#ifdef GL_FRAGMENT_PRECISION_HIGH',
|
||
|
'precision highp float;',
|
||
|
'#else',
|
||
|
'precision mediump float;',
|
||
|
'#endif',
|
||
|
'uniform mat4 uProjectionMatrix;',
|
||
|
'attribute vec2 inPosition;',
|
||
|
'attribute vec2 inTexCoord;',
|
||
|
'attribute float inTexId;',
|
||
|
'attribute float inTintEffect;',
|
||
|
'attribute vec4 inTint;',
|
||
|
'varying vec2 outTexCoord;',
|
||
|
'varying float outTintEffect;',
|
||
|
'varying vec4 outTint;',
|
||
|
'void main ()',
|
||
|
'{',
|
||
|
' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',
|
||
|
' outTexCoord = inTexCoord;',
|
||
|
' outTint = inTint;',
|
||
|
' outTintEffect = inTintEffect;',
|
||
|
'}',
|
||
|
].join('\n');
|