mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 21:28:53 +00:00
20 lines
442 B
JavaScript
20 lines
442 B
JavaScript
module.exports = [
|
|
'#define SHADER_NAME PHASER_GRAPHICS_VS',
|
|
'',
|
|
'precision mediump float;',
|
|
'',
|
|
'uniform mat4 uProjectionMatrix;',
|
|
'',
|
|
'attribute vec2 inPosition;',
|
|
'attribute vec4 inColor;',
|
|
'',
|
|
'varying vec4 outColor;',
|
|
'',
|
|
'void main ()',
|
|
'{',
|
|
' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',
|
|
'',
|
|
' outColor = inColor;',
|
|
'}',
|
|
''
|
|
].join('\n');
|