UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

9 lines (8 loc) 496 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{glsl as t}from"../shaderModules/glsl.js";import{VertexAttribute as i}from"../../lib/VertexAttribute.js";function e(e,o=!0){e.attributes.add(i.POSITION,"vec2"),o&&e.varyings.add("uv","vec2"),e.vertex.main.add(t` gl_Position = vec4(position, 0.0, 1.0); ${o?t`uv = position * 0.5 + vec2(0.5);`:""} `)}export{e as ScreenSpacePass};