UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 1.36 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */ import{__decorate as e}from"tslib";import{subclass as r}from"../../../../../core/accessorSupport/decorators.js";import{create as s}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{glLayout as t}from"../../../support/buffer/glUtil.js";import{newLayout as o}from"../../../support/buffer/InterleavedLayout.js";import{ReloadableShader as i}from"../../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as m}from"../../core/shaderTechnique/ShaderTechnique.js";import{S as a}from"../../../../../chunks/Stars.glsl.js";import{PrimitiveType as c}from"../../../../webgl/enums.js";import{NoParameters as p}from"../../../../webgl/NoParameters.js";import{makePipelineState as l,defaultColorWrite as f,unpremultipliedAlphaToPremultipliedAlpha as n}from"../../../../webgl/renderState.js";class u extends p{constructor(){super(...arguments),this.modelMatrix=s()}}let d=class extends m{constructor(e,r){super(e,r,t(h)),this.shader=new i(a,()=>import("./Stars.glsl.js")),this.primitiveType=c.POINTS}initializePipeline(){return l({blending:n,depthTest:{func:515},colorWrite:f})}};d=e([r("esri.views.3d.webgl-engine.effects.stars.StarsTechnique")],d);const h=o().vec3f("position").vec4u8("color").f32("size").freeze();export{u as StarPassParameters,d as StarsTechnique,h as layout};