phaser/src/renderer/webgl/shaders/Copy-frag.js
2020-11-13 17:31:00 +00:00

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');