mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 04:23:30 +00:00
16 lines
368 B
JavaScript
16 lines
368 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');
|