UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

11 lines (10 loc) 264 B
module.exports = [ 'vec4 boundedSampler(sampler2D sampler, vec2 uv)', '{', ' if (clamp(uv, 0.0, 1.0) != uv)', ' {', ' return vec4(0.0, 0.0, 0.0, 0.0);', ' }', ' return texture2D(sampler, uv);', '}', ].join('\n');