/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as o,__param as t}from"tslib";import{location as e,uniform as r,texture as p,input as s,VertexInput as i,UniformGroup as n,GraphShaderModule as d,FragmentOutput as c,FragmentInput as l}from"../../GraphShaderModule.js";import{Vec2 as a,Float as x,Sampler2D as y,Vec4 as u,texture2D as m}from"../../graph/glsl.js";class f extends i{}o([e(0,a)],f.prototype,"position",void 0),o([e(1,a)],f.prototype,"texcoord",void 0),o([e(2,x)],f.prototype,"w",void 0);class g extends l{}class v extends n{}o([r(x)],v.prototype,"opacity",void 0);class h extends d{constructor(){super(...arguments),this.type="VideoScreenShader"}vertex(o){const{position:t,texcoord:e,w:r}=o;return{glPosition:new u(t,0,r),texcoord:e}}fragment(o){const t=new c;return t.fragColor=m(this.texture,o.texcoord).multiply(this.config.opacity),t}}o([r(v)],h.prototype,"config",void 0),o([p(y)],h.prototype,"texture",void 0),o([t(0,s(f))],h.prototype,"vertex",null),o([t(0,s(g))],h.prototype,"fragment",null);export{h as VideoScreenShader};
