mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 20:43:26 +00:00
17 lines
367 B
JavaScript
17 lines
367 B
JavaScript
|
module.exports = [
|
||
|
'#define SHADER_NAME PHASER_COPY_FS',
|
||
|
'',
|
||
|
'precision mediump float;',
|
||
|
'',
|
||
|
'uniform sampler2D uMainSampler;',
|
||
|
'uniform float uBrightness;',
|
||
|
'',
|
||
|
'varying vec2 outTexCoord;',
|
||
|
'',
|
||
|
'void main()',
|
||
|
'{',
|
||
|
' gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;',
|
||
|
'}',
|
||
|
''
|
||
|
].join('\n');
|