// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("exports ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/maybe ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./CloudsCompositionTechnique ../webgl-engine/core/shaderModules/interfaces ../webgl-engine/lib/glUtil3D ../../webgl/enums".split(" "),function(b,c,g,f,d,q,r,t,h,k,l,m,n){b.CloudsComposition=class extends g{constructor(a){super(a);this._technique=new k.CloudsCompositionTechnique(a); this._vao=m.createQuadVAO(a.rctx)}destroy(){this._technique=f.releaseMaybe(this._technique);this._vao=f.disposeMaybe(this._vao)}render(a){if(this._technique.compiled){var e=a.bindParameters.cloudsFade;null!=this._vao&&null!=e.data&&(e=a.rctx.bindTechnique(this._technique,a.bindParameters,p),a.rctx.bindVAO(this._vao),e.assertCompatibleVertexAttributeLocations(this._vao),a.rctx.drawArrays(n.PrimitiveType.TRIANGLE_STRIP,0,4))}else this.requestRender()}};c.__decorate([d.property({constructOnly:!0})], b.CloudsComposition.prototype,"rctx",void 0);c.__decorate([d.property({constructOnly:!0})],b.CloudsComposition.prototype,"viewingMode",void 0);c.__decorate([d.property({constructOnly:!0})],b.CloudsComposition.prototype,"planetRadius",void 0);c.__decorate([d.property({constructOnly:!0})],b.CloudsComposition.prototype,"requestRender",void 0);b.CloudsComposition=c.__decorate([h.subclass("esri.views.3d.environment.CloudsComposition")],b.CloudsComposition);const p=new l.NoParameters;Object.defineProperty(b, Symbol.toStringTag,{value:"Module"})});