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

17 lines
368 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;',
'',
2020-11-11 09:39:33 +00:00
'void main ()',
2020-11-11 09:35:02 +00:00
'{',
' gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;',
'}',
''
].join('\n');