@luma.gl/engine 9.0.0-alpha.34 → 9.0.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist.dev.js +5 -0
- package/dist.min.js +9 -1
- package/package.json +6 -6
package/dist/dist.dev.js
CHANGED
|
@@ -3443,6 +3443,10 @@ ${moduleSource}// END MODULE_${this.name}
|
|
|
3443
3443
|
#define DEFAULT_GPU
|
|
3444
3444
|
// Prevent driver from optimizing away the calculation necessary for emulated fp64
|
|
3445
3445
|
#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1
|
|
3446
|
+
// Headless Chrome's software shader 'tan' function doesn't have acceptable precision
|
|
3447
|
+
#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
|
|
3448
|
+
// If the GPU doesn't have full 32 bits precision, will causes overflow
|
|
3449
|
+
#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1
|
|
3446
3450
|
`;
|
|
3447
3451
|
}
|
|
3448
3452
|
}
|
|
@@ -13303,6 +13307,7 @@ ${formattedLog}`)();
|
|
|
13303
13307
|
continue;
|
|
13304
13308
|
}
|
|
13305
13309
|
this.vertexArrayObject.setConstant(attributeInfo.location, value);
|
|
13310
|
+
this.vertexArrayObject.enable(attributeInfo.location, false);
|
|
13306
13311
|
}
|
|
13307
13312
|
}
|
|
13308
13313
|
/** Apply any bindings (before each draw call) */
|
package/dist.min.js
CHANGED
|
@@ -61,10 +61,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
`])));default:return Ee(Aa||(Aa=fe([`#define DEFAULT_GPU
|
|
62
62
|
// Prevent driver from optimizing away the calculation necessary for emulated fp64
|
|
63
63
|
#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1
|
|
64
|
+
// Headless Chrome's software shader 'tan' function doesn't have acceptable precision
|
|
65
|
+
#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
|
|
66
|
+
// If the GPU doesn't have full 32 bits precision, will causes overflow
|
|
67
|
+
#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1
|
|
64
68
|
`],[`\\
|
|
65
69
|
#define DEFAULT_GPU
|
|
66
70
|
// Prevent driver from optimizing away the calculation necessary for emulated fp64
|
|
67
71
|
#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1
|
|
72
|
+
// Headless Chrome's software shader 'tan' function doesn't have acceptable precision
|
|
73
|
+
#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1
|
|
74
|
+
// If the GPU doesn't have full 32 bits precision, will causes overflow
|
|
75
|
+
#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1
|
|
68
76
|
`])))}}function ya(e){var t=Ee(Ta||(Ta=fe([`#if (__VERSION__ > 120)
|
|
69
77
|
|
|
70
78
|
# define FEATURE_GLSL_DERIVATIVES
|
|
@@ -273,7 +281,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
273
281
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,c;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,c=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw c}}}}function Cp(e,t){if(e){if(typeof e=="string")return $c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $c(e,t)}}function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Pp=["warning","error","info"];function Bi(e){var t=e.split(/\r?\n/),r=[],n=yp(t),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;if(!(o.length<=1)){var a=o.split(":"),c=Di(a),f=c[0],u=c[1],_=c[2],E=c.slice(3),p=parseInt(_,10);isNaN(p)&&(p=0);var d=parseInt(u,10);isNaN(d)&&(d=0);var h=f.toLowerCase(),m=Pp.includes(h)?h:"info";r.push({message:E.join(":").trim(),type:m,lineNum:p,linePos:d})}}}catch(A){n.e(A)}finally{n.f()}return r}function qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Np(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qc(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mp(e){var t=Ip();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function Ip(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Zc=function(e){U(r,e);var t=Mp(r);function r(i,o){var a;switch(C(this,r),a=t.call(this,i,Np({id:Fp(o)},o)),a.device=void 0,a.handle=void 0,a.device=i,a.props.stage){case"vertex":a.handle=a.props.handle||a.device.gl.createShader(s.VERTEX_SHADER);break;case"fragment":a.handle=a.props.handle||a.device.gl.createShader(s.FRAGMENT_SHADER);break;default:throw new Error(a.props.stage)}return a._compile(a.source),a}var n=r.prototype;return n.destroy=function(){this.handle&&(this.removeStats(),this.device.gl.deleteShader(this.handle),this.destroyed=!0)},n.compilationInfo=function(){var i=ne(wi.default.mark(function a(){var c;return wi.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=this.device.gl.getShaderInfoLog(this.handle),u.abrupt("return",c?Bi(c):[]);case 2:case"end":return u.stop()}},a,this)}));function o(){return i.apply(this,arguments)}return o}(),n._compile=function(o){var a=function(A){return A.startsWith("#version ")?A:`#version 100
|
|
274
282
|
`.concat(A)};o=a(o);var c=this.device.gl;c.shaderSource(this.handle,o),c.compileShader(this.handle);var f=c.getShaderParameter(this.handle,s.COMPILE_STATUS);if(!f){var u=c.getShaderInfoLog(this.handle),_=u?Bi(u):[],E=_.filter(function(m){return m.type==="error"}),p=Dn(E,o),d=xi(o).name,h="".concat(this.stage," shader ").concat(d);throw x.error("GLSL compilation errors in ".concat(h,`
|
|
275
283
|
`).concat(p))(),new Error("GLSL compilation errors in ".concat(d))}},y(r)}(Mr);function Fp(e){return xi(e.source).name||e.id||J("unnamed ".concat(e.stage,"-shader"))}function Qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qc(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dp(e){var t=Bp();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function Bp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var wp=256,Up=1024,Lp=16384,Ui=6144,Jc=function(e){U(r,e);var t=Dp(r);function r(i,o){var a;return C(this,r),a=t.call(this,i,o),a.device=void 0,a.glParameters=void 0,a.device=i,a.setParameters(a.props.parameters),a.clear(),a}var n=r.prototype;return n.end=function(){},n.pushDebugGroup=function(o){},n.popDebugGroup=function(){},n.insertDebugMarker=function(o){},n.setParameters=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a={};this.props.framebuffer&&(a.framebuffer=this.props.framebuffer),this.props.depthReadOnly&&(a.depthMask=!this.props.depthReadOnly),a.stencilMask=this.props.stencilReadOnly?0:1,a[s.RASTERIZER_DISCARD]=this.props.discard,o.viewport&&(o.viewport.length>=6?(a.viewport=o.viewport.slice(0,4),a.depthRange=[o.viewport[4],o.viewport[5]]):a.viewport=o.viewport),a.scissorTest=Boolean(o.scissorRect),o.scissorRect&&(a.scissor=o.scissorRect),o.blendConstant&&(a.blendColor=o.blendConstant),o.stencilReference&&(console.warn("RenderPassParameters.stencilReference not yet implemented in WebGL"),o[s.STENCIL_REF]=o.stencilReference),this.glParameters=a},n.clear=function(){var o=this,a=xp({},this.glParameters),c=0;this.props.clearColor!==!1&&(c|=Lp,a.clearColor=this.props.clearColor),this.props.clearDepth!==!1&&(c|=wp,a.clearDepth=this.props.clearDepth),this.props.clearStencil!==!1&&(c|=Up,a.clearStencil=this.props.clearStencil),c!==0&&st(this.device,a,function(){o.device.gl.clear(c)})},n.clearColorBuffer=function(){var o=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0,0];st(this.device.gl2,{framebuffer:this.props.framebuffer},function(){switch(c.constructor){case Int32Array:o.device.gl2.clearBufferiv(Ui,a,c);break;case Uint32Array:o.device.gl2.clearBufferuiv(Ui,a,c);break;case Float32Array:default:o.device.gl2.clearBufferfv(Ui,a,c);break}})},y(r)}(xr);var ie;function ef(e){return Xp.includes(e)}var Xp=[s.SAMPLER_2D,s.SAMPLER_CUBE,s.SAMPLER_3D,s.SAMPLER_2D_SHADOW,s.SAMPLER_2D_ARRAY,s.SAMPLER_2D_ARRAY_SHADOW,s.SAMPLER_CUBE_SHADOW,s.INT_SAMPLER_2D,s.INT_SAMPLER_3D,s.INT_SAMPLER_CUBE,s.INT_SAMPLER_2D_ARRAY,s.UNSIGNED_INT_SAMPLER_2D,s.UNSIGNED_INT_SAMPLER_3D,s.UNSIGNED_INT_SAMPLER_CUBE,s.UNSIGNED_INT_SAMPLER_2D_ARRAY],tf=(ie={},l(ie,s.FLOAT,[s.FLOAT,1,"float","f32","float32"]),l(ie,s.FLOAT_VEC2,[s.FLOAT,2,"vec2","vec2<f32>","float32x2"]),l(ie,s.FLOAT_VEC3,[s.FLOAT,3,"vec3","vec3<f32>","float32x3"]),l(ie,s.FLOAT_VEC4,[s.FLOAT,4,"vec4","vec4<f32>","float32x4"]),l(ie,s.INT,[s.INT,1,"int","i32","sint32"]),l(ie,s.INT_VEC2,[s.INT,2,"ivec2","vec2<i32>","sint32x2"]),l(ie,s.INT_VEC3,[s.INT,3,"ivec3","vec3<i32>","sint32x3"]),l(ie,s.INT_VEC4,[s.INT,4,"ivec4","vec4<i32>","sint32x4"]),l(ie,s.UNSIGNED_INT,[s.UNSIGNED_INT,1,"uint","u32","uint32"]),l(ie,s.UNSIGNED_INT_VEC2,[s.UNSIGNED_INT,2,"uvec2","vec2<u32>","uint32x2"]),l(ie,s.UNSIGNED_INT_VEC3,[s.UNSIGNED_INT,3,"uvec3","vec3<u32>","uint32x3"]),l(ie,s.UNSIGNED_INT_VEC4,[s.UNSIGNED_INT,4,"uvec4","vec4<u32>","uint32x4"]),l(ie,s.BOOL,[s.FLOAT,1,"bool","f32","float32"]),l(ie,s.BOOL_VEC2,[s.FLOAT,2,"bvec2","vec2<f32>","float32x2"]),l(ie,s.BOOL_VEC3,[s.FLOAT,3,"bvec3","vec3<f32>","float32x3"]),l(ie,s.BOOL_VEC4,[s.FLOAT,4,"bvec4","vec4<f32>","float32x4"]),l(ie,s.FLOAT_MAT2,[s.FLOAT,8,"mat2","mat2x2<f32>"]),l(ie,s.FLOAT_MAT2x3,[s.FLOAT,8,"mat2x3","mat2x3<f32>"]),l(ie,s.FLOAT_MAT2x4,[s.FLOAT,8,"mat2x4","mat2x4<f32>"]),l(ie,s.FLOAT_MAT3x2,[s.FLOAT,12,"mat3x2","mat3x2<f32>"]),l(ie,s.FLOAT_MAT3,[s.FLOAT,12,"mat3","mat3x3<f32>"]),l(ie,s.FLOAT_MAT3x4,[s.FLOAT,12,"mat3x4","mat3x4<f32>"]),l(ie,s.FLOAT_MAT4x2,[s.FLOAT,16,"mat4x2","mat4x2<f32>"]),l(ie,s.FLOAT_MAT4x3,[s.FLOAT,16,"mat4x3","mat4x3<f32>"]),l(ie,s.FLOAT_MAT4,[s.FLOAT,16,"mat4","mat4x4<f32>"]),ie);function Li(e){var t=tf[e];if(!t)throw new Error("uniform");var r=W(t,4),n=r[0],i=r[1],o=r[3];return{format:o,components:i,glType:n}}function rf(e){var t=tf[e];if(!t)throw new Error("attribute");var r=W(t,5),n=r[1],i=r[3],o=r[4],a=i;return{attributeType:a,vertexFormat:o,components:n}}var me;function nf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function of(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nf(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function af(e,t){var r={attributes:[],bindings:[]};r.attributes=Hp(e,t);for(var n=jp(e,t),i=0,o=n;i<o.length;i++){var a=o[i],c=a.uniforms.map(function(T){return{name:T.name,format:T.format,byteOffset:T.byteOffset,byteStride:T.byteStride,arrayLength:T.arrayLength}});r.bindings.push({type:"uniform",name:a.name,location:a.location,visibility:(a.vertex?1:0)&(a.fragment?2:0),minBindingSize:a.byteLength,uniforms:c})}for(var f=Vp(e,t),u=0,_=0,E=f;_<E.length;_++){var p=E[_];if(ef(p.type)){var d=kp(p.type),h=d.viewDimension,m=d.sampleType;r.bindings.push({type:"texture",name:p.name,location:u,viewDimension:h,sampleType:m}),p.textureUnit=u,u+=1}}f.length&&(r.uniforms=f);var A=Wp(e,t);return A!=null&&A.length&&(r.varyings=A),r}function Hp(e,t){for(var r=[],n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;i<n;i++){var o=e.getActiveAttrib(t,i);if(!o)throw new Error("activeInfo");var a=o.name,c=o.type,f=e.getAttribLocation(t,a);if(f>=0){var u=rf(c),_=u.attributeType,E=/instance/i.test(a)?"instance":"vertex";r.push({name:a,location:f,stepMode:E,type:_})}}return r.sort(function(p,d){return p.location-d.location}),r}function Wp(e,t){if(!Q(e))return[];for(var r=e,n=[],i=e.getProgramParameter(t,s.TRANSFORM_FEEDBACK_VARYINGS),o=0;o<i;o++){var a=r.getTransformFeedbackVarying(t,o);if(!a)throw new Error("activeInfo");var c=a.name,f=a.type,u=a.size,_=Li(f),E=_.glType,p=_.components,d=new Je({type:E,size:u*p}),h={location:o,name:c,accessor:d};n.push(h)}return n.sort(function(m,A){return m.location-A.location}),n}function Vp(e,t){for(var r=[],n=e.getProgramParameter(t,s.ACTIVE_UNIFORMS),i=0;i<n;i++){var o=e.getActiveUniform(t,i);if(!o)throw new Error("activeInfo");var a=o.name,c=o.size,f=o.type,u=Yp(a),_=u.name,E=u.isArray,p=e.getUniformLocation(t,_),d={location:p,name:_,size:c,type:f,isArray:E};if(r.push(d),d.size>1)for(var h=0;h<d.size;h++){var m="".concat(_,"[").concat(h,"]");p=e.getUniformLocation(t,m);var A=of(of({},d),{},{name:m,location:p});r.push(A)}}return r}function jp(e,t){if(!Q(e))return[];for(var r=e,n=function(A,T){return r.getActiveUniformBlockParameter(t,A,T)},i=[],o=r.getProgramParameter(t,s.ACTIVE_UNIFORM_BLOCKS),a=0;a<o;a++){for(var c={name:r.getActiveUniformBlockName(t,a)||"",location:n(a,s.UNIFORM_BLOCK_BINDING),byteLength:n(a,s.UNIFORM_BLOCK_DATA_SIZE),vertex:n(a,s.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER),fragment:n(a,s.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER),uniformCount:n(a,s.UNIFORM_BLOCK_ACTIVE_UNIFORMS),uniforms:[]},f=n(a,s.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES)||[],u=r.getActiveUniforms(t,f,s.UNIFORM_TYPE),_=r.getActiveUniforms(t,f,s.UNIFORM_SIZE),E=r.getActiveUniforms(t,f,s.UNIFORM_OFFSET),p=r.getActiveUniforms(t,f,s.UNIFORM_ARRAY_STRIDE),d=0;d<c.uniformCount;++d){var h=r.getActiveUniform(t,f[d]);if(!h)throw new Error("activeInfo");c.uniforms.push({name:h.name,format:Li(u[d]).format,type:u[d],arrayLength:_[d],byteOffset:E[d],byteStride:p[d]})}i.push(c)}return i.sort(function(m,A){return m.location-A.location}),i}var Kp=(me={},l(me,s.SAMPLER_2D,["2d","float"]),l(me,s.SAMPLER_CUBE,["cube","float"]),l(me,s.SAMPLER_3D,["3d","float"]),l(me,s.SAMPLER_2D_SHADOW,["3d","depth"]),l(me,s.SAMPLER_2D_ARRAY,["2d-array","float"]),l(me,s.SAMPLER_2D_ARRAY_SHADOW,["2d-array","depth"]),l(me,s.SAMPLER_CUBE_SHADOW,["cube","float"]),l(me,s.INT_SAMPLER_2D,["2d","sint"]),l(me,s.INT_SAMPLER_3D,["3d","sint"]),l(me,s.INT_SAMPLER_CUBE,["cube","sint"]),l(me,s.INT_SAMPLER_2D_ARRAY,["2d-array","uint"]),l(me,s.UNSIGNED_INT_SAMPLER_2D,["2d","uint"]),l(me,s.UNSIGNED_INT_SAMPLER_3D,["3d","uint"]),l(me,s.UNSIGNED_INT_SAMPLER_CUBE,["cube","uint"]),l(me,s.UNSIGNED_INT_SAMPLER_2D_ARRAY,["2d-array","uint"]),me);function kp(e){var t=Kp[e];if(!t)throw new Error("sampler");var r=W(t,2),n=r[0],i=r[1];return{viewDimension:n,sampleType:i}}function Yp(e){if(e[e.length-1]!=="]")return{name:e,length:1,isArray:!1};var t=/([^[]*)(\[[0-9]+\])?/,r=t.exec(e);if(!r||r.length<2)throw new Error("Failed to parse GLSL uniform name ".concat(e));return{name:r[1],length:r[2]?1:0,isArray:Boolean(r[2])}}function sf(e,t,r,n){var i=e,o=n;o===!0&&(o=1),o===!1&&(o=0);var a=typeof o=="number"?[o]:o;switch(r){case s.SAMPLER_2D:case s.SAMPLER_CUBE:case s.SAMPLER_3D:case s.SAMPLER_2D_SHADOW:case s.SAMPLER_2D_ARRAY:case s.SAMPLER_2D_ARRAY_SHADOW:case s.SAMPLER_CUBE_SHADOW:case s.INT_SAMPLER_2D:case s.INT_SAMPLER_3D:case s.INT_SAMPLER_CUBE:case s.INT_SAMPLER_2D_ARRAY:case s.UNSIGNED_INT_SAMPLER_2D:case s.UNSIGNED_INT_SAMPLER_3D:case s.UNSIGNED_INT_SAMPLER_CUBE:case s.UNSIGNED_INT_SAMPLER_2D_ARRAY:if(typeof n!="number")throw new Error("samplers must be set to integers");return e.uniform1i(t,n);case s.FLOAT:return e.uniform1fv(t,a);case s.FLOAT_VEC2:return e.uniform2fv(t,a);case s.FLOAT_VEC3:return e.uniform3fv(t,a);case s.FLOAT_VEC4:return e.uniform4fv(t,a);case s.INT:return e.uniform1iv(t,a);case s.INT_VEC2:return e.uniform2iv(t,a);case s.INT_VEC3:return e.uniform3iv(t,a);case s.INT_VEC4:return e.uniform4iv(t,a);case s.BOOL:return e.uniform1iv(t,a);case s.BOOL_VEC2:return e.uniform2iv(t,a);case s.BOOL_VEC3:return e.uniform3iv(t,a);case s.BOOL_VEC4:return e.uniform4iv(t,a);case s.UNSIGNED_INT:return i.uniform1uiv(t,a,1);case s.UNSIGNED_INT_VEC2:return i.uniform2uiv(t,a,2);case s.UNSIGNED_INT_VEC3:return i.uniform3uiv(t,a,3);case s.UNSIGNED_INT_VEC4:return i.uniform4uiv(t,a,4);case s.FLOAT_MAT2:return e.uniformMatrix2fv(t,!1,a);case s.FLOAT_MAT3:return e.uniformMatrix3fv(t,!1,a);case s.FLOAT_MAT4:return e.uniformMatrix4fv(t,!1,a);case s.FLOAT_MAT2x3:return i.uniformMatrix2x3fv(t,!1,a);case s.FLOAT_MAT2x4:return i.uniformMatrix2x4fv(t,!1,a);case s.FLOAT_MAT3x2:return i.uniformMatrix3x2fv(t,!1,a);case s.FLOAT_MAT3x4:return i.uniformMatrix3x4fv(t,!1,a);case s.FLOAT_MAT4x2:return i.uniformMatrix4x2fv(t,!1,a);case s.FLOAT_MAT4x3:return i.uniformMatrix4x3fv(t,!1,a)}throw new Error("Illegal uniform")}var uf;function cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ff(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cf(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zp(e){var t=Gp();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function Gp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var $p="elements must be GL.ELEMENT_ARRAY_BUFFER";uf=Symbol.toStringTag;var lf=function(e){U(r,e);var t=zp(r);r.isConstantAttributeZeroSupported=function(o){return o.info.type==="webgl2"||qt()==="Chrome"};function r(i,o){var a;return C(this,r),a=t.call(this,i,o,ff(ff({},ee.defaultProps),{},{constantAttributeZero:!1})),a.buffer=null,a.bufferValue=null,Object.seal(Fe(a)),a}var n=r.prototype;return n.destroy=function(){if(Ve(b(r.prototype),"destroy",this).call(this),this.buffer){var o;(o=this.buffer)===null||o===void 0||o.destroy()}},n._createHandle=function(){return this.gl2.createVertexArray()},n._deleteHandle=function(){return this.gl2.deleteVertexArray(this.handle),[this.elements]},n._bindHandle=function(o){this.gl2.bindVertexArray(o)},n.enable=function(o){var a=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,f=this.device.isWebGL2||qt()==="Chrome",u=f||o!==0;(c||u)&&(o=Number(o),this.bind(function(){return c?a.gl.enableVertexAttribArray(o):a.gl.disableVertexAttribArray(o)}))},n.setElementBuffer=function(){var o=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H(!a||a.glTarget===s.ELEMENT_ARRAY_BUFFER,$p),this.bind(function(){o.gl.bindBuffer(s.ELEMENT_ARRAY_BUFFER,a?a.handle:null)})},n.setBuffer=function(o,a,c){var f=this;if(a.glTarget===s.ELEMENT_ARRAY_BUFFER){this.setElementBuffer(a,c);return}var u=c.size,_=c.type,E=c.stride,p=c.offset,d=c.normalized,h=c.integer,m=c.divisor,A=this.gl,T=this.gl2;o=Number(o),this.bind(function(){A.bindBuffer(A.ARRAY_BUFFER,a.handle),h?(f.device.assertWebGL2(),T.vertexAttribIPointer(o,u,_,E,p)):A.vertexAttribPointer(o,u,_,d,E,p),A.enableVertexAttribArray(o),T.vertexAttribDivisor(o,m||0)})},n.setConstant=function(o,a){switch(a.constructor){case Float32Array:qp(this.device,o,a);break;case Int32Array:Zp(this.device,o,a);break;case Uint32Array:Qp(this.device,o,a);break;default:H(!1)}},n.getConstantBuffer=function(o,a){var c=Jp(a),f=c.byteLength*o,u=c.length*o,_=!this.buffer;if(this.buffer=this.buffer||this.device.createBuffer({byteLength:f}),_=_||this.buffer.reallocate(f),_=_||!ed(c,this.bufferValue),_){var E=Wn(a.constructor,u);Vn({target:E,source:c,start:0,count:u}),this.buffer.subData(E),this.bufferValue=a}return this.buffer},y(r,[{key:uf,get:function(){return"BaseVertexArrayObject"}}]),r}(un);function qp(e,t,r){switch(r.length){case 1:e.gl.vertexAttrib1fv(t,r);break;case 2:e.gl.vertexAttrib2fv(t,r);break;case 3:e.gl.vertexAttrib3fv(t,r);break;case 4:e.gl.vertexAttrib4fv(t,r);break;default:H(!1)}}function Zp(e,t,r){var n;e.assertWebGL2(),(n=e.gl2)===null||n===void 0||n.vertexAttribI4iv(t,r)}function Qp(e,t,r){var n;e.assertWebGL2(),(n=e.gl2)===null||n===void 0||n.vertexAttribI4uiv(t,r)}function Jp(e){return Array.isArray(e)?new Float32Array(e):e}function ed(e,t){if(!e||!t||e.length!==t.length||e.constructor!==t.constructor)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}function _f(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=td(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
276
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,c;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,c=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw c}}}}function td(e,t){if(e){if(typeof e=="string")return Ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ef(e,t)}}function Ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rd(e){var t=nd();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function nd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var pf=4,df=function(e){U(r,e);var t=rd(r);function r(i,o){var a;C(this,r),a=t.call(this,i,o),a.device=void 0,a.handle=void 0,a.vs=void 0,a.fs=void 0,a.introspectedLayout=void 0,a.shaderLayout=void 0,a.bufferLayout=void 0,a.uniforms={},a.bindings={},a.constantAttributes={},a._indexBuffer=void 0,a.varyings=null,a.vertexArrayObject=void 0,a._textureUniforms={},a._textureIndexCounter=0,a._uniformCount=0,a._uniformSetters={},a.device=i,a.handle=a.props.handle||a.device.gl.createProgram(),a.device.setSpectorMetadata(a.handle,{id:a.props.id}),a.vs=o.vs,a.fs=o.fs;var c=o.varyings,f=o.bufferMode,u=f===void 0?s.SEPARATE_ATTRIBS:f;if(c&&c.length>0){var _;a.device.assertWebGL2(),a.varyings=c,(_=a.device.gl2)===null||_===void 0||_.transformFeedbackVaryings(a.handle,c,u)}return a._compileAndLink(),a.introspectedLayout=af(a.device.gl,a.handle),a.shaderLayout=wn(a.introspectedLayout,o.shaderLayout),a.bufferLayout=o.bufferLayout||[],a.vertexArrayObject=new lf(a.device),a}var n=r.prototype;return n.destroy=function(){this.handle&&(this.device.gl.deleteProgram(this.handle),this.destroyed=!0)},n.setIndexBuffer=function(o){var a=o;this.vertexArrayObject.setElementBuffer(a),this._indexBuffer=a},n.setAttributes=function(o){for(var a=Lr(this.shaderLayout,this.bufferLayout),c=0,f=Object.entries(o);c<f.length;c++){for(var u=W(f[c],2),_=u[0],E=u[1],p=!1,d=0,h=Object.values(a);d<h.length;d++){var m=h[d];if(m.bufferName===_){var A=E,T=tn(m.bufferDataType);x.log(2,{setAttribute:m.attributeName,toBuffer:_,size:m.bufferComponents,type:T,stride:m.byteStride,offset:m.byteOffset,normalized:m.normalized,integer:m.integer,divisor:m.stepMode==="instance"?1:0})(),this.vertexArrayObject.setBuffer(m.location,A,{size:m.bufferComponents,type:T,stride:m.byteStride,offset:m.byteOffset,normalized:m.normalized,integer:m.integer,divisor:m.stepMode==="instance"?1:0}),p=!0}}p||x.warn('setAttributes(): Ignoring (buffer "'.concat(E.id,'" for unknown attribute "').concat(name,'" in pipeline "').concat(this.id,'"'))()}},n.setConstantAttributes=function(o){Object.assign(this.constantAttributes,o)},n.setBindings=function(o){for(var a=this,c=function(){var p=W(u[f],2),d=p[0],h=p[1],m=a.shaderLayout.bindings.find(function(A){return A.name===d});if(!m)return x.warn("Unknown binding ".concat(d," in render pipeline ").concat(a.id))(),"continue";switch(h||x.warn("Unsetting binding ".concat(d," in render pipeline ").concat(a.id))(),m.type){case"uniform":if(!(h instanceof je)&&!(h.buffer instanceof je))throw new Error("buffer value");break;case"texture":if(!(h instanceof Ke))throw new Error("texture value");break;case"sampler":x.warn("Ignoring sampler ".concat(d))();break;default:throw new Error(m.type)}a.bindings[d]=h},f=0,u=Object.entries(o);f<u.length;f++)var _=c()},n.setUniforms=function(o){Object.assign(this.uniforms,o)},n.draw=function(o){var a,c=this,f=o.renderPass,u=o.vertexCount,_=o.instanceCount,E=o.firstVertex,p=E===void 0?0:E,d=id(this.props.topology),h=Boolean(this._indexBuffer),m=(a=this._indexBuffer)===null||a===void 0?void 0:a.glIndexType,A=Number(o.instanceCount)>0;return!this._areTexturesRenderable()||o.vertexCount===0?!1:(this.device.gl.useProgram(this.handle),this.vertexArrayObject.bind(function(){var T=od(c.props.topology),P=null;P&&P.begin(T),c._applyBindings(),c._applyUniforms(),c._applyConstantAttributes();var S=f;Ac(c.device,c.props.parameters,function(){Rc(c.device,S.glParameters,function(){if(h&&A){var O;(O=c.device.gl2)===null||O===void 0||O.drawElementsInstanced(d,u||0,m,p,_||0)}else if(h)c.device.gl.drawElements(d,u||0,m,p);else if(A){var F;(F=c.device.gl2)===null||F===void 0||F.drawArraysInstanced(d,p,u||0,_||0)}else c.device.gl.drawArrays(d,p,u||0)}),P&&P.end()})}),!0)},n._compileAndLink=function(){var o=this.device.gl;if(o.attachShader(this.handle,this.vs.handle),o.attachShader(this.handle,this.fs.handle),x.time(pf,"linkProgram for ".concat(this.id))(),o.linkProgram(this.handle),x.timeEnd(pf,"linkProgram for ".concat(this.id))(),o.debug||x.level>0){var a=o.getProgramParameter(this.handle,o.LINK_STATUS);if(!a)throw new Error("Error linking: ".concat(o.getProgramInfoLog(this.handle)));o.validateProgram(this.handle);var c=o.getProgramParameter(this.handle,o.VALIDATE_STATUS);if(!c)throw new Error("Error validating: ".concat(o.getProgramInfoLog(this.handle)))}},n._areTexturesRenderable=function(){for(var o=!0,a=0,c=Object.entries(this._textureUniforms);a<c.length;a++){var f=W(c[a],2),u=f[1];u.update(),o=o&&u.loaded}for(var _=0,E=Object.entries(this.bindings);_<E.length;_++){var p=W(E[_],2),d=p[1];d.loaded!==void 0&&(o=o&&d.loaded)}return o},n._applyConstantAttributes=function(){for(var o=Lr(this.shaderLayout,this.bufferLayout),a=0,c=Object.entries(this.constantAttributes);a<c.length;a++){var f=W(c[a],2),u=f[0],_=f[1],E=o[u];if(!E){x.warn('Ignoring constant value supplied for unknown attribute "'.concat(u,'" in pipeline "').concat(this.id,'"'))();continue}this.vertexArrayObject.setConstant(E.location,_)}},n._applyBindings=function(){this.device.gl.useProgram(this.handle);var o=this.device.gl2;if(!o)throw new Error("bindings");var a=0,c=0,f=_f(this.shaderLayout.bindings),u;try{for(f.s();!(u=f.n()).done;){var _=u.value,E=this.bindings[_.name];if(!E)throw new Error("No value for binding ".concat(_.name," in ").concat(this.id));switch(_.type){case"uniform":var p=_.name,d=o.getUniformBlockIndex(this.handle,p);if(d===s.INVALID_INDEX)throw new Error("Invalid uniform block name ".concat(p));o.uniformBlockBinding(this.handle,c,d),E instanceof je?o.bindBufferBase(s.UNIFORM_BUFFER,c,E.handle):o.bindBufferRange(s.UNIFORM_BUFFER,c,E.buffer.handle,E.offset||0,E.size||E.buffer.byteLength-E.offset),c+=1;break;case"texture":if(!(E instanceof Ke))throw new Error("texture");var h=E;o.activeTexture(s.TEXTURE0+a),o.bindTexture(h.target,h.handle),a+=1;break;case"sampler":break;case"storage":case"read-only-storage":throw new Error("binding type '".concat(_.type,"' not supported in WebGL"))}}}catch(m){f.e(m)}finally{f.f()}},n._applyUniforms=function(){var o=_f(this.shaderLayout.uniforms||[]),a;try{for(o.s();!(a=o.n()).done;){var c,f=a.value,u=f.name,_=f.location,E=f.type,p=f.textureUnit,d=(c=this.uniforms[u])!==null&&c!==void 0?c:p;d!==void 0&&sf(this.device.gl,_,E,d)}}catch(h){o.e(h)}finally{o.f()}},y(r)}(it);function id(e){switch(e){case"point-list":return s.POINTS;case"line-list":return s.LINES;case"line-strip":return s.LINE_STRIP;case"line-loop-webgl":return s.LINE_LOOP;case"triangle-list":return s.TRIANGLES;case"triangle-strip":return s.TRIANGLE_STRIP;case"triangle-fan-webgl":return s.TRIANGLE_FAN;default:throw new Error(e)}}function od(e){switch(e){case"point-list":return s.POINTS;case"line-list":return s.LINES;case"line-strip":return s.LINES;case"line-loop-webgl":return s.LINES;case"triangle-list":return s.TRIANGLES;case"triangle-strip":return s.TRIANGLES;case"triangle-fan-webgl":return s.TRIANGLES;default:throw new Error(e)}}function ad(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sd(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
284
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,c;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,c=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw c}}}}function td(e,t){if(e){if(typeof e=="string")return Ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ef(e,t)}}function Ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rd(e){var t=nd();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function nd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var pf=4,df=function(e){U(r,e);var t=rd(r);function r(i,o){var a;C(this,r),a=t.call(this,i,o),a.device=void 0,a.handle=void 0,a.vs=void 0,a.fs=void 0,a.introspectedLayout=void 0,a.shaderLayout=void 0,a.bufferLayout=void 0,a.uniforms={},a.bindings={},a.constantAttributes={},a._indexBuffer=void 0,a.varyings=null,a.vertexArrayObject=void 0,a._textureUniforms={},a._textureIndexCounter=0,a._uniformCount=0,a._uniformSetters={},a.device=i,a.handle=a.props.handle||a.device.gl.createProgram(),a.device.setSpectorMetadata(a.handle,{id:a.props.id}),a.vs=o.vs,a.fs=o.fs;var c=o.varyings,f=o.bufferMode,u=f===void 0?s.SEPARATE_ATTRIBS:f;if(c&&c.length>0){var _;a.device.assertWebGL2(),a.varyings=c,(_=a.device.gl2)===null||_===void 0||_.transformFeedbackVaryings(a.handle,c,u)}return a._compileAndLink(),a.introspectedLayout=af(a.device.gl,a.handle),a.shaderLayout=wn(a.introspectedLayout,o.shaderLayout),a.bufferLayout=o.bufferLayout||[],a.vertexArrayObject=new lf(a.device),a}var n=r.prototype;return n.destroy=function(){this.handle&&(this.device.gl.deleteProgram(this.handle),this.destroyed=!0)},n.setIndexBuffer=function(o){var a=o;this.vertexArrayObject.setElementBuffer(a),this._indexBuffer=a},n.setAttributes=function(o){for(var a=Lr(this.shaderLayout,this.bufferLayout),c=0,f=Object.entries(o);c<f.length;c++){for(var u=W(f[c],2),_=u[0],E=u[1],p=!1,d=0,h=Object.values(a);d<h.length;d++){var m=h[d];if(m.bufferName===_){var A=E,T=tn(m.bufferDataType);x.log(2,{setAttribute:m.attributeName,toBuffer:_,size:m.bufferComponents,type:T,stride:m.byteStride,offset:m.byteOffset,normalized:m.normalized,integer:m.integer,divisor:m.stepMode==="instance"?1:0})(),this.vertexArrayObject.setBuffer(m.location,A,{size:m.bufferComponents,type:T,stride:m.byteStride,offset:m.byteOffset,normalized:m.normalized,integer:m.integer,divisor:m.stepMode==="instance"?1:0}),p=!0}}p||x.warn('setAttributes(): Ignoring (buffer "'.concat(E.id,'" for unknown attribute "').concat(name,'" in pipeline "').concat(this.id,'"'))()}},n.setConstantAttributes=function(o){Object.assign(this.constantAttributes,o)},n.setBindings=function(o){for(var a=this,c=function(){var p=W(u[f],2),d=p[0],h=p[1],m=a.shaderLayout.bindings.find(function(A){return A.name===d});if(!m)return x.warn("Unknown binding ".concat(d," in render pipeline ").concat(a.id))(),"continue";switch(h||x.warn("Unsetting binding ".concat(d," in render pipeline ").concat(a.id))(),m.type){case"uniform":if(!(h instanceof je)&&!(h.buffer instanceof je))throw new Error("buffer value");break;case"texture":if(!(h instanceof Ke))throw new Error("texture value");break;case"sampler":x.warn("Ignoring sampler ".concat(d))();break;default:throw new Error(m.type)}a.bindings[d]=h},f=0,u=Object.entries(o);f<u.length;f++)var _=c()},n.setUniforms=function(o){Object.assign(this.uniforms,o)},n.draw=function(o){var a,c=this,f=o.renderPass,u=o.vertexCount,_=o.instanceCount,E=o.firstVertex,p=E===void 0?0:E,d=id(this.props.topology),h=Boolean(this._indexBuffer),m=(a=this._indexBuffer)===null||a===void 0?void 0:a.glIndexType,A=Number(o.instanceCount)>0;return!this._areTexturesRenderable()||o.vertexCount===0?!1:(this.device.gl.useProgram(this.handle),this.vertexArrayObject.bind(function(){var T=od(c.props.topology),P=null;P&&P.begin(T),c._applyBindings(),c._applyUniforms(),c._applyConstantAttributes();var S=f;Ac(c.device,c.props.parameters,function(){Rc(c.device,S.glParameters,function(){if(h&&A){var O;(O=c.device.gl2)===null||O===void 0||O.drawElementsInstanced(d,u||0,m,p,_||0)}else if(h)c.device.gl.drawElements(d,u||0,m,p);else if(A){var F;(F=c.device.gl2)===null||F===void 0||F.drawArraysInstanced(d,p,u||0,_||0)}else c.device.gl.drawArrays(d,p,u||0)}),P&&P.end()})}),!0)},n._compileAndLink=function(){var o=this.device.gl;if(o.attachShader(this.handle,this.vs.handle),o.attachShader(this.handle,this.fs.handle),x.time(pf,"linkProgram for ".concat(this.id))(),o.linkProgram(this.handle),x.timeEnd(pf,"linkProgram for ".concat(this.id))(),o.debug||x.level>0){var a=o.getProgramParameter(this.handle,o.LINK_STATUS);if(!a)throw new Error("Error linking: ".concat(o.getProgramInfoLog(this.handle)));o.validateProgram(this.handle);var c=o.getProgramParameter(this.handle,o.VALIDATE_STATUS);if(!c)throw new Error("Error validating: ".concat(o.getProgramInfoLog(this.handle)))}},n._areTexturesRenderable=function(){for(var o=!0,a=0,c=Object.entries(this._textureUniforms);a<c.length;a++){var f=W(c[a],2),u=f[1];u.update(),o=o&&u.loaded}for(var _=0,E=Object.entries(this.bindings);_<E.length;_++){var p=W(E[_],2),d=p[1];d.loaded!==void 0&&(o=o&&d.loaded)}return o},n._applyConstantAttributes=function(){for(var o=Lr(this.shaderLayout,this.bufferLayout),a=0,c=Object.entries(this.constantAttributes);a<c.length;a++){var f=W(c[a],2),u=f[0],_=f[1],E=o[u];if(!E){x.warn('Ignoring constant value supplied for unknown attribute "'.concat(u,'" in pipeline "').concat(this.id,'"'))();continue}this.vertexArrayObject.setConstant(E.location,_),this.vertexArrayObject.enable(E.location,!1)}},n._applyBindings=function(){this.device.gl.useProgram(this.handle);var o=this.device.gl2;if(!o)throw new Error("bindings");var a=0,c=0,f=_f(this.shaderLayout.bindings),u;try{for(f.s();!(u=f.n()).done;){var _=u.value,E=this.bindings[_.name];if(!E)throw new Error("No value for binding ".concat(_.name," in ").concat(this.id));switch(_.type){case"uniform":var p=_.name,d=o.getUniformBlockIndex(this.handle,p);if(d===s.INVALID_INDEX)throw new Error("Invalid uniform block name ".concat(p));o.uniformBlockBinding(this.handle,c,d),E instanceof je?o.bindBufferBase(s.UNIFORM_BUFFER,c,E.handle):o.bindBufferRange(s.UNIFORM_BUFFER,c,E.buffer.handle,E.offset||0,E.size||E.buffer.byteLength-E.offset),c+=1;break;case"texture":if(!(E instanceof Ke))throw new Error("texture");var h=E;o.activeTexture(s.TEXTURE0+a),o.bindTexture(h.target,h.handle),a+=1;break;case"sampler":break;case"storage":case"read-only-storage":throw new Error("binding type '".concat(_.type,"' not supported in WebGL"))}}}catch(m){f.e(m)}finally{f.f()}},n._applyUniforms=function(){var o=_f(this.shaderLayout.uniforms||[]),a;try{for(o.s();!(a=o.n()).done;){var c,f=a.value,u=f.name,_=f.location,E=f.type,p=f.textureUnit,d=(c=this.uniforms[u])!==null&&c!==void 0?c:p;d!==void 0&&sf(this.device.gl,_,E,d)}}catch(h){o.e(h)}finally{o.f()}},y(r)}(it);function id(e){switch(e){case"point-list":return s.POINTS;case"line-list":return s.LINES;case"line-strip":return s.LINE_STRIP;case"line-loop-webgl":return s.LINE_LOOP;case"triangle-list":return s.TRIANGLES;case"triangle-strip":return s.TRIANGLE_STRIP;case"triangle-fan-webgl":return s.TRIANGLE_FAN;default:throw new Error(e)}}function od(e){switch(e){case"point-list":return s.POINTS;case"line-list":return s.LINES;case"line-strip":return s.LINES;case"line-loop-webgl":return s.LINES;case"triangle-list":return s.TRIANGLES;case"triangle-strip":return s.TRIANGLES;case"triangle-fan-webgl":return s.TRIANGLES;default:throw new Error(e)}}function ad(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=sd(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
277
285
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,c;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,c=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw c}}}}function sd(e,t){if(e){if(typeof e=="string")return hf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hf(e,t)}}function hf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cd(e){var t=fd();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function fd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var mf=function(e){U(r,e);var t=cd(r);function r(i){var o;return C(this,r),o=t.call(this,{}),o.device=void 0,o.commands=[],o.device=i,o}var n=r.prototype;return n.submitCommands=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.commands,a=ad(o),c;try{for(a.s();!(c=a.n()).done;){var f=c.value;switch(f.name){case"copy-buffer-to-buffer":ud(this.device,f.options);break;case"copy-buffer-to-texture":ld(this.device,f.options);break;case"copy-texture-to-buffer":_d(this.device,f.options);break;case"copy-texture-to-texture":Ed(this.device,f.options);break}}}catch(u){a.e(u)}finally{a.f()}},y(r)}(Br);function ud(e,t){var r=t.source,n=t.destination,i=e.assertWebGL2();if(i){var o,a;i.bindBuffer(s.COPY_READ_BUFFER,r.handle),i.bindBuffer(s.COPY_WRITE_BUFFER,n.handle),i.copyBufferSubData(s.COPY_READ_BUFFER,s.COPY_WRITE_BUFFER,(o=t.sourceOffset)!==null&&o!==void 0?o:0,(a=t.destinationOffset)!==null&&a!==void 0?a:0,t.size),i.bindBuffer(s.COPY_READ_BUFFER,null),i.bindBuffer(s.COPY_WRITE_BUFFER,null)}else throw new Error("copyBufferToBuffer not implemented in WebGL1")}function ld(e,t){throw new Error("Not implemented")}function _d(e,t){var r=t.source,n=t.mipLevel,i=n===void 0?0:n,o=t.aspect,a=o===void 0?"all":o,c=t.width,f=c===void 0?t.source.width:c,u=t.height,_=u===void 0?t.source.height:u,E=t.depthOrArrayLayers,p=E===void 0?0:E,d=t.origin,h=d===void 0?[0,0]:d,m=t.destination,A=t.byteOffset,T=A===void 0?0:A,P=t.bytesPerRow,S=t.rowsPerImage;if(a!=="all")throw new Error("not supported");if(i!==0||p!==void 0||P||S)throw new Error("not implemented");var O=e.assertWebGL2(),F=Rf(r),M=F.framebuffer,X=F.destroyFramebuffer;try{var j=m,k=f||M.width,V=_||M.height,g=s.RGBA,R=s.UNSIGNED_BYTE;O.bindBuffer(s.PIXEL_PACK_BUFFER,j.handle),O.bindFramebuffer(s.FRAMEBUFFER,M.handle),O.readPixels(h[0],h[1],k,V,g,R,T)}finally{O.bindBuffer(s.PIXEL_PACK_BUFFER,null),O.bindFramebuffer(s.FRAMEBUFFER,null),X&&M.destroy()}}function Ed(e,t){var r=t.source,n=t.origin,i=n===void 0?[0,0]:n,o=t.destination,a=t.width,c=a===void 0?t.destination.width:a,f=t.height,u=f===void 0?t.destination.width:f,_=0,E=s.RGBA,p=Rf(r),d=p.framebuffer,h=p.destroyFramebuffer,m=W(i,2),A=m[0],T=m[1],P=!1;e.gl.bindFramebuffer(s.FRAMEBUFFER,d.handle);var S=null,O;if(o instanceof Ke)S=o,c=Number.isFinite(c)?c:S.width,u=Number.isFinite(u)?u:S.height,S.bind(0),O=S.destination;else throw new Error("whoops");return P||e.gl.copyTexImage2D(O,_,E,A,T,c,u,0),S&&S.unbind(),e.gl.bindFramebuffer(s.FRAMEBUFFER,prevHandle||null),h&&d.destroy(),S}function Rf(e){if(e instanceof Oe){var t=e.width,r=e.height,n=e.id,i=e.device.createFramebuffer({id:"framebuffer-for-".concat(n),width:t,height:r,colorAttachments:[e]});return{framebuffer:i,destroyFramebuffer:!0}}return{framebuffer:e,destroyFramebuffer:!1}}function pd(e){var t=dd();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function dd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Af=function(e){U(r,e);var t=pd(r);function r(i,o){var a;return C(this,r),a=t.call(this,i,o),a.device=void 0,a.commandBuffer=void 0,a.device=i,a.commandBuffer=new mf(i),a}var n=r.prototype;return n.destroy=function(){},n.finish=function(){this.commandBuffer.submitCommands()},n.copyBufferToBuffer=function(o){this.commandBuffer.commands.push({name:"copy-buffer-to-buffer",options:o})},n.copyBufferToTexture=function(o){this.commandBuffer.commands.push({name:"copy-buffer-to-texture",options:o})},n.copyTextureToBuffer=function(o){this.commandBuffer.commands.push({name:"copy-texture-to-buffer",options:o})},n.copyTextureToTexture=function(o){this.commandBuffer.commands.push({name:"copy-texture-to-texture",options:o})},n.pushDebugGroup=function(o){},n.popDebugGroup=function(){},n.insertDebugMarker=function(o){},y(r)}(Dr);function Tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hd(e){var t=md();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function md(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var pn=1,he=function(e){U(r,e);var t=hd(r);r.isSupported=function(){return typeof WebGLRenderingContext<"u"||Bs()},r.attach=function(o){if(o instanceof r)return o;if(o?.device instanceof Qt)return o.device;if(!Rd(o))throw new Error("Invalid WebGLRenderingContext");return new r({gl:o})},r.create=function(){var i=ne(Xi.default.mark(function a(){var c,f,u=arguments;return Xi.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(c=u.length>0&&u[0]!==void 0?u[0]:{},x.groupCollapsed(pn,"WebGLDevice created"),typeof c.canvas!="string"){E.next=5;break}return E.next=5,Nt.pageLoaded;case 5:if(!(x.get("debug")||c.debug)){E.next=8;break}return E.next=8,Vc();case 8:if(f=c.spector,!(x.get("spector")||f)){E.next=12;break}return E.next=12,wc();case 12:if(x.probe(pn+1,"DOM is loaded")(),!(c.gl&&c.gl.device)){E.next=15;break}return E.abrupt("return",r.attach(c.gl));case 15:return E.abrupt("return",new r(c));case 16:case"end":return E.stop()}},a)}));function o(){return i.apply(this,arguments)}return o}();function r(i){var o,a;C(this,r),a=t.call(this,ke(ke({},i),{},{id:i.id||J("webgl-device")})),a.info=void 0,a.canvasContext=void 0,a.handle=void 0,a.lost=void 0,a._resolveContextLost=void 0,a._features=void 0,a._limits=void 0,a.renderPass=null,a.gl=void 0,a.gl2=null,a.debug=!1,a.isWebGL1=void 0,a.isWebGL2=void 0,a._canvasSizeInfo={clientWidth:0,clientHeight:0,devicePixelRatio:1},a._extensions={},a._polyfilled=!1,a.spector=void 0,a._webglLimits=void 0;var c=(o=i.gl)===null||o===void 0?void 0:o.device;if(c)throw new Error("WebGL context already attached to device ".concat(c.id));a.canvasContext=new Fc(Fe(a),i),a.lost=new Promise(function(A){a._resolveContextLost=A});var f=function(T){var P,S;return(P=(S=a)._resolveContextLost)===null||P===void 0?void 0:P.call(S,{reason:"destroyed",message:"Computer entered sleep mode, or too many apps or browser tabs are using the GPU."})},u=i.gl||null;if(u=u||(ae()?nc(a.canvasContext.canvas,ke(ke({},i),{},{onContextLost:f})):null),u=u||(ae()?null:ws(ke(ke({},i),{},{onContextLost:f}))),!u)throw new Error("WebGL context creation failed");a.handle=u,a.gl=a.handle,a.gl2=a.gl,a.isWebGL2=Ad(a.gl),a.isWebGL1=!a.isWebGL2,a.info=ic(a.gl),a.gl.device=Fe(a),a.gl._version=a.isWebGL2?2:1,Ys(a.gl);var _=i.enable,E=_===void 0?!0:_,p=i.copyState,d=p===void 0?!1:p;if(hi(a.gl,{enable:E,copyState:d,log:function(){for(var T=arguments.length,P=new Array(T),S=0;S<T;S++)P[S]=arguments[S];return x.log.apply(x,[1].concat(P))()}}),ae()&&i.debug&&(a.gl=jc(a.gl,ke(ke({},i),{},{webgl2:a.isWebGL2,throwOnError:!0})),a.gl2=a.gl,a.debug=!0,x.level=Math.max(x.level,1),x.warn("WebGL debug mode activated. Performance reduced.")()),ae()&&i.spector){var h=a.handle.canvas||i.canvas;a.spector=Uc(ke(ke({},a.props),{},{canvas:h}))}var m="Created ".concat(a.info.type).concat(a.debug?" debug":""," context: ").concat(a.info.vendor,", ").concat(a.info.renderer," for canvas: ").concat(a.canvasContext.id);return x.probe(pn,m)(),x.groupEnd(pn)(),a}var n=r.prototype;return n.destroy=function(){var o=this.gl.getExtension("STACKGL_destroy_context");o&&o.destroy()},n.getSize=function(){return[this.gl.drawingBufferWidth,this.gl.drawingBufferHeight]},n.isTextureFormatSupported=function(o){return _r(this.gl,o)},n.isTextureFormatFilterable=function(o){return fc(this.gl,o)},n.isTextureFormatRenderable=function(o){return uc(this.gl,o)},n.assertWebGL2=function(){if(!this.gl2)throw new Error("Requires WebGL2");return this.gl2},n.createCanvasContext=function(o){throw new Error("WebGL only supports a single canvas")},n.createBuffer=function(o){var a=this._getBufferProps(o);return new Gc(this,a)},n._createTexture=function(o){return new Ke(this,o)},n.createExternalTexture=function(o){throw new Error("createExternalTexture() not implemented")},n.createSampler=function(o){return new hr(this,o)},n.createShader=function(o){return new Zc(this,o)},n.createFramebuffer=function(o){return new _n(this,o)},n.createRenderPipeline=function(o){return new df(this,o)},n.beginRenderPass=function(o){return new Jc(this,o)},n.createComputePipeline=function(o){throw new Error("ComputePipeline not supported in WebGL")},n.beginComputePass=function(o){throw new Error("compute shaders not supported in WebGL")},n.getDefaultRenderPass=function(){return this.renderPass=this.renderPass||this.beginRenderPass({framebuffer:this.canvasContext.getCurrentFramebuffer()}),this.renderPass},n.createCommandEncoder=function(o){return new Af(this,o)},n.submit=function(){var o;(o=this.renderPass)===null||o===void 0||o.end(),this.renderPass=null},n.loseDevice=function(){var o,a=!1,c=this.gl.getExtension("WEBGL_lose_context");return c&&(a=!0,c.loseContext()),(o=this._resolveContextLost)===null||o===void 0||o.call(this,{reason:"destroyed",message:"Application triggered context loss"}),a},n.pushState=function(){At(this.gl)},n.popState=function(){at(this.gl)},n.setSpectorMetadata=function(o,a){o.__SPECTOR_Metadata=a},n.getGLKey=function(o,a){a=a||this.gl2||this.gl;var c=Number(o);for(var f in a)if(a[f]===c)return"GL.".concat(f);return String(o)},y(r,[{key:"features",get:function(){return this._features=this._features||pc(this.gl),this._features}},{key:"limits",get:function(){return this._limits=this._limits||hc(this.gl),this._limits}},{key:"isLost",get:function(){return this.gl.isContextLost()}},{key:"webglLimits",get:function(){return this._webglLimits=this._webglLimits||mc(this.gl),this._webglLimits}}]),r}(Qt);he.type="webgl";function Rd(e){return typeof WebGLRenderingContext<"u"&&e instanceof WebGLRenderingContext||typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext?!0:Boolean(e&&Number.isFinite(e._version))}function Ad(e){return typeof WebGL2RenderingContext<"u"&&e instanceof WebGL2RenderingContext?!0:Boolean(e&&e._version===2)}function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var vf=function(){e.isSupported=function(n){return!1};function e(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C(this,e),this.device=void 0,this.gl=void 0,this.elementCount=0,this.elementIDBuffer=null,this.device=he.attach(r),this.gl=this.device.gl2,this._buildResourceTransforms(n),n=this._updateModelProps(n),this.model=new ht(this.device,dn(dn({},n),{},{fs:n.fs||ti({version:ei(n.vs).version}),id:n.id||"transform-model",drawMode:n.drawMode||s.POINTS,vertexCount:n.elementCount})),Object.seal(this)}var t=e.prototype;return t.destroy=function(){},t.delete=function(){this.destroy()},t.run=function(n){var i=n||{},o=i.clearRenderTarget,a=o===void 0?!0:o,c=this._updateDrawOptions(n);a&&c.framebuffer},t.swap=function(){},t.getBuffer=function(n){return null},t.getData=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}},t.getFramebuffer=function(){return null},t.update=function(n){},t._updateModelProps=function(n){var i=dn({},n);return i},t._buildResourceTransforms=function(n){},t._updateDrawOptions=function(n){var i=dn({},n);return i},y(e)}();function Sf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Td(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sf(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ye=function(){function e(r){C(this,e),this.id=void 0,this.topology=void 0,this.vertexCount=void 0,this.indices=void 0,this.attributes=void 0,this.userData={};var n=r.attributes,i=n===void 0?{}:n,o=r.indices,a=o===void 0?null:o,c=r.vertexCount,f=c===void 0?null:c;this.id=r.id||J("geometry"),this.topology=r.topology,a&&(this.indices=ArrayBuffer.isView(a)?{value:a,size:1}:a),this.attributes={};for(var u=0,_=Object.entries(i);u<_.length;u++){var E=W(_[u],2),p=E[0],d=E[1],h=ArrayBuffer.isView(d)?{value:d}:d;H(ArrayBuffer.isView(h.value),"".concat(this._print(p),": must be typed array or object with value as typed array")),(p==="POSITION"||p==="positions")&&!h.size&&(h.size=3),p==="indices"?(H(!this.indices),this.indices=h):this.attributes[p]=h}this.indices&&this.indices.isIndexed!==void 0&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this.vertexCount=f||this._calculateVertexCount(this.attributes,this.indices)}var t=e.prototype;return t.getVertexCount=function(){return this.vertexCount},t.getAttributes=function(){return this.indices?Td({indices:this.indices},this.attributes):this.attributes},t._print=function(n){return"Geometry ".concat(this.id," attribute ").concat(n)},t._setAttributes=function(n,i){return this},t._calculateVertexCount=function(n,i){if(i)return i.value.length;for(var o=1/0,a=0,c=Object.values(n);a<c.length;a++){var f=c[a],u=f.value,_=f.size,E=f.constant;!E&&u&&_>=1&&(o=Math.min(o,u.length/_))}return H(Number.isFinite(o)),o},y(e)}();var Of;function bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bf(Object(r),!0).forEach(function(n){l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gd(e){var t=vd();return function(){var n=b(e),i;if(t){var o=b(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L(this,i)}}function vd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Sd=ea(Of||(Of=fe([`attribute vec2 aClipSpacePosition;
|
|
278
286
|
attribute vec2 aTexCoord;
|
|
279
287
|
attribute vec2 aCoordinate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/engine",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.35",
|
|
4
4
|
"description": "WebGL2 Components for High Performance Rendering and Computation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
|
-
"@luma.gl/constants": "9.0.0-alpha.
|
|
44
|
-
"@luma.gl/core": "9.0.0-alpha.
|
|
45
|
-
"@luma.gl/shadertools": "9.0.0-alpha.
|
|
46
|
-
"@luma.gl/webgl": "9.0.0-alpha.
|
|
43
|
+
"@luma.gl/constants": "9.0.0-alpha.35",
|
|
44
|
+
"@luma.gl/core": "9.0.0-alpha.35",
|
|
45
|
+
"@luma.gl/shadertools": "9.0.0-alpha.35",
|
|
46
|
+
"@luma.gl/webgl": "9.0.0-alpha.35",
|
|
47
47
|
"@math.gl/core": "4.0.0-alpha.4",
|
|
48
48
|
"@probe.gl/log": "^4.0.2",
|
|
49
49
|
"@probe.gl/stats": "^4.0.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "5b93557731aaf1b9fd0fc1d84b5a3c7c0717298a"
|
|
52
52
|
}
|