#version 300 es // cs_scale // 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 vUvRect; void main () { oFragColor = texture (sColor0, min (max (vUv, vUvRect.xy), vUvRect.zw)); }