phaser/src/renderer/webgl/shaders/Copy-frag.js

17 lines
367 B
JavaScript
Raw Normal View History

2020-11-11 09:35:02 +00:00
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');