2020-10-28 17:39:54 +00:00
|
|
|
module.exports = [
|
|
|
|
'#define SHADER_NAME PHASER_GRAPHICS_VS',
|
|
|
|
'',
|
|
|
|
'precision mediump float;',
|
|
|
|
'',
|
|
|
|
'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 ()',
|
|
|
|
'{',
|
2020-10-29 14:37:52 +00:00
|
|
|
' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',
|
2020-10-28 17:39:54 +00:00
|
|
|
'',
|
|
|
|
' outTexCoord = inTexCoord;',
|
|
|
|
' outTint = inTint;',
|
|
|
|
' outTintEffect = inTintEffect;',
|
|
|
|
'}',
|
|
|
|
''
|
|
|
|
].join('\n');
|