#version 300 es // composite // features: ["TEXTURE_EXTERNAL"] #extension GL_OES_EGL_image_external_essl3 : enable precision highp float; out highp vec4 oFragColor; uniform lowp samplerExternalOES sColor0; in highp vec2 vUv; flat in highp vec4 vColor; flat in highp vec4 vUVBounds; void main () { oFragColor = (vColor * texture (sColor0, min (max (vUv, vUVBounds.xy), vUVBounds.zw))); }