diff --git a/remote_control_space/app.py b/remote_control_space/app.py index 2f67e38f0b53e45ce8d1fc2c5f03d23106c5e5a8..fd20968f27f37af0aaa6205e59ba09af1571330c 100644 --- a/remote_control_space/app.py +++ b/remote_control_space/app.py @@ -476,6 +476,14 @@ def webrtc_video_generator(): app = FastAPI() viz_dir = os.path.join(os.path.dirname(__file__), "dist") +if not os.path.exists(viz_dir) and os.path.exists(os.path.join(os.path.dirname(__file__), "dist.zip")): + # unzip the dist.zip file + import zipfile + zip_path = os.path.join(os.path.dirname(__file__), "dist.zip") + with zipfile.ZipFile(zip_path, 'r') as zip_ref: + zip_ref.extractall(os.path.dirname(__file__)) + viz_dir = os.path.join(os.path.dirname(__file__), "dist") + if os.path.exists(viz_dir): app.mount( "/viz", diff --git a/remote_control_space/dist/assets/index-BQQO6wv3.js b/remote_control_space/dist/assets/index-BQQO6wv3.js deleted file mode 100644 index 26cddd73f4002af9a0b7ab29b0513a7f93bded55..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/index-BQQO6wv3.js +++ /dev/null @@ -1,3950 +0,0 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();const uo="181",Gl=0,Do=1,Hl=2,el=1,Wl=2,Un=3,kn=0,tn=1,yn=2,On=0,Bi=1,No=2,Io=3,Uo=4,Xl=5,hi=100,ql=101,Yl=102,jl=103,Kl=104,Jl=200,$l=201,Zl=202,Ql=203,Ma=204,ya=205,eu=206,tu=207,nu=208,iu=209,su=210,ru=211,au=212,ou=213,cu=214,Sa=0,Ea=1,Ta=2,zi=3,wa=4,Aa=5,Ra=6,Ca=7,yr=0,lu=1,uu=2,Zn=0,hu=1,du=2,fu=3,pu=4,mu=5,xu=6,gu=7,Fo="attached",_u="detached",tl=300,Vi=301,Gi=302,Pa=303,La=304,Sr=306,fi=1e3,ln=1001,Da=1002,un=1003,vu=1004,Ds=1005,Qt=1006,Br=1007,Fn=1008,Tn=1009,nl=1010,il=1011,_s=1012,ho=1013,mi=1014,Sn=1015,Yi=1016,fo=1017,po=1018,vs=1020,sl=35902,rl=35899,al=1021,ol=1022,fn=1023,bs=1026,Ms=1027,cl=1028,mo=1029,xo=1030,go=1031,_o=1033,or=33776,cr=33777,lr=33778,ur=33779,Na=35840,Ia=35841,Ua=35842,Fa=35843,Oa=36196,Ba=37492,ka=37496,za=37808,Va=37809,Ga=37810,Ha=37811,Wa=37812,Xa=37813,qa=37814,Ya=37815,ja=37816,Ka=37817,Ja=37818,$a=37819,Za=37820,Qa=37821,eo=36492,to=36494,no=36495,io=36283,so=36284,ro=36285,ao=36286,mr=2300,oo=2301,kr=2302,Oo=2400,Bo=2401,ko=2402,bu=2500,Mu=3200,yu=3201,Er=0,Su=1,Jn="",It="srgb",Hi="srgb-linear",xr="linear",St="srgb",bi=7680,zo=519,Eu=512,Tu=513,wu=514,ll=515,Au=516,Ru=517,Cu=518,Pu=519,Vo=35044,Go="300 es",En=2e3,gr=2001;function ul(i){for(let e=i.length-1;e>=0;--e)if(i[e]>=65535)return!0;return!1}function ys(i){return document.createElementNS("http://www.w3.org/1999/xhtml",i)}function Lu(){const i=ys("canvas");return i.style.display="block",i}const Ho={};function Wo(...i){const e="THREE."+i.shift();console.log(e,...i)}function je(...i){const e="THREE."+i.shift();console.warn(e,...i)}function Tt(...i){const e="THREE."+i.shift();console.error(e,...i)}function Ss(...i){const e=i.join(" ");e in Ho||(Ho[e]=!0,je(...i))}function Du(i,e,t){return new Promise(function(n,s){function r(){switch(i.clientWaitSync(e,i.SYNC_FLUSH_COMMANDS_BIT,0)){case i.WAIT_FAILED:s();break;case i.TIMEOUT_EXPIRED:setTimeout(r,t);break;default:n()}}setTimeout(r,t)})}class ji{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){const n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){const n=this._listeners;if(n===void 0)return;const s=n[e];if(s!==void 0){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}}dispatchEvent(e){const t=this._listeners;if(t===void 0)return;const n=t[e.type];if(n!==void 0){e.target=this;const s=n.slice(0);for(let r=0,a=s.length;r>8&255]+qt[i>>16&255]+qt[i>>24&255]+"-"+qt[e&255]+qt[e>>8&255]+"-"+qt[e>>16&15|64]+qt[e>>24&255]+"-"+qt[t&63|128]+qt[t>>8&255]+"-"+qt[t>>16&255]+qt[t>>24&255]+qt[n&255]+qt[n>>8&255]+qt[n>>16&255]+qt[n>>24&255]).toLowerCase()}function ut(i,e,t){return Math.max(e,Math.min(t,i))}function vo(i,e){return(i%e+e)%e}function Nu(i,e,t,n,s){return n+(i-e)*(s-n)/(t-e)}function Iu(i,e,t){return i!==e?(t-i)/(e-i):0}function ms(i,e,t){return(1-t)*i+t*e}function Uu(i,e,t,n){return ms(i,e,1-Math.exp(-t*n))}function Fu(i,e=1){return e-Math.abs(vo(i,e*2)-e)}function Ou(i,e,t){return i<=e?0:i>=t?1:(i=(i-e)/(t-e),i*i*(3-2*i))}function Bu(i,e,t){return i<=e?0:i>=t?1:(i=(i-e)/(t-e),i*i*i*(i*(i*6-15)+10))}function ku(i,e){return i+Math.floor(Math.random()*(e-i+1))}function zu(i,e){return i+Math.random()*(e-i)}function Vu(i){return i*(.5-Math.random())}function Gu(i){i!==void 0&&(Xo=i);let e=Xo+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function Hu(i){return i*ps}function Wu(i){return i*Wi}function Xu(i){return(i&i-1)===0&&i!==0}function qu(i){return Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function Yu(i){return Math.pow(2,Math.floor(Math.log(i)/Math.LN2))}function ju(i,e,t,n,s){const r=Math.cos,a=Math.sin,o=r(t/2),l=a(t/2),c=r((e+n)/2),u=a((e+n)/2),h=r((e-n)/2),d=a((e-n)/2),p=r((n-e)/2),_=a((n-e)/2);switch(s){case"XYX":i.set(o*u,l*h,l*d,o*c);break;case"YZY":i.set(l*d,o*u,l*h,o*c);break;case"ZXZ":i.set(l*h,l*d,o*u,o*c);break;case"XZX":i.set(o*u,l*_,l*p,o*c);break;case"YXY":i.set(l*p,o*u,l*_,o*c);break;case"ZYZ":i.set(l*_,l*p,o*u,o*c);break;default:je("MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function Oi(i,e){switch(e.constructor){case Float32Array:return i;case Uint32Array:return i/4294967295;case Uint16Array:return i/65535;case Uint8Array:return i/255;case Int32Array:return Math.max(i/2147483647,-1);case Int16Array:return Math.max(i/32767,-1);case Int8Array:return Math.max(i/127,-1);default:throw new Error("Invalid component type.")}}function $t(i,e){switch(e.constructor){case Float32Array:return i;case Uint32Array:return Math.round(i*4294967295);case Uint16Array:return Math.round(i*65535);case Uint8Array:return Math.round(i*255);case Int32Array:return Math.round(i*2147483647);case Int16Array:return Math.round(i*32767);case Int8Array:return Math.round(i*127);default:throw new Error("Invalid component type.")}}const is={DEG2RAD:ps,RAD2DEG:Wi,generateUUID:ei,clamp:ut,euclideanModulo:vo,mapLinear:Nu,inverseLerp:Iu,lerp:ms,damp:Uu,pingpong:Fu,smoothstep:Ou,smootherstep:Bu,randInt:ku,randFloat:zu,randFloatSpread:Vu,seededRandom:Gu,degToRad:Hu,radToDeg:Wu,isPowerOfTwo:Xu,ceilPowerOfTwo:qu,floorPowerOfTwo:Yu,setQuaternionFromProperEuler:ju,normalize:$t,denormalize:Oi};class dt{constructor(e=0,t=0){dt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,s=e.elements;return this.x=s[0]*t+s[3]*n+s[6],this.y=s[1]*t+s[4]*n+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=ut(this.x,e.x,t.x),this.y=ut(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=ut(this.x,e,t),this.y=ut(this.y,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(ut(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(ut(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),s=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*n-a*s+e.x,this.y=r*s+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Vn{constructor(e=0,t=0,n=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=s}static slerpFlat(e,t,n,s,r,a,o){let l=n[s+0],c=n[s+1],u=n[s+2],h=n[s+3],d=r[a+0],p=r[a+1],_=r[a+2],v=r[a+3];if(o<=0){e[t+0]=l,e[t+1]=c,e[t+2]=u,e[t+3]=h;return}if(o>=1){e[t+0]=d,e[t+1]=p,e[t+2]=_,e[t+3]=v;return}if(h!==v||l!==d||c!==p||u!==_){let m=l*d+c*p+u*_+h*v;m<0&&(d=-d,p=-p,_=-_,v=-v,m=-m);let f=1-o;if(m<.9995){const C=Math.acos(m),R=Math.sin(C);f=Math.sin(f*C)/R,o=Math.sin(o*C)/R,l=l*f+d*o,c=c*f+p*o,u=u*f+_*o,h=h*f+v*o}else{l=l*f+d*o,c=c*f+p*o,u=u*f+_*o,h=h*f+v*o;const C=1/Math.sqrt(l*l+c*c+u*u+h*h);l*=C,c*=C,u*=C,h*=C}}e[t]=l,e[t+1]=c,e[t+2]=u,e[t+3]=h}static multiplyQuaternionsFlat(e,t,n,s,r,a){const o=n[s],l=n[s+1],c=n[s+2],u=n[s+3],h=r[a],d=r[a+1],p=r[a+2],_=r[a+3];return e[t]=o*_+u*h+l*p-c*d,e[t+1]=l*_+u*d+c*h-o*p,e[t+2]=c*_+u*p+o*d-l*h,e[t+3]=u*_-o*h-l*d-c*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,s){return this._x=e,this._y=t,this._z=n,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,s=e._y,r=e._z,a=e._order,o=Math.cos,l=Math.sin,c=o(n/2),u=o(s/2),h=o(r/2),d=l(n/2),p=l(s/2),_=l(r/2);switch(a){case"XYZ":this._x=d*u*h+c*p*_,this._y=c*p*h-d*u*_,this._z=c*u*_+d*p*h,this._w=c*u*h-d*p*_;break;case"YXZ":this._x=d*u*h+c*p*_,this._y=c*p*h-d*u*_,this._z=c*u*_-d*p*h,this._w=c*u*h+d*p*_;break;case"ZXY":this._x=d*u*h-c*p*_,this._y=c*p*h+d*u*_,this._z=c*u*_+d*p*h,this._w=c*u*h-d*p*_;break;case"ZYX":this._x=d*u*h-c*p*_,this._y=c*p*h+d*u*_,this._z=c*u*_-d*p*h,this._w=c*u*h+d*p*_;break;case"YZX":this._x=d*u*h+c*p*_,this._y=c*p*h+d*u*_,this._z=c*u*_-d*p*h,this._w=c*u*h-d*p*_;break;case"XZY":this._x=d*u*h-c*p*_,this._y=c*p*h-d*u*_,this._z=c*u*_+d*p*h,this._w=c*u*h+d*p*_;break;default:je("Quaternion: .setFromEuler() encountered an unknown order: "+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,s=Math.sin(n);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],s=t[4],r=t[8],a=t[1],o=t[5],l=t[9],c=t[2],u=t[6],h=t[10],d=n+o+h;if(d>0){const p=.5/Math.sqrt(d+1);this._w=.25/p,this._x=(u-l)*p,this._y=(r-c)*p,this._z=(a-s)*p}else if(n>o&&n>h){const p=2*Math.sqrt(1+n-o-h);this._w=(u-l)/p,this._x=.25*p,this._y=(s+a)/p,this._z=(r+c)/p}else if(o>h){const p=2*Math.sqrt(1+o-n-h);this._w=(r-c)/p,this._x=(s+a)/p,this._y=.25*p,this._z=(l+u)/p}else{const p=2*Math.sqrt(1+h-n-o);this._w=(a-s)/p,this._x=(r+c)/p,this._y=(l+u)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(ut(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(n===0)return this;const s=Math.min(1,t/n);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,s=e._y,r=e._z,a=e._w,o=t._x,l=t._y,c=t._z,u=t._w;return this._x=n*u+a*o+s*c-r*l,this._y=s*u+a*l+r*o-n*c,this._z=r*u+a*c+n*l-s*o,this._w=a*u-n*o-s*l-r*c,this._onChangeCallback(),this}slerp(e,t){if(t<=0)return this;if(t>=1)return this.copy(e);let n=e._x,s=e._y,r=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,s=-s,r=-r,a=-a,o=-o);let l=1-t;if(o<.9995){const c=Math.acos(o),u=Math.sin(c);l=Math.sin(l*c)/u,t=Math.sin(t*c)/u,this._x=this._x*l+n*t,this._y=this._y*l+s*t,this._z=this._z*l+r*t,this._w=this._w*l+a*t,this._onChangeCallback()}else this._x=this._x*l+n*t,this._y=this._y*l+s*t,this._z=this._z*l+r*t,this._w=this._w*l+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),s=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(s*Math.sin(e),s*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class z{constructor(e=0,t=0,n=0){z.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(qo.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(qo.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*s,this.y=r[1]*t+r[4]*n+r[7]*s,this.z=r[2]*t+r[5]*n+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,s=this.z,r=e.elements,a=1/(r[3]*t+r[7]*n+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*s+r[12])*a,this.y=(r[1]*t+r[5]*n+r[9]*s+r[13])*a,this.z=(r[2]*t+r[6]*n+r[10]*s+r[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,s=this.z,r=e.x,a=e.y,o=e.z,l=e.w,c=2*(a*s-o*n),u=2*(o*t-r*s),h=2*(r*n-a*t);return this.x=t+l*c+a*h-o*u,this.y=n+l*u+o*c-r*h,this.z=s+l*h+r*u-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*s,this.y=r[1]*t+r[5]*n+r[9]*s,this.z=r[2]*t+r[6]*n+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=ut(this.x,e.x,t.x),this.y=ut(this.y,e.y,t.y),this.z=ut(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=ut(this.x,e,t),this.y=ut(this.y,e,t),this.z=ut(this.z,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(ut(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,s=e.y,r=e.z,a=t.x,o=t.y,l=t.z;return this.x=s*l-r*o,this.y=r*a-n*l,this.z=n*o-s*a,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return zr.copy(this).projectOnVector(e),this.sub(zr)}reflect(e){return this.sub(zr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(ut(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,s=this.z-e.z;return t*t+n*n+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const s=Math.sin(t)*e;return this.x=s*Math.sin(n),this.y=Math.cos(t)*e,this.z=s*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const zr=new z,qo=new Vn;class nt{constructor(e,t,n,s,r,a,o,l,c){nt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,s,r,a,o,l,c)}set(e,t,n,s,r,a,o,l,c){const u=this.elements;return u[0]=e,u[1]=s,u[2]=o,u[3]=t,u[4]=r,u[5]=l,u[6]=n,u[7]=a,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,s=t.elements,r=this.elements,a=n[0],o=n[3],l=n[6],c=n[1],u=n[4],h=n[7],d=n[2],p=n[5],_=n[8],v=s[0],m=s[3],f=s[6],C=s[1],R=s[4],L=s[7],D=s[2],A=s[5],I=s[8];return r[0]=a*v+o*C+l*D,r[3]=a*m+o*R+l*A,r[6]=a*f+o*L+l*I,r[1]=c*v+u*C+h*D,r[4]=c*m+u*R+h*A,r[7]=c*f+u*L+h*I,r[2]=d*v+p*C+_*D,r[5]=d*m+p*R+_*A,r[8]=d*f+p*L+_*I,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],s=e[2],r=e[3],a=e[4],o=e[5],l=e[6],c=e[7],u=e[8];return t*a*u-t*o*c-n*r*u+n*o*l+s*r*c-s*a*l}invert(){const e=this.elements,t=e[0],n=e[1],s=e[2],r=e[3],a=e[4],o=e[5],l=e[6],c=e[7],u=e[8],h=u*a-o*c,d=o*l-u*r,p=c*r-a*l,_=t*h+n*d+s*p;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/_;return e[0]=h*v,e[1]=(s*c-u*n)*v,e[2]=(o*n-s*a)*v,e[3]=d*v,e[4]=(u*t-s*l)*v,e[5]=(s*r-o*t)*v,e[6]=p*v,e[7]=(n*l-c*t)*v,e[8]=(a*t-n*r)*v,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,s,r,a,o){const l=Math.cos(r),c=Math.sin(r);return this.set(n*l,n*c,-n*(l*a+c*o)+a+e,-s*c,s*l,-s*(-c*a+l*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Vr.makeScale(e,t)),this}rotate(e){return this.premultiply(Vr.makeRotation(-e)),this}translate(e,t){return this.premultiply(Vr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let s=0;s<9;s++)if(t[s]!==n[s])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Vr=new nt,Yo=new nt().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),jo=new nt().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Ku(){const i={enabled:!0,workingColorSpace:Hi,spaces:{},convert:function(s,r,a){return this.enabled===!1||r===a||!r||!a||(this.spaces[r].transfer===St&&(s.r=Bn(s.r),s.g=Bn(s.g),s.b=Bn(s.b)),this.spaces[r].primaries!==this.spaces[a].primaries&&(s.applyMatrix3(this.spaces[r].toXYZ),s.applyMatrix3(this.spaces[a].fromXYZ)),this.spaces[a].transfer===St&&(s.r=ki(s.r),s.g=ki(s.g),s.b=ki(s.b))),s},workingToColorSpace:function(s,r){return this.convert(s,this.workingColorSpace,r)},colorSpaceToWorking:function(s,r){return this.convert(s,r,this.workingColorSpace)},getPrimaries:function(s){return this.spaces[s].primaries},getTransfer:function(s){return s===Jn?xr:this.spaces[s].transfer},getToneMappingMode:function(s){return this.spaces[s].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(s,r=this.workingColorSpace){return s.fromArray(this.spaces[r].luminanceCoefficients)},define:function(s){Object.assign(this.spaces,s)},_getMatrix:function(s,r,a){return s.copy(this.spaces[r].toXYZ).multiply(this.spaces[a].fromXYZ)},_getDrawingBufferColorSpace:function(s){return this.spaces[s].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(s=this.workingColorSpace){return this.spaces[s].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(s,r){return Ss("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),i.workingToColorSpace(s,r)},toWorkingColorSpace:function(s,r){return Ss("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),i.colorSpaceToWorking(s,r)}},e=[.64,.33,.3,.6,.15,.06],t=[.2126,.7152,.0722],n=[.3127,.329];return i.define({[Hi]:{primaries:e,whitePoint:n,transfer:xr,toXYZ:Yo,fromXYZ:jo,luminanceCoefficients:t,workingColorSpaceConfig:{unpackColorSpace:It},outputColorSpaceConfig:{drawingBufferColorSpace:It}},[It]:{primaries:e,whitePoint:n,transfer:St,toXYZ:Yo,fromXYZ:jo,luminanceCoefficients:t,outputColorSpaceConfig:{drawingBufferColorSpace:It}}}),i}const ht=Ku();function Bn(i){return i<.04045?i*.0773993808:Math.pow(i*.9478672986+.0521327014,2.4)}function ki(i){return i<.0031308?i*12.92:1.055*Math.pow(i,.41666)-.055}let Mi;class Ju{static getDataURL(e,t="image/png"){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Mi===void 0&&(Mi=ys("canvas")),Mi.width=e.width,Mi.height=e.height;const s=Mi.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),n=Mi}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=ys("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const s=n.getImageData(0,0,e.width,e.height),r=s.data;for(let a=0;a1),this.pmremVersion=0}get width(){return this.source.getSize(Hr).x}get height(){return this.source.getSize(Hr).y}get depth(){return this.source.getSize(Hr).z}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(const t in e){const n=e[t];if(n===void 0){je(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){je(`Texture.setValues(): property '${t}' does not exist.`);continue}s&&n&&s.isVector2&&n.isVector2||s&&n&&s.isVector3&&n.isVector3||s&&n&&s.isMatrix3&&n.isMatrix3?s.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const n={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==tl)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case fi:e.x=e.x-Math.floor(e.x);break;case ln:e.x=e.x<0?0:1;break;case Da:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case fi:e.y=e.y-Math.floor(e.y);break;case ln:e.y=e.y<0?0:1;break;case Da:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}Kt.DEFAULT_IMAGE=null;Kt.DEFAULT_MAPPING=tl;Kt.DEFAULT_ANISOTROPY=1;class vt{constructor(e=0,t=0,n=0,s=1){vt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,s){return this.x=e,this.y=t,this.z=n,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,s=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*s+a[12]*r,this.y=a[1]*t+a[5]*n+a[9]*s+a[13]*r,this.z=a[2]*t+a[6]*n+a[10]*s+a[14]*r,this.w=a[3]*t+a[7]*n+a[11]*s+a[15]*r,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,s,r;const l=e.elements,c=l[0],u=l[4],h=l[8],d=l[1],p=l[5],_=l[9],v=l[2],m=l[6],f=l[10];if(Math.abs(u-d)<.01&&Math.abs(h-v)<.01&&Math.abs(_-m)<.01){if(Math.abs(u+d)<.1&&Math.abs(h+v)<.1&&Math.abs(_+m)<.1&&Math.abs(c+p+f-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const R=(c+1)/2,L=(p+1)/2,D=(f+1)/2,A=(u+d)/4,I=(h+v)/4,U=(_+m)/4;return R>L&&R>D?R<.01?(n=0,s=.707106781,r=.707106781):(n=Math.sqrt(R),s=A/n,r=I/n):L>D?L<.01?(n=.707106781,s=0,r=.707106781):(s=Math.sqrt(L),n=A/s,r=U/s):D<.01?(n=.707106781,s=.707106781,r=0):(r=Math.sqrt(D),n=I/r,s=U/r),this.set(n,s,r,t),this}let C=Math.sqrt((m-_)*(m-_)+(h-v)*(h-v)+(d-u)*(d-u));return Math.abs(C)<.001&&(C=1),this.x=(m-_)/C,this.y=(h-v)/C,this.z=(d-u)/C,this.w=Math.acos((c+p+f-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=ut(this.x,e.x,t.x),this.y=ut(this.y,e.y,t.y),this.z=ut(this.z,e.z,t.z),this.w=ut(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=ut(this.x,e,t),this.y=ut(this.y,e,t),this.z=ut(this.z,e,t),this.w=ut(this.w,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(ut(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Qu extends ji{constructor(e=1,t=1,n={}){super(),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Qt,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},n),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=n.depth,this.scissor=new vt(0,0,e,t),this.scissorTest=!1,this.viewport=new vt(0,0,e,t);const s={width:e,height:t,depth:n.depth},r=new Kt(s);this.textures=[];const a=n.count;for(let o=0;o1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,pn),pn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ss),Is.subVectors(this.max,ss),yi.subVectors(e.a,ss),Si.subVectors(e.b,ss),Ei.subVectors(e.c,ss),Hn.subVectors(Si,yi),Wn.subVectors(Ei,Si),ii.subVectors(yi,Ei);let t=[0,-Hn.z,Hn.y,0,-Wn.z,Wn.y,0,-ii.z,ii.y,Hn.z,0,-Hn.x,Wn.z,0,-Wn.x,ii.z,0,-ii.x,-Hn.y,Hn.x,0,-Wn.y,Wn.x,0,-ii.y,ii.x,0];return!Wr(t,yi,Si,Ei,Is)||(t=[1,0,0,0,1,0,0,0,1],!Wr(t,yi,Si,Ei,Is))?!1:(Us.crossVectors(Hn,Wn),t=[Us.x,Us.y,Us.z],Wr(t,yi,Si,Ei,Is))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,pn).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(pn).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Rn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Rn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Rn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Rn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Rn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Rn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Rn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Rn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Rn),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}}const Rn=[new z,new z,new z,new z,new z,new z,new z,new z],pn=new z,Ns=new gi,yi=new z,Si=new z,Ei=new z,Hn=new z,Wn=new z,ii=new z,ss=new z,Is=new z,Us=new z,si=new z;function Wr(i,e,t,n,s){for(let r=0,a=i.length-3;r<=a;r+=3){si.fromArray(i,r);const o=s.x*Math.abs(si.x)+s.y*Math.abs(si.y)+s.z*Math.abs(si.z),l=e.dot(si),c=t.dot(si),u=n.dot(si);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>o)return!1}return!0}const th=new gi,rs=new z,Xr=new z;class Ki{constructor(e=new z,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;t!==void 0?n.copy(t):th.setFromPoints(e).getCenter(n);let s=0;for(let r=0,a=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;rs.subVectors(e,this.center);const t=rs.lengthSq();if(t>this.radius*this.radius){const n=Math.sqrt(t),s=(n-this.radius)*.5;this.center.addScaledVector(rs,s/n),this.radius+=s}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Xr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(rs.copy(e.center).add(Xr)),this.expandByPoint(rs.copy(e.center).sub(Xr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}}const Cn=new z,qr=new z,Fs=new z,Xn=new z,Yr=new z,Os=new z,jr=new z;class Mo{constructor(e=new z,t=new z(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Cn)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Cn.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Cn.copy(this.origin).addScaledVector(this.direction,t),Cn.distanceToSquared(e))}distanceSqToSegment(e,t,n,s){qr.copy(e).add(t).multiplyScalar(.5),Fs.copy(t).sub(e).normalize(),Xn.copy(this.origin).sub(qr);const r=e.distanceTo(t)*.5,a=-this.direction.dot(Fs),o=Xn.dot(this.direction),l=-Xn.dot(Fs),c=Xn.lengthSq(),u=Math.abs(1-a*a);let h,d,p,_;if(u>0)if(h=a*l-o,d=a*o-l,_=r*u,h>=0)if(d>=-_)if(d<=_){const v=1/u;h*=v,d*=v,p=h*(h+a*d+2*o)+d*(a*h+d+2*l)+c}else d=r,h=Math.max(0,-(a*d+o)),p=-h*h+d*(d+2*l)+c;else d=-r,h=Math.max(0,-(a*d+o)),p=-h*h+d*(d+2*l)+c;else d<=-_?(h=Math.max(0,-(-a*r+o)),d=h>0?-r:Math.min(Math.max(-r,-l),r),p=-h*h+d*(d+2*l)+c):d<=_?(h=0,d=Math.min(Math.max(-r,-l),r),p=d*(d+2*l)+c):(h=Math.max(0,-(a*r+o)),d=h>0?r:Math.min(Math.max(-r,-l),r),p=-h*h+d*(d+2*l)+c);else d=a>0?-r:r,h=Math.max(0,-(a*d+o)),p=-h*h+d*(d+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,h),s&&s.copy(qr).addScaledVector(Fs,d),p}intersectSphere(e,t){Cn.subVectors(e.center,this.origin);const n=Cn.dot(this.direction),s=Cn.dot(Cn)-n*n,r=e.radius*e.radius;if(s>r)return null;const a=Math.sqrt(r-s),o=n-a,l=n+a;return l<0?null:o<0?this.at(l,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,s,r,a,o,l;const c=1/this.direction.x,u=1/this.direction.y,h=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,s=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,s=(e.min.x-d.x)*c),u>=0?(r=(e.min.y-d.y)*u,a=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,a=(e.min.y-d.y)*u),n>a||r>s||((r>n||isNaN(n))&&(n=r),(a=0?(o=(e.min.z-d.z)*h,l=(e.max.z-d.z)*h):(o=(e.max.z-d.z)*h,l=(e.min.z-d.z)*h),n>l||o>s)||((o>n||n!==n)&&(n=o),(l=0?n:s,t)}intersectsBox(e){return this.intersectBox(e,Cn)!==null}intersectTriangle(e,t,n,s,r){Yr.subVectors(t,e),Os.subVectors(n,e),jr.crossVectors(Yr,Os);let a=this.direction.dot(jr),o;if(a>0){if(s)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Xn.subVectors(this.origin,e);const l=o*this.direction.dot(Os.crossVectors(Xn,Os));if(l<0)return null;const c=o*this.direction.dot(Yr.cross(Xn));if(c<0||l+c>a)return null;const u=-o*Xn.dot(jr);return u<0?null:this.at(u/a,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class et{constructor(e,t,n,s,r,a,o,l,c,u,h,d,p,_,v,m){et.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,s,r,a,o,l,c,u,h,d,p,_,v,m)}set(e,t,n,s,r,a,o,l,c,u,h,d,p,_,v,m){const f=this.elements;return f[0]=e,f[4]=t,f[8]=n,f[12]=s,f[1]=r,f[5]=a,f[9]=o,f[13]=l,f[2]=c,f[6]=u,f[10]=h,f[14]=d,f[3]=p,f[7]=_,f[11]=v,f[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new et().fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,s=1/Ti.setFromMatrixColumn(e,0).length(),r=1/Ti.setFromMatrixColumn(e,1).length(),a=1/Ti.setFromMatrixColumn(e,2).length();return t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,s=e.y,r=e.z,a=Math.cos(n),o=Math.sin(n),l=Math.cos(s),c=Math.sin(s),u=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const d=a*u,p=a*h,_=o*u,v=o*h;t[0]=l*u,t[4]=-l*h,t[8]=c,t[1]=p+_*c,t[5]=d-v*c,t[9]=-o*l,t[2]=v-d*c,t[6]=_+p*c,t[10]=a*l}else if(e.order==="YXZ"){const d=l*u,p=l*h,_=c*u,v=c*h;t[0]=d+v*o,t[4]=_*o-p,t[8]=a*c,t[1]=a*h,t[5]=a*u,t[9]=-o,t[2]=p*o-_,t[6]=v+d*o,t[10]=a*l}else if(e.order==="ZXY"){const d=l*u,p=l*h,_=c*u,v=c*h;t[0]=d-v*o,t[4]=-a*h,t[8]=_+p*o,t[1]=p+_*o,t[5]=a*u,t[9]=v-d*o,t[2]=-a*c,t[6]=o,t[10]=a*l}else if(e.order==="ZYX"){const d=a*u,p=a*h,_=o*u,v=o*h;t[0]=l*u,t[4]=_*c-p,t[8]=d*c+v,t[1]=l*h,t[5]=v*c+d,t[9]=p*c-_,t[2]=-c,t[6]=o*l,t[10]=a*l}else if(e.order==="YZX"){const d=a*l,p=a*c,_=o*l,v=o*c;t[0]=l*u,t[4]=v-d*h,t[8]=_*h+p,t[1]=h,t[5]=a*u,t[9]=-o*u,t[2]=-c*u,t[6]=p*h+_,t[10]=d-v*h}else if(e.order==="XZY"){const d=a*l,p=a*c,_=o*l,v=o*c;t[0]=l*u,t[4]=-h,t[8]=c*u,t[1]=d*h+v,t[5]=a*u,t[9]=p*h-_,t[2]=_*h-p,t[6]=o*u,t[10]=v*h+d}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(nh,e,ih)}lookAt(e,t,n){const s=this.elements;return on.subVectors(e,t),on.lengthSq()===0&&(on.z=1),on.normalize(),qn.crossVectors(n,on),qn.lengthSq()===0&&(Math.abs(n.z)===1?on.x+=1e-4:on.z+=1e-4,on.normalize(),qn.crossVectors(n,on)),qn.normalize(),Bs.crossVectors(on,qn),s[0]=qn.x,s[4]=Bs.x,s[8]=on.x,s[1]=qn.y,s[5]=Bs.y,s[9]=on.y,s[2]=qn.z,s[6]=Bs.z,s[10]=on.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,s=t.elements,r=this.elements,a=n[0],o=n[4],l=n[8],c=n[12],u=n[1],h=n[5],d=n[9],p=n[13],_=n[2],v=n[6],m=n[10],f=n[14],C=n[3],R=n[7],L=n[11],D=n[15],A=s[0],I=s[4],U=s[8],M=s[12],y=s[1],N=s[5],O=s[9],W=s[13],K=s[2],Z=s[6],k=s[10],se=s[14],q=s[3],ie=s[7],oe=s[11],pe=s[15];return r[0]=a*A+o*y+l*K+c*q,r[4]=a*I+o*N+l*Z+c*ie,r[8]=a*U+o*O+l*k+c*oe,r[12]=a*M+o*W+l*se+c*pe,r[1]=u*A+h*y+d*K+p*q,r[5]=u*I+h*N+d*Z+p*ie,r[9]=u*U+h*O+d*k+p*oe,r[13]=u*M+h*W+d*se+p*pe,r[2]=_*A+v*y+m*K+f*q,r[6]=_*I+v*N+m*Z+f*ie,r[10]=_*U+v*O+m*k+f*oe,r[14]=_*M+v*W+m*se+f*pe,r[3]=C*A+R*y+L*K+D*q,r[7]=C*I+R*N+L*Z+D*ie,r[11]=C*U+R*O+L*k+D*oe,r[15]=C*M+R*W+L*se+D*pe,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],s=e[8],r=e[12],a=e[1],o=e[5],l=e[9],c=e[13],u=e[2],h=e[6],d=e[10],p=e[14],_=e[3],v=e[7],m=e[11],f=e[15];return _*(+r*l*h-s*c*h-r*o*d+n*c*d+s*o*p-n*l*p)+v*(+t*l*p-t*c*d+r*a*d-s*a*p+s*c*u-r*l*u)+m*(+t*c*h-t*o*p-r*a*h+n*a*p+r*o*u-n*c*u)+f*(-s*o*u-t*l*h+t*o*d+s*a*h-n*a*d+n*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],s=e[2],r=e[3],a=e[4],o=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],p=e[11],_=e[12],v=e[13],m=e[14],f=e[15],C=h*m*c-v*d*c+v*l*p-o*m*p-h*l*f+o*d*f,R=_*d*c-u*m*c-_*l*p+a*m*p+u*l*f-a*d*f,L=u*v*c-_*h*c+_*o*p-a*v*p-u*o*f+a*h*f,D=_*h*l-u*v*l-_*o*d+a*v*d+u*o*m-a*h*m,A=t*C+n*R+s*L+r*D;if(A===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const I=1/A;return e[0]=C*I,e[1]=(v*d*r-h*m*r-v*s*p+n*m*p+h*s*f-n*d*f)*I,e[2]=(o*m*r-v*l*r+v*s*c-n*m*c-o*s*f+n*l*f)*I,e[3]=(h*l*r-o*d*r-h*s*c+n*d*c+o*s*p-n*l*p)*I,e[4]=R*I,e[5]=(u*m*r-_*d*r+_*s*p-t*m*p-u*s*f+t*d*f)*I,e[6]=(_*l*r-a*m*r-_*s*c+t*m*c+a*s*f-t*l*f)*I,e[7]=(a*d*r-u*l*r+u*s*c-t*d*c-a*s*p+t*l*p)*I,e[8]=L*I,e[9]=(_*h*r-u*v*r-_*n*p+t*v*p+u*n*f-t*h*f)*I,e[10]=(a*v*r-_*o*r+_*n*c-t*v*c-a*n*f+t*o*f)*I,e[11]=(u*o*r-a*h*r-u*n*c+t*h*c+a*n*p-t*o*p)*I,e[12]=D*I,e[13]=(u*v*s-_*h*s+_*n*d-t*v*d-u*n*m+t*h*m)*I,e[14]=(_*o*s-a*v*s-_*n*l+t*v*l+a*n*m-t*o*m)*I,e[15]=(a*h*s-u*o*s+u*n*l-t*h*l-a*n*d+t*o*d)*I,this}scale(e){const t=this.elements,n=e.x,s=e.y,r=e.z;return t[0]*=n,t[4]*=s,t[8]*=r,t[1]*=n,t[5]*=s,t[9]*=r,t[2]*=n,t[6]*=s,t[10]*=r,t[3]*=n,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,s))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),s=Math.sin(t),r=1-n,a=e.x,o=e.y,l=e.z,c=r*a,u=r*o;return this.set(c*a+n,c*o-s*l,c*l+s*o,0,c*o+s*l,u*o+n,u*l-s*a,0,c*l-s*o,u*l+s*a,r*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,s,r,a){return this.set(1,n,r,0,e,1,a,0,t,s,1,0,0,0,0,1),this}compose(e,t,n){const s=this.elements,r=t._x,a=t._y,o=t._z,l=t._w,c=r+r,u=a+a,h=o+o,d=r*c,p=r*u,_=r*h,v=a*u,m=a*h,f=o*h,C=l*c,R=l*u,L=l*h,D=n.x,A=n.y,I=n.z;return s[0]=(1-(v+f))*D,s[1]=(p+L)*D,s[2]=(_-R)*D,s[3]=0,s[4]=(p-L)*A,s[5]=(1-(d+f))*A,s[6]=(m+C)*A,s[7]=0,s[8]=(_+R)*I,s[9]=(m-C)*I,s[10]=(1-(d+v))*I,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,n){const s=this.elements;let r=Ti.set(s[0],s[1],s[2]).length();const a=Ti.set(s[4],s[5],s[6]).length(),o=Ti.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],mn.copy(this);const c=1/r,u=1/a,h=1/o;return mn.elements[0]*=c,mn.elements[1]*=c,mn.elements[2]*=c,mn.elements[4]*=u,mn.elements[5]*=u,mn.elements[6]*=u,mn.elements[8]*=h,mn.elements[9]*=h,mn.elements[10]*=h,t.setFromRotationMatrix(mn),n.x=r,n.y=a,n.z=o,this}makePerspective(e,t,n,s,r,a,o=En,l=!1){const c=this.elements,u=2*r/(t-e),h=2*r/(n-s),d=(t+e)/(t-e),p=(n+s)/(n-s);let _,v;if(l)_=r/(a-r),v=a*r/(a-r);else if(o===En)_=-(a+r)/(a-r),v=-2*a*r/(a-r);else if(o===gr)_=-a/(a-r),v=-a*r/(a-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return c[0]=u,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=h,c[9]=p,c[13]=0,c[2]=0,c[6]=0,c[10]=_,c[14]=v,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,s,r,a,o=En,l=!1){const c=this.elements,u=2/(t-e),h=2/(n-s),d=-(t+e)/(t-e),p=-(n+s)/(n-s);let _,v;if(l)_=1/(a-r),v=a/(a-r);else if(o===En)_=-2/(a-r),v=-(a+r)/(a-r);else if(o===gr)_=-1/(a-r),v=-r/(a-r);else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return c[0]=u,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=h,c[9]=0,c[13]=p,c[2]=0,c[6]=0,c[10]=_,c[14]=v,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let s=0;s<16;s++)if(t[s]!==n[s])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Ti=new z,mn=new et,nh=new z(0,0,0),ih=new z(1,1,1),qn=new z,Bs=new z,on=new z,Ko=new et,Jo=new Vn;class nn{constructor(e=0,t=0,n=0,s=nn.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,s=this._order){return this._x=e,this._y=t,this._z=n,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const s=e.elements,r=s[0],a=s[4],o=s[8],l=s[1],c=s[5],u=s[9],h=s[2],d=s[6],p=s[10];switch(t){case"XYZ":this._y=Math.asin(ut(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,p),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-ut(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(o,p),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(ut(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,p),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-ut(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,p),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(ut(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(o,p));break;case"XZY":this._z=Math.asin(-ut(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,r)):(this._x=Math.atan2(-u,p),this._y=0);break;default:je("Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Ko.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Ko,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Jo.setFromEuler(this),this.setFromQuaternion(Jo,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}nn.DEFAULT_ORDER="XYZ";class dl{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let n=0;n0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.geometryInfo=this._geometryInfo.map(o=>({...o,boundingBox:o.boundingBox?o.boundingBox.toJSON():void 0,boundingSphere:o.boundingSphere?o.boundingSphere.toJSON():void 0})),s.instanceInfo=this._instanceInfo.map(o=>({...o})),s.availableInstanceIds=this._availableInstanceIds.slice(),s.availableGeometryIds=this._availableGeometryIds.slice(),s.nextIndexStart=this._nextIndexStart,s.nextVertexStart=this._nextVertexStart,s.geometryCount=this._geometryCount,s.maxInstanceCount=this._maxInstanceCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.matricesTexture=this._matricesTexture.toJSON(e),s.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(s.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(s.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(s.boundingBox=this.boundingBox.toJSON()));function r(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const l=o.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c0){s.children=[];for(let o=0;o0){s.animations=[];for(let o=0;o0&&(n.geometries=o),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),u.length>0&&(n.images=u),h.length>0&&(n.shapes=h),d.length>0&&(n.skeletons=d),p.length>0&&(n.animations=p),_.length>0&&(n.nodes=_)}return n.object=s,n;function a(o){const l=[];for(const c in o){const u=o[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let n=0;n0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,n,s,r){xn.subVectors(s,t),Ln.subVectors(n,t),Jr.subVectors(e,t);const a=xn.dot(xn),o=xn.dot(Ln),l=xn.dot(Jr),c=Ln.dot(Ln),u=Ln.dot(Jr),h=a*c-o*o;if(h===0)return r.set(0,0,0),null;const d=1/h,p=(c*l-o*u)*d,_=(a*u-o*l)*d;return r.set(1-p-_,_,p)}static containsPoint(e,t,n,s){return this.getBarycoord(e,t,n,s,Dn)===null?!1:Dn.x>=0&&Dn.y>=0&&Dn.x+Dn.y<=1}static getInterpolation(e,t,n,s,r,a,o,l){return this.getBarycoord(e,t,n,s,Dn)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(r,Dn.x),l.addScaledVector(a,Dn.y),l.addScaledVector(o,Dn.z),l)}static getInterpolatedAttribute(e,t,n,s,r,a){return ea.setScalar(0),ta.setScalar(0),na.setScalar(0),ea.fromBufferAttribute(e,t),ta.fromBufferAttribute(e,n),na.fromBufferAttribute(e,s),a.setScalar(0),a.addScaledVector(ea,r.x),a.addScaledVector(ta,r.y),a.addScaledVector(na,r.z),a}static isFrontFacing(e,t,n,s){return xn.subVectors(n,t),Ln.subVectors(e,t),xn.cross(Ln).dot(s)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,s){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,n,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,s),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return xn.subVectors(this.c,this.b),Ln.subVectors(this.a,this.b),xn.cross(Ln).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return _n.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return _n.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,s,r){return _n.getInterpolation(e,this.a,this.b,this.c,t,n,s,r)}containsPoint(e){return _n.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return _n.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,s=this.b,r=this.c;let a,o;Ri.subVectors(s,n),Ci.subVectors(r,n),$r.subVectors(e,n);const l=Ri.dot($r),c=Ci.dot($r);if(l<=0&&c<=0)return t.copy(n);Zr.subVectors(e,s);const u=Ri.dot(Zr),h=Ci.dot(Zr);if(u>=0&&h<=u)return t.copy(s);const d=l*h-u*c;if(d<=0&&l>=0&&u<=0)return a=l/(l-u),t.copy(n).addScaledVector(Ri,a);Qr.subVectors(e,r);const p=Ri.dot(Qr),_=Ci.dot(Qr);if(_>=0&&p<=_)return t.copy(r);const v=p*c-l*_;if(v<=0&&c>=0&&_<=0)return o=c/(c-_),t.copy(n).addScaledVector(Ci,o);const m=u*_-p*h;if(m<=0&&h-u>=0&&p-_>=0)return nc.subVectors(r,s),o=(h-u)/(h-u+(p-_)),t.copy(s).addScaledVector(nc,o);const f=1/(m+v+d);return a=v*f,o=d*f,t.copy(n).addScaledVector(Ri,a).addScaledVector(Ci,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const fl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Yn={h:0,s:0,l:0},zs={h:0,s:0,l:0};function ia(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*6*(2/3-t):i}class tt{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=It){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,ht.colorSpaceToWorking(this,t),this}setRGB(e,t,n,s=ht.workingColorSpace){return this.r=e,this.g=t,this.b=n,ht.colorSpaceToWorking(this,s),this}setHSL(e,t,n,s=ht.workingColorSpace){if(e=vo(e,1),t=ut(t,0,1),n=ut(n,0,1),t===0)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,a=2*n-r;this.r=ia(a,r,e+1/3),this.g=ia(a,r,e),this.b=ia(a,r,e-1/3)}return ht.colorSpaceToWorking(this,s),this}setStyle(e,t=It){function n(r){r!==void 0&&parseFloat(r)<1&&je("Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const a=s[1],o=s[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:je("Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[1],a=r.length;if(a===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(a===6)return this.setHex(parseInt(r,16),t);je("Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=It){const n=fl[e.toLowerCase()];return n!==void 0?this.setHex(n,t):je("Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Bn(e.r),this.g=Bn(e.g),this.b=Bn(e.b),this}copyLinearToSRGB(e){return this.r=ki(e.r),this.g=ki(e.g),this.b=ki(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=It){return ht.workingToColorSpace(Yt.copy(this),e),Math.round(ut(Yt.r*255,0,255))*65536+Math.round(ut(Yt.g*255,0,255))*256+Math.round(ut(Yt.b*255,0,255))}getHexString(e=It){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=ht.workingColorSpace){ht.workingToColorSpace(Yt.copy(this),t);const n=Yt.r,s=Yt.g,r=Yt.b,a=Math.max(n,s,r),o=Math.min(n,s,r);let l,c;const u=(o+a)/2;if(o===a)l=0,c=0;else{const h=a-o;switch(c=u<=.5?h/(a+o):h/(2-a-o),a){case n:l=(s-r)/h+(s0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const n=e[t];if(n===void 0){je(`Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){je(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(n):s&&s.isVector3&&n&&n.isVector3?s.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const n={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==Bi&&(n.blending=this.blending),this.side!==kn&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==Ma&&(n.blendSrc=this.blendSrc),this.blendDst!==ya&&(n.blendDst=this.blendDst),this.blendEquation!==hi&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==zi&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==zo&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==bi&&(n.stencilFail=this.stencilFail),this.stencilZFail!==bi&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==bi&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function s(r){const a=[];for(const o in r){const l=r[o];delete l.metadata,a.push(l)}return a}if(t){const r=s(e.textures),a=s(e.images);r.length>0&&(n.textures=r),a.length>0&&(n.images=a)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(t!==null){const s=t.length;n=new Array(s);for(let r=0;r!==s;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class _r extends ti{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new tt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new nn,this.combine=yr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Ot=new z,Vs=new dt;let lh=0;class hn{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:lh++}),this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=Vo,this.updateRanges=[],this.gpuType=Sn,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let s=0,r=this.itemSize;st.count&&je("BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new gi);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){Tt("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new z(-1/0,-1/0,-1/0),new z(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let n=0,s=t.length;n0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const c=n[l];e.data.attributes[l]=c.toJSON(e.data)}const s={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let h=0,d=c.length;h0&&(s[l]=u,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;n!==null&&this.setIndex(n.clone());const s=e.attributes;for(const c in s){const u=s[c];this.setAttribute(c,u.clone(t))}const r=e.morphAttributes;for(const c in r){const u=[],h=r[c];for(let d=0,p=h.length;d0){const s=t[n[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,a=s.length;r(e.far-e.near)**2))&&(ic.copy(r).invert(),ri.copy(e.ray).applyMatrix4(ic),!(n.boundingBox!==null&&ri.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,ri)))}_computeIntersections(e,t,n){let s;const r=this.geometry,a=this.material,o=r.index,l=r.attributes.position,c=r.attributes.uv,u=r.attributes.uv1,h=r.attributes.normal,d=r.groups,p=r.drawRange;if(o!==null)if(Array.isArray(a))for(let _=0,v=d.length;_t.far?null:{distance:c,point:Ys.clone(),object:i}}function js(i,e,t,n,s,r,a,o,l,c){i.getVertexPosition(o,Hs),i.getVertexPosition(l,Ws),i.getVertexPosition(c,Xs);const u=hh(i,e,t,n,Hs,Ws,Xs,rc);if(u){const h=new z;_n.getBarycoord(rc,Hs,Ws,Xs,h),s&&(u.uv=_n.getInterpolatedAttribute(s,o,l,c,h,new dt)),r&&(u.uv1=_n.getInterpolatedAttribute(r,o,l,c,h,new dt)),a&&(u.normal=_n.getInterpolatedAttribute(a,o,l,c,h,new z),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));const d={a:o,b:l,c,normal:new z,materialIndex:0};_n.getNormal(Hs,Ws,Xs,d.normal),u.face=d,u.barycoord=h}return u}class Ji extends sn{constructor(e=1,t=1,n=1,s=1,r=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:s,heightSegments:r,depthSegments:a};const o=this;s=Math.floor(s),r=Math.floor(r),a=Math.floor(a);const l=[],c=[],u=[],h=[];let d=0,p=0;_("z","y","x",-1,-1,n,t,e,a,r,0),_("z","y","x",1,-1,n,t,-e,a,r,1),_("x","z","y",1,1,e,n,t,s,a,2),_("x","z","y",1,-1,e,n,-t,s,a,3),_("x","y","z",1,-1,e,t,n,s,r,4),_("x","y","z",-1,-1,e,t,-n,s,r,5),this.setIndex(l),this.setAttribute("position",new Dt(c,3)),this.setAttribute("normal",new Dt(u,3)),this.setAttribute("uv",new Dt(h,2));function _(v,m,f,C,R,L,D,A,I,U,M){const y=L/I,N=D/U,O=L/2,W=D/2,K=A/2,Z=I+1,k=U+1;let se=0,q=0;const ie=new z;for(let oe=0;oe0?1:-1,u.push(ie.x,ie.y,ie.z),h.push(Le/I),h.push(1-oe/U),se+=1}}for(let oe=0;oe0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const s in this.extensions)this.extensions[s]===!0&&(n[s]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class gl extends Ut{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new et,this.projectionMatrix=new et,this.projectionMatrixInverse=new et,this.coordinateSystem=En,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const jn=new z,ac=new dt,oc=new dt;class jt extends gl{constructor(e=50,t=1,n=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=s,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Wi*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(ps*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Wi*2*Math.atan(Math.tan(ps*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){jn.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(jn.x,jn.y).multiplyScalar(-e/jn.z),jn.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(jn.x,jn.y).multiplyScalar(-e/jn.z)}getViewSize(e,t){return this.getViewBounds(e,ac,oc),t.subVectors(oc,ac)}setViewOffset(e,t,n,s,r,a){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=s,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(ps*.5*this.fov)/this.zoom,n=2*t,s=this.aspect*n,r=-.5*s;const a=this.view;if(this.view!==null&&this.view.enabled){const l=a.fullWidth,c=a.fullHeight;r+=a.offsetX*s/l,t-=a.offsetY*n/c,s*=a.width/l,n*=a.height/c}const o=this.filmOffset;o!==0&&(r+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Li=-90,Di=1;class xh extends Ut{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new jt(Li,Di,e,t);s.layers=this.layers,this.add(s);const r=new jt(Li,Di,e,t);r.layers=this.layers,this.add(r);const a=new jt(Li,Di,e,t);a.layers=this.layers,this.add(a);const o=new jt(Li,Di,e,t);o.layers=this.layers,this.add(o);const l=new jt(Li,Di,e,t);l.layers=this.layers,this.add(l);const c=new jt(Li,Di,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,s,r,a,o,l]=t;for(const c of t)this.remove(c);if(e===En)n.up.set(0,1,0),n.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===gr)n.up.set(0,-1,0),n.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of t)this.add(c),c.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,a,o,l,c,u]=this.children,h=e.getRenderTarget(),d=e.getActiveCubeFace(),p=e.getActiveMipmapLevel(),_=e.xr.enabled;e.xr.enabled=!1;const v=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,s),e.render(t,r),e.setRenderTarget(n,1,s),e.render(t,a),e.setRenderTarget(n,2,s),e.render(t,o),e.setRenderTarget(n,3,s),e.render(t,l),e.setRenderTarget(n,4,s),e.render(t,c),n.texture.generateMipmaps=v,e.setRenderTarget(n,5,s),e.render(t,u),e.setRenderTarget(h,d,p),e.xr.enabled=_,n.texture.needsPMREMUpdate=!0}}class _l extends Kt{constructor(e=[],t=Vi,n,s,r,a,o,l,c,u){super(e,t,n,s,r,a,o,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class gh extends xi{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},s=[n,n,n,n,n,n];this.texture=new _l(s),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:` - - varying vec3 vWorldDirection; - - vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); - - } - - void main() { - - vWorldDirection = transformDirection( position, modelMatrix ); - - #include - #include - - } - `,fragmentShader:` - - uniform sampler2D tEquirect; - - varying vec3 vWorldDirection; - - #include - - void main() { - - vec3 direction = normalize( vWorldDirection ); - - vec2 sampleUV = equirectUv( direction ); - - gl_FragColor = texture2D( tEquirect, sampleUV ); - - } - `},s=new Ji(5,5,5),r=new zn({name:"CubemapFromEquirect",uniforms:Xi(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:tn,blending:On});r.uniforms.tEquirect.value=t;const a=new Xt(s,r),o=t.minFilter;return t.minFilter===Fn&&(t.minFilter=Qt),new xh(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,s=!0){const r=e.getRenderTarget();for(let a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,s);e.setRenderTarget(r)}}class pi extends Ut{constructor(){super(),this.isGroup=!0,this.type="Group"}}const _h={type:"move"};class aa{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new pi,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new pi,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new z,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new z),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new pi,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new z,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new z),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let s=null,r=null,a=null;const o=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){a=!0;for(const v of e.hand.values()){const m=t.getJointPose(v,n),f=this._getHandJoint(c,v);m!==null&&(f.matrix.fromArray(m.transform.matrix),f.matrix.decompose(f.position,f.rotation,f.scale),f.matrixWorldNeedsUpdate=!0,f.jointRadius=m.radius),f.visible=m!==null}const u=c.joints["index-finger-tip"],h=c.joints["thumb-tip"],d=u.position.distanceTo(h.position),p=.02,_=.005;c.inputState.pinching&&d>p+_?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&d<=p-_&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));o!==null&&(s=t.getPose(e.targetRaySpace,n),s===null&&r!==null&&(s=r),s!==null&&(o.matrix.fromArray(s.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,s.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(s.linearVelocity)):o.hasLinearVelocity=!1,s.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(s.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(_h)))}return o!==null&&(o.visible=s!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const n=new pi;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class yo{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new tt(e),this.near=t,this.far=n}clone(){return new yo(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class vl extends Ut{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new nn,this.environmentIntensity=1,this.environmentRotation=new nn,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}const cc=new z,lc=new vt,uc=new vt,vh=new z,hc=new et,Ks=new z,oa=new Ki,dc=new et,ca=new Mo;class bh extends Xt{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=Fo,this.bindMatrix=new et,this.bindMatrixInverse=new et,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new gi),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let n=0;n1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Sh.getNormalMatrix(e),s=this.coplanarPoint(la).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-s.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const ai=new Ki,Eh=new dt(.5,.5),Js=new z;class To{constructor(e=new li,t=new li,n=new li,s=new li,r=new li,a=new li){this.planes=[e,t,n,s,r,a]}set(e,t,n,s,r,a){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(s),o[4].copy(r),o[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=En,n=!1){const s=this.planes,r=e.elements,a=r[0],o=r[1],l=r[2],c=r[3],u=r[4],h=r[5],d=r[6],p=r[7],_=r[8],v=r[9],m=r[10],f=r[11],C=r[12],R=r[13],L=r[14],D=r[15];if(s[0].setComponents(c-a,p-u,f-_,D-C).normalize(),s[1].setComponents(c+a,p+u,f+_,D+C).normalize(),s[2].setComponents(c+o,p+h,f+v,D+R).normalize(),s[3].setComponents(c-o,p-h,f-v,D-R).normalize(),n)s[4].setComponents(l,d,m,L).normalize(),s[5].setComponents(c-l,p-d,f-m,D-L).normalize();else if(s[4].setComponents(c-l,p-d,f-m,D-L).normalize(),t===En)s[5].setComponents(c+l,p+d,f+m,D+L).normalize();else if(t===gr)s[5].setComponents(l,d,m,L).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),ai.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),ai.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(ai)}intersectsSprite(e){ai.center.set(0,0,0);const t=Eh.distanceTo(e.center);return ai.radius=.7071067811865476+t,ai.applyMatrix4(e.matrixWorld),this.intersectsSphere(ai)}intersectsSphere(e){const t=this.planes,n=e.center,s=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(n)0?e.max.x:e.min.x,Js.y=s.normal.y>0?e.max.y:e.min.y,Js.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(Js)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class co extends ti{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new tt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const vr=new z,br=new z,pc=new et,cs=new Mo,$s=new Ki,ua=new z,mc=new z;class Ml extends Ut{constructor(e=new sn,t=new co){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[0];for(let s=1,r=t.count;s0){const s=t[n[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,a=s.length;rn)return;ua.applyMatrix4(i.matrixWorld);const c=e.ray.origin.distanceTo(ua);if(!(ce.far))return{distance:c,point:mc.clone().applyMatrix4(i.matrixWorld),index:a,face:null,faceIndex:null,barycoord:null,object:i}}const xc=new z,gc=new z;class Th extends Ml{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[];for(let s=0,r=t.count;s0&&R(!0),t>0&&R(!1)),this.setIndex(u),this.setAttribute("position",new Dt(h,3)),this.setAttribute("normal",new Dt(d,3)),this.setAttribute("uv",new Dt(p,2));function C(){const L=new z,D=new z;let A=0;const I=(t-e)/n;for(let U=0;U<=r;U++){const M=[],y=U/r,N=y*(t-e)+e;for(let O=0;O<=s;O++){const W=O/s,K=W*l+o,Z=Math.sin(K),k=Math.cos(K);D.x=N*Z,D.y=-y*n+m,D.z=N*k,h.push(D.x,D.y,D.z),L.set(Z,I,k).normalize(),d.push(L.x,L.y,L.z),p.push(W,1-y),M.push(_++)}v.push(M)}for(let U=0;U0||M!==0)&&(u.push(y,N,W),A+=3),(t>0||M!==r-1)&&(u.push(N,O,W),A+=3)}c.addGroup(f,A,0),f+=A}function R(L){const D=_,A=new dt,I=new z;let U=0;const M=L===!0?e:t,y=L===!0?1:-1;for(let O=1;O<=s;O++)h.push(0,m*y,0),d.push(0,y,0),p.push(.5,.5),_++;const N=_;for(let O=0;O<=s;O++){const K=O/s*l+o,Z=Math.cos(K),k=Math.sin(K);I.x=M*k,I.y=m*y,I.z=M*Z,h.push(I.x,I.y,I.z),d.push(0,y,0),A.x=Z*.5+.5,A.y=k*.5*y+.5,p.push(A.x,A.y),_++}for(let O=0;O0)&&p.push(R,L,A),(f!==n-1||l=r)){const o=t[1];e=r)break e}a=n,n=0;break t}break n}for(;n>>1;et;)--a;if(++a,r!==0||a!==s){r>=a&&(a=Math.max(a,1),r=a-1);const o=this.getValueSize();this.times=n.slice(r,a),this.values=this.values.slice(r*o,a*o)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(Tt("KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,s=this.values,r=n.length;r===0&&(Tt("KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let o=0;o!==r;o++){const l=n[o];if(typeof l=="number"&&isNaN(l)){Tt("KeyframeTrack: Time is not a valid number.",this,o,l),e=!1;break}if(a!==null&&a>l){Tt("KeyframeTrack: Out of order keys.",this,o,l,a),e=!1;break}a=l}if(s!==void 0&&Ph(s))for(let o=0,l=s.length;o!==l;++o){const c=s[o];if(isNaN(c)){Tt("KeyframeTrack: Value is not a valid number.",this,o,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),s=this.getInterpolation()===kr,r=e.length-1;let a=1;for(let o=1;o0){e[a]=e[r];for(let o=r*n,l=a*n,c=0;c!==n;++c)t[l+c]=t[o+c];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=this.constructor,s=new n(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}vn.prototype.ValueTypeName="";vn.prototype.TimeBufferType=Float32Array;vn.prototype.ValueBufferType=Float32Array;vn.prototype.DefaultInterpolation=oo;class $i extends vn{constructor(e,t,n){super(e,t,n)}}$i.prototype.ValueTypeName="bool";$i.prototype.ValueBufferType=Array;$i.prototype.DefaultInterpolation=mr;$i.prototype.InterpolantFactoryMethodLinear=void 0;$i.prototype.InterpolantFactoryMethodSmooth=void 0;class Tl extends vn{constructor(e,t,n,s){super(e,t,n,s)}}Tl.prototype.ValueTypeName="color";class Mr extends vn{constructor(e,t,n,s){super(e,t,n,s)}}Mr.prototype.ValueTypeName="number";class Uh extends wr{constructor(e,t,n,s){super(e,t,n,s)}interpolate_(e,t,n,s){const r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,l=(n-t)/(s-t);let c=e*o;for(let u=c+o;c!==u;c+=4)Vn.slerpFlat(r,0,a,c-o,a,c,l);return r}}class Es extends vn{constructor(e,t,n,s){super(e,t,n,s)}InterpolantFactoryMethodLinear(e){return new Uh(this.times,this.values,this.getValueSize(),e)}}Es.prototype.ValueTypeName="quaternion";Es.prototype.InterpolantFactoryMethodSmooth=void 0;class Zi extends vn{constructor(e,t,n){super(e,t,n)}}Zi.prototype.ValueTypeName="string";Zi.prototype.ValueBufferType=Array;Zi.prototype.DefaultInterpolation=mr;Zi.prototype.InterpolantFactoryMethodLinear=void 0;Zi.prototype.InterpolantFactoryMethodSmooth=void 0;class qi extends vn{constructor(e,t,n,s){super(e,t,n,s)}}qi.prototype.ValueTypeName="vector";class vc{constructor(e="",t=-1,n=[],s=bu){this.name=e,this.tracks=n,this.duration=t,this.blendMode=s,this.uuid=ei(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,s=1/(e.fps||1);for(let a=0,o=n.length;a!==o;++a)t.push(Oh(n[a]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r.userData=JSON.parse(e.userData||"{}"),r}static toJSON(e){const t=[],n=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let r=0,a=n.length;r!==a;++r)t.push(vn.toJSON(n[r]));return s}static CreateFromMorphTargetSequence(e,t,n,s){const r=t.length,a=[];for(let o=0;o1){const h=u[1];let d=s[h];d||(s[h]=d=[]),d.push(c)}}const a=[];for(const o in s)a.push(this.CreateFromMorphTargetSequence(o,s[o],t,n));return a}static parseAnimation(e,t){if(je("AnimationClip: parseAnimation() is deprecated and will be removed with r185"),!e)return Tt("AnimationClip: No animation in JSONLoader data."),null;const n=function(h,d,p,_,v){if(p.length!==0){const m=[],f=[];El(p,m,f,_),m.length!==0&&v.push(new h(d,m,f))}},s=[],r=e.name||"default",a=e.fps||30,o=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let h=0;h{t&&t(r),this.manager.itemEnd(e)},0),r;if(Nn[e]!==void 0){Nn[e].push({onLoad:t,onProgress:n,onError:s});return}Nn[e]=[],Nn[e].push({onLoad:t,onProgress:n,onError:s});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin",signal:typeof AbortSignal.any=="function"?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,l=this.responseType;fetch(a).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&je("FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const u=Nn[e],h=c.body.getReader(),d=c.headers.get("X-File-Size")||c.headers.get("Content-Length"),p=d?parseInt(d):0,_=p!==0;let v=0;const m=new ReadableStream({start(f){C();function C(){h.read().then(({done:R,value:L})=>{if(R)f.close();else{v+=L.byteLength;const D=new ProgressEvent("progress",{lengthComputable:_,loaded:v,total:p});for(let A=0,I=u.length;A{f.error(R)})}}});return new Response(m)}else throw new kh(`fetch for "${c.url}" responded with ${c.status}: ${c.statusText}`,c)}).then(c=>{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(u=>new DOMParser().parseFromString(u,o));case"json":return c.json();default:if(o==="")return c.text();{const h=/charset="?([^;"\s]*)"?/i.exec(o),d=h&&h[1]?h[1].toLowerCase():void 0,p=new TextDecoder(d);return c.arrayBuffer().then(_=>p.decode(_))}}}).then(c=>{gs.add(`file:${e}`,c);const u=Nn[e];delete Nn[e];for(let h=0,d=u.length;h{const u=Nn[e];if(u===void 0)throw this.manager.itemError(e),c;delete Nn[e];for(let h=0,d=u.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}}const Ni=new WeakMap;class zh extends Qn{constructor(e){super(e)}load(e,t,n,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,a=gs.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)r.manager.itemStart(e),setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0);else{let h=Ni.get(a);h===void 0&&(h=[],Ni.set(a,h)),h.push({onLoad:t,onError:s})}return a}const o=ys("img");function l(){u(),t&&t(this);const h=Ni.get(this)||[];for(let d=0;dp.start-_.start);let d=0;for(let p=1;p 0 - vec4 plane; - #ifdef ALPHA_TO_COVERAGE - float distanceToPlane, distanceGradient; - float clipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - if ( clipOpacity == 0.0 ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - float unionClipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - } - #pragma unroll_loop_end - clipOpacity *= 1.0 - unionClipOpacity; - #endif - diffuseColor.a *= clipOpacity; - if ( diffuseColor.a == 0.0 ) discard; - #else - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - bool clipped = true; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; - } - #pragma unroll_loop_end - if ( clipped ) discard; - #endif - #endif -#endif`,fd=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; - uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,pd=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; -#endif`,md=`#if NUM_CLIPPING_PLANES > 0 - vClipPosition = - mvPosition.xyz; -#endif`,xd=`#if defined( USE_COLOR_ALPHA ) - diffuseColor *= vColor; -#elif defined( USE_COLOR ) - diffuseColor.rgb *= vColor; -#endif`,gd=`#if defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#elif defined( USE_COLOR ) - varying vec3 vColor; -#endif`,_d=`#if defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - varying vec3 vColor; -#endif`,vd=`#if defined( USE_COLOR_ALPHA ) - vColor = vec4( 1.0 ); -#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - vColor = vec3( 1.0 ); -#endif -#ifdef USE_COLOR - vColor *= color; -#endif -#ifdef USE_INSTANCING_COLOR - vColor.xyz *= instanceColor.xyz; -#endif -#ifdef USE_BATCHING_COLOR - vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); - vColor.xyz *= batchingColor.xyz; -#endif`,bd=`#define PI 3.141592653589793 -#define PI2 6.283185307179586 -#define PI_HALF 1.5707963267948966 -#define RECIPROCAL_PI 0.3183098861837907 -#define RECIPROCAL_PI2 0.15915494309189535 -#define EPSILON 1e-6 -#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -#define whiteComplement( a ) ( 1.0 - saturate( a ) ) -float pow2( const in float x ) { return x*x; } -vec3 pow2( const in vec3 x ) { return x*x; } -float pow3( const in float x ) { return x*x*x; } -float pow4( const in float x ) { float x2 = x*x; return x2*x2; } -float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } -float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } -highp float rand( const in vec2 uv ) { - const highp float a = 12.9898, b = 78.233, c = 43758.5453; - highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); - return fract( sin( sn ) * c ); -} -#ifdef HIGH_PRECISION - float precisionSafeLength( vec3 v ) { return length( v ); } -#else - float precisionSafeLength( vec3 v ) { - float maxComponent = max3( abs( v ) ); - return length( v / maxComponent ) * maxComponent; - } -#endif -struct IncidentLight { - vec3 color; - vec3 direction; - bool visible; -}; -struct ReflectedLight { - vec3 directDiffuse; - vec3 directSpecular; - vec3 indirectDiffuse; - vec3 indirectSpecular; -}; -#ifdef USE_ALPHAHASH - varying vec3 vPosition; -#endif -vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); -} -vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); -} -bool isPerspectiveMatrix( mat4 m ) { - return m[ 2 ][ 3 ] == - 1.0; -} -vec2 equirectUv( in vec3 dir ) { - float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; - float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; - return vec2( u, v ); -} -vec3 BRDF_Lambert( const in vec3 diffuseColor ) { - return RECIPROCAL_PI * diffuseColor; -} -vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} -float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,Md=`#ifdef ENVMAP_TYPE_CUBE_UV - #define cubeUV_minMipLevel 4.0 - #define cubeUV_minTileSize 16.0 - float getFace( vec3 direction ) { - vec3 absDirection = abs( direction ); - float face = - 1.0; - if ( absDirection.x > absDirection.z ) { - if ( absDirection.x > absDirection.y ) - face = direction.x > 0.0 ? 0.0 : 3.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } else { - if ( absDirection.z > absDirection.y ) - face = direction.z > 0.0 ? 2.0 : 5.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } - return face; - } - vec2 getUV( vec3 direction, float face ) { - vec2 uv; - if ( face == 0.0 ) { - uv = vec2( direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 1.0 ) { - uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); - } else if ( face == 2.0 ) { - uv = vec2( - direction.x, direction.y ) / abs( direction.z ); - } else if ( face == 3.0 ) { - uv = vec2( - direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 4.0 ) { - uv = vec2( - direction.x, direction.z ) / abs( direction.y ); - } else { - uv = vec2( direction.x, direction.y ) / abs( direction.z ); - } - return 0.5 * ( uv + 1.0 ); - } - vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { - float face = getFace( direction ); - float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); - mipInt = max( mipInt, cubeUV_minMipLevel ); - float faceSize = exp2( mipInt ); - highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; - if ( face > 2.0 ) { - uv.y += faceSize; - face -= 3.0; - } - uv.x += face * faceSize; - uv.x += filterInt * 3.0 * cubeUV_minTileSize; - uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); - uv.x *= CUBEUV_TEXEL_WIDTH; - uv.y *= CUBEUV_TEXEL_HEIGHT; - #ifdef texture2DGradEXT - return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; - #else - return texture2D( envMap, uv ).rgb; - #endif - } - #define cubeUV_r0 1.0 - #define cubeUV_m0 - 2.0 - #define cubeUV_r1 0.8 - #define cubeUV_m1 - 1.0 - #define cubeUV_r4 0.4 - #define cubeUV_m4 2.0 - #define cubeUV_r5 0.305 - #define cubeUV_m5 3.0 - #define cubeUV_r6 0.21 - #define cubeUV_m6 4.0 - float roughnessToMip( float roughness ) { - float mip = 0.0; - if ( roughness >= cubeUV_r1 ) { - mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; - } else if ( roughness >= cubeUV_r4 ) { - mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; - } else if ( roughness >= cubeUV_r5 ) { - mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; - } else if ( roughness >= cubeUV_r6 ) { - mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; - } else { - mip = - 2.0 * log2( 1.16 * roughness ); } - return mip; - } - vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { - float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); - float mipF = fract( mip ); - float mipInt = floor( mip ); - vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); - if ( mipF == 0.0 ) { - return vec4( color0, 1.0 ); - } else { - vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); - return vec4( mix( color0, color1, mipF ), 1.0 ); - } - } -#endif`,yd=`vec3 transformedNormal = objectNormal; -#ifdef USE_TANGENT - vec3 transformedTangent = objectTangent; -#endif -#ifdef USE_BATCHING - mat3 bm = mat3( batchingMatrix ); - transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); - transformedNormal = bm * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = bm * transformedTangent; - #endif -#endif -#ifdef USE_INSTANCING - mat3 im = mat3( instanceMatrix ); - transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); - transformedNormal = im * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = im * transformedTangent; - #endif -#endif -transformedNormal = normalMatrix * transformedNormal; -#ifdef FLIP_SIDED - transformedNormal = - transformedNormal; -#endif -#ifdef USE_TANGENT - transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; - #ifdef FLIP_SIDED - transformedTangent = - transformedTangent; - #endif -#endif`,Sd=`#ifdef USE_DISPLACEMENTMAP - uniform sampler2D displacementMap; - uniform float displacementScale; - uniform float displacementBias; -#endif`,Ed=`#ifdef USE_DISPLACEMENTMAP - transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,Td=`#ifdef USE_EMISSIVEMAP - vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); - #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE - emissiveColor = sRGBTransferEOTF( emissiveColor ); - #endif - totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,wd=`#ifdef USE_EMISSIVEMAP - uniform sampler2D emissiveMap; -#endif`,Ad="gl_FragColor = linearToOutputTexel( gl_FragColor );",Rd=`vec4 LinearTransferOETF( in vec4 value ) { - return value; -} -vec4 sRGBTransferEOTF( in vec4 value ) { - return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); -} -vec4 sRGBTransferOETF( in vec4 value ) { - return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -}`,Cd=`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vec3 cameraToFrag; - if ( isOrthographic ) { - cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToFrag = normalize( vWorldPosition - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vec3 reflectVec = reflect( cameraToFrag, worldNormal ); - #else - vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); - #endif - #else - vec3 reflectVec = vReflect; - #endif - #ifdef ENVMAP_TYPE_CUBE - vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); - #else - vec4 envColor = vec4( 0.0 ); - #endif - #ifdef ENVMAP_BLENDING_MULTIPLY - outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_MIX ) - outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_ADD ) - outgoingLight += envColor.xyz * specularStrength * reflectivity; - #endif -#endif`,Pd=`#ifdef USE_ENVMAP - uniform float envMapIntensity; - uniform float flipEnvMap; - uniform mat3 envMapRotation; - #ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; - #else - uniform sampler2D envMap; - #endif -#endif`,Ld=`#ifdef USE_ENVMAP - uniform float reflectivity; - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - varying vec3 vWorldPosition; - uniform float refractionRatio; - #else - varying vec3 vReflect; - #endif -#endif`,Dd=`#ifdef USE_ENVMAP - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - - varying vec3 vWorldPosition; - #else - varying vec3 vReflect; - uniform float refractionRatio; - #endif -#endif`,Nd=`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vWorldPosition = worldPosition.xyz; - #else - vec3 cameraToVertex; - if ( isOrthographic ) { - cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vReflect = reflect( cameraToVertex, worldNormal ); - #else - vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); - #endif - #endif -#endif`,Id=`#ifdef USE_FOG - vFogDepth = - mvPosition.z; -#endif`,Ud=`#ifdef USE_FOG - varying float vFogDepth; -#endif`,Fd=`#ifdef USE_FOG - #ifdef FOG_EXP2 - float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); - #else - float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); - #endif - gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,Od=`#ifdef USE_FOG - uniform vec3 fogColor; - varying float vFogDepth; - #ifdef FOG_EXP2 - uniform float fogDensity; - #else - uniform float fogNear; - uniform float fogFar; - #endif -#endif`,Bd=`#ifdef USE_GRADIENTMAP - uniform sampler2D gradientMap; -#endif -vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { - float dotNL = dot( normal, lightDirection ); - vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); - #ifdef USE_GRADIENTMAP - return vec3( texture2D( gradientMap, coord ).r ); - #else - vec2 fw = fwidth( coord ) * 0.5; - return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); - #endif -}`,kd=`#ifdef USE_LIGHTMAP - uniform sampler2D lightMap; - uniform float lightMapIntensity; -#endif`,zd=`LambertMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,Vd=`varying vec3 vViewPosition; -struct LambertMaterial { - vec3 diffuseColor; - float specularStrength; -}; -void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Gd=`uniform bool receiveShadow; -uniform vec3 ambientLightColor; -#if defined( USE_LIGHT_PROBES ) - uniform vec3 lightProbe[ 9 ]; -#endif -vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { - float x = normal.x, y = normal.y, z = normal.z; - vec3 result = shCoefficients[ 0 ] * 0.886227; - result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; - result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; - result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; - result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; - result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; - result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); - result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; - result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); - return result; -} -vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); - return irradiance; -} -vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { - vec3 irradiance = ambientLightColor; - return irradiance; -} -float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { - float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); - if ( cutoffDistance > 0.0 ) { - distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); - } - return distanceFalloff; -} -float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { - return smoothstep( coneCosine, penumbraCosine, angleCosine ); -} -#if NUM_DIR_LIGHTS > 0 - struct DirectionalLight { - vec3 direction; - vec3 color; - }; - uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; - void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { - light.color = directionalLight.color; - light.direction = directionalLight.direction; - light.visible = true; - } -#endif -#if NUM_POINT_LIGHTS > 0 - struct PointLight { - vec3 position; - vec3 color; - float distance; - float decay; - }; - uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; - void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = pointLight.position - geometryPosition; - light.direction = normalize( lVector ); - float lightDistance = length( lVector ); - light.color = pointLight.color; - light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } -#endif -#if NUM_SPOT_LIGHTS > 0 - struct SpotLight { - vec3 position; - vec3 direction; - vec3 color; - float distance; - float decay; - float coneCos; - float penumbraCos; - }; - uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; - void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = spotLight.position - geometryPosition; - light.direction = normalize( lVector ); - float angleCos = dot( light.direction, spotLight.direction ); - float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); - if ( spotAttenuation > 0.0 ) { - float lightDistance = length( lVector ); - light.color = spotLight.color * spotAttenuation; - light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } else { - light.color = vec3( 0.0 ); - light.visible = false; - } - } -#endif -#if NUM_RECT_AREA_LIGHTS > 0 - struct RectAreaLight { - vec3 color; - vec3 position; - vec3 halfWidth; - vec3 halfHeight; - }; - uniform sampler2D ltc_1; uniform sampler2D ltc_2; - uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; -#endif -#if NUM_HEMI_LIGHTS > 0 - struct HemisphereLight { - vec3 direction; - vec3 skyColor; - vec3 groundColor; - }; - uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; - vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { - float dotNL = dot( normal, hemiLight.direction ); - float hemiDiffuseWeight = 0.5 * dotNL + 0.5; - vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); - return irradiance; - } -#endif`,Hd=`#ifdef USE_ENVMAP - vec3 getIBLIrradiance( const in vec3 normal ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); - return PI * envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 reflectVec = reflect( - viewDir, normal ); - reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); - reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); - return envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - #ifdef USE_ANISOTROPY - vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 bentNormal = cross( bitangent, viewDir ); - bentNormal = normalize( cross( bentNormal, bitangent ) ); - bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); - return getIBLRadiance( viewDir, bentNormal, roughness ); - #else - return vec3( 0.0 ); - #endif - } - #endif -#endif`,Wd=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,Xd=`varying vec3 vViewPosition; -struct ToonMaterial { - vec3 diffuseColor; -}; -void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,qd=`BlinnPhongMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularColor = specular; -material.specularShininess = shininess; -material.specularStrength = specularStrength;`,Yd=`varying vec3 vViewPosition; -struct BlinnPhongMaterial { - vec3 diffuseColor; - vec3 specularColor; - float specularShininess; - float specularStrength; -}; -void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; -} -void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,jd=`PhysicalMaterial material; -material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); -vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); -float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); -material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; -material.roughness = min( material.roughness, 1.0 ); -#ifdef IOR - material.ior = ior; - #ifdef USE_SPECULAR - float specularIntensityFactor = specularIntensity; - vec3 specularColorFactor = specularColor; - #ifdef USE_SPECULAR_COLORMAP - specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; - #endif - material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); - #else - float specularIntensityFactor = 1.0; - vec3 specularColorFactor = vec3( 1.0 ); - material.specularF90 = 1.0; - #endif - material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); -#else - material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); - material.specularF90 = 1.0; -#endif -#ifdef USE_CLEARCOAT - material.clearcoat = clearcoat; - material.clearcoatRoughness = clearcoatRoughness; - material.clearcoatF0 = vec3( 0.04 ); - material.clearcoatF90 = 1.0; - #ifdef USE_CLEARCOATMAP - material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; - #endif - #ifdef USE_CLEARCOAT_ROUGHNESSMAP - material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; - #endif - material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); - material.clearcoatRoughness += geometryRoughness; - material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); -#endif -#ifdef USE_DISPERSION - material.dispersion = dispersion; -#endif -#ifdef USE_IRIDESCENCE - material.iridescence = iridescence; - material.iridescenceIOR = iridescenceIOR; - #ifdef USE_IRIDESCENCEMAP - material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; - #endif - #ifdef USE_IRIDESCENCE_THICKNESSMAP - material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; - #else - material.iridescenceThickness = iridescenceThicknessMaximum; - #endif -#endif -#ifdef USE_SHEEN - material.sheenColor = sheenColor; - #ifdef USE_SHEEN_COLORMAP - material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; - #endif - material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); - #ifdef USE_SHEEN_ROUGHNESSMAP - material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; - #endif -#endif -#ifdef USE_ANISOTROPY - #ifdef USE_ANISOTROPYMAP - mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); - vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; - vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; - #else - vec2 anisotropyV = anisotropyVector; - #endif - material.anisotropy = length( anisotropyV ); - if( material.anisotropy == 0.0 ) { - anisotropyV = vec2( 1.0, 0.0 ); - } else { - anisotropyV /= material.anisotropy; - material.anisotropy = saturate( material.anisotropy ); - } - material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); - material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; - material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,Kd=`uniform sampler2D dfgLUT; -struct PhysicalMaterial { - vec3 diffuseColor; - float roughness; - vec3 specularColor; - float specularF90; - float dispersion; - #ifdef USE_CLEARCOAT - float clearcoat; - float clearcoatRoughness; - vec3 clearcoatF0; - float clearcoatF90; - #endif - #ifdef USE_IRIDESCENCE - float iridescence; - float iridescenceIOR; - float iridescenceThickness; - vec3 iridescenceFresnel; - vec3 iridescenceF0; - #endif - #ifdef USE_SHEEN - vec3 sheenColor; - float sheenRoughness; - #endif - #ifdef IOR - float ior; - #endif - #ifdef USE_TRANSMISSION - float transmission; - float transmissionAlpha; - float thickness; - float attenuationDistance; - vec3 attenuationColor; - #endif - #ifdef USE_ANISOTROPY - float anisotropy; - float alphaT; - vec3 anisotropyT; - vec3 anisotropyB; - #endif -}; -vec3 clearcoatSpecularDirect = vec3( 0.0 ); -vec3 clearcoatSpecularIndirect = vec3( 0.0 ); -vec3 sheenSpecularDirect = vec3( 0.0 ); -vec3 sheenSpecularIndirect = vec3(0.0 ); -vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { - float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); - float x2 = x * x; - float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); - return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); -} -float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { - float a2 = pow2( alpha ); - float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); - float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); -} -float D_GGX( const in float alpha, const in float dotNH ) { - float a2 = pow2( alpha ); - float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; - return RECIPROCAL_PI * a2 / pow2( denom ); -} -#ifdef USE_ANISOTROPY - float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { - float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); - float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); - float v = 0.5 / ( gv + gl ); - return saturate(v); - } - float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { - float a2 = alphaT * alphaB; - highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); - highp float v2 = dot( v, v ); - float w2 = a2 / v2; - return RECIPROCAL_PI * a2 * pow2 ( w2 ); - } -#endif -#ifdef USE_CLEARCOAT - vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { - vec3 f0 = material.clearcoatF0; - float f90 = material.clearcoatF90; - float roughness = material.clearcoatRoughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - return F * ( V * D ); - } -#endif -vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 f0 = material.specularColor; - float f90 = material.specularF90; - float roughness = material.roughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - #ifdef USE_IRIDESCENCE - F = mix( F, material.iridescenceFresnel, material.iridescence ); - #endif - #ifdef USE_ANISOTROPY - float dotTL = dot( material.anisotropyT, lightDir ); - float dotTV = dot( material.anisotropyT, viewDir ); - float dotTH = dot( material.anisotropyT, halfDir ); - float dotBL = dot( material.anisotropyB, lightDir ); - float dotBV = dot( material.anisotropyB, viewDir ); - float dotBH = dot( material.anisotropyB, halfDir ); - float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); - float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); - #else - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - #endif - return F * ( V * D ); -} -vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { - const float LUT_SIZE = 64.0; - const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; - const float LUT_BIAS = 0.5 / LUT_SIZE; - float dotNV = saturate( dot( N, V ) ); - vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); - uv = uv * LUT_SCALE + LUT_BIAS; - return uv; -} -float LTC_ClippedSphereFormFactor( const in vec3 f ) { - float l = length( f ); - return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); -} -vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { - float x = dot( v1, v2 ); - float y = abs( x ); - float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; - float b = 3.4175940 + ( 4.1616724 + y ) * y; - float v = a / b; - float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; - return cross( v1, v2 ) * theta_sintheta; -} -vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { - vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; - vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; - vec3 lightNormal = cross( v1, v2 ); - if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); - vec3 T1, T2; - T1 = normalize( V - N * dot( V, N ) ); - T2 = - cross( N, T1 ); - mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); - vec3 coords[ 4 ]; - coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); - coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); - coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); - coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); - coords[ 0 ] = normalize( coords[ 0 ] ); - coords[ 1 ] = normalize( coords[ 1 ] ); - coords[ 2 ] = normalize( coords[ 2 ] ); - coords[ 3 ] = normalize( coords[ 3 ] ); - vec3 vectorFormFactor = vec3( 0.0 ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); - float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); - return vec3( result ); -} -#if defined( USE_SHEEN ) -float D_Charlie( float roughness, float dotNH ) { - float alpha = pow2( roughness ); - float invAlpha = 1.0 / alpha; - float cos2h = dotNH * dotNH; - float sin2h = max( 1.0 - cos2h, 0.0078125 ); - return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); -} -float V_Neubelt( float dotNV, float dotNL ) { - return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); -} -vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float D = D_Charlie( sheenRoughness, dotNH ); - float V = V_Neubelt( dotNV, dotNL ); - return sheenColor * ( D * V ); -} -#endif -float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - float r2 = roughness * roughness; - float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; - float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; - float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); - return saturate( DG * RECIPROCAL_PI ); -} -vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 uv = vec2( roughness, dotNV ); - return texture2D( dfgLUT, uv ).rg; -} -vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { - vec2 fab = DFGApprox( normal, viewDir, roughness ); - return specularColor * fab.x + specularF90 * fab.y; -} -#ifdef USE_IRIDESCENCE -void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#else -void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#endif - vec2 fab = DFGApprox( normal, viewDir, roughness ); - #ifdef USE_IRIDESCENCE - vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); - #else - vec3 Fr = specularColor; - #endif - vec3 FssEss = Fr * fab.x + specularF90 * fab.y; - float Ess = fab.x + fab.y; - float Ems = 1.0 - Ess; - vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); - singleScatter += FssEss; - multiScatter += Fms * Ems; -} -vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 dfgV = DFGApprox( vec3(0.0, 0.0, 1.0), vec3(sqrt(1.0 - dotNV * dotNV), 0.0, dotNV), material.roughness ); - vec2 dfgL = DFGApprox( vec3(0.0, 0.0, 1.0), vec3(sqrt(1.0 - dotNL * dotNL), 0.0, dotNL), material.roughness ); - vec3 FssEss_V = material.specularColor * dfgV.x + material.specularF90 * dfgV.y; - vec3 FssEss_L = material.specularColor * dfgL.x + material.specularF90 * dfgL.y; - float Ess_V = dfgV.x + dfgV.y; - float Ess_L = dfgL.x + dfgL.y; - float Ems_V = 1.0 - Ess_V; - float Ems_L = 1.0 - Ess_L; - vec3 Favg = material.specularColor + ( 1.0 - material.specularColor ) * 0.047619; - vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg * Favg + EPSILON ); - float compensationFactor = Ems_V * Ems_L; - vec3 multiScatter = Fms * compensationFactor; - return singleScatter + multiScatter; -} -#if NUM_RECT_AREA_LIGHTS > 0 - void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 normal = geometryNormal; - vec3 viewDir = geometryViewDir; - vec3 position = geometryPosition; - vec3 lightPos = rectAreaLight.position; - vec3 halfWidth = rectAreaLight.halfWidth; - vec3 halfHeight = rectAreaLight.halfHeight; - vec3 lightColor = rectAreaLight.color; - float roughness = material.roughness; - vec3 rectCoords[ 4 ]; - rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; - rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; - rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; - vec2 uv = LTC_Uv( normal, viewDir, roughness ); - vec4 t1 = texture2D( ltc_1, uv ); - vec4 t2 = texture2D( ltc_2, uv ); - mat3 mInv = mat3( - vec3( t1.x, 0, t1.y ), - vec3( 0, 1, 0 ), - vec3( t1.z, 0, t1.w ) - ); - vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); - reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); - reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); - } -#endif -void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - #ifdef USE_CLEARCOAT - float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); - vec3 ccIrradiance = dotNLcc * directLight.color; - clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); - #endif - #ifdef USE_SHEEN - sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); - #endif - reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { - #ifdef USE_CLEARCOAT - clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); - #endif - #ifdef USE_SHEEN - sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - #endif - vec3 singleScattering = vec3( 0.0 ); - vec3 multiScattering = vec3( 0.0 ); - vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; - #ifdef USE_IRIDESCENCE - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); - #else - computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); - #endif - vec3 totalScattering = singleScattering + multiScattering; - vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); - reflectedLight.indirectSpecular += radiance * singleScattering; - reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; - reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; -} -#define RE_Direct RE_Direct_Physical -#define RE_Direct_RectArea RE_Direct_RectArea_Physical -#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical -#define RE_IndirectSpecular RE_IndirectSpecular_Physical -float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { - return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,Jd=` -vec3 geometryPosition = - vViewPosition; -vec3 geometryNormal = normal; -vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); -vec3 geometryClearcoatNormal = vec3( 0.0 ); -#ifdef USE_CLEARCOAT - geometryClearcoatNormal = clearcoatNormal; -#endif -#ifdef USE_IRIDESCENCE - float dotNVi = saturate( dot( normal, geometryViewDir ) ); - if ( material.iridescenceThickness == 0.0 ) { - material.iridescence = 0.0; - } else { - material.iridescence = saturate( material.iridescence ); - } - if ( material.iridescence > 0.0 ) { - material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); - material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); - } -#endif -IncidentLight directLight; -#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) - PointLight pointLight; - #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { - pointLight = pointLights[ i ]; - getPointLightInfo( pointLight, geometryPosition, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) - pointLightShadow = pointLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) - SpotLight spotLight; - vec4 spotColor; - vec3 spotLightCoord; - bool inSpotLightMap; - #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { - spotLight = spotLights[ i ]; - getSpotLightInfo( spotLight, geometryPosition, directLight ); - #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX - #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS - #else - #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #endif - #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) - spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; - inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); - spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); - directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; - #endif - #undef SPOT_LIGHT_MAP_INDEX - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - spotLightShadow = spotLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) - DirectionalLight directionalLight; - #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { - directionalLight = directionalLights[ i ]; - getDirectionalLightInfo( directionalLight, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) - directionalLightShadow = directionalLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) - RectAreaLight rectAreaLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { - rectAreaLight = rectAreaLights[ i ]; - RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if defined( RE_IndirectDiffuse ) - vec3 iblIrradiance = vec3( 0.0 ); - vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); - #if defined( USE_LIGHT_PROBES ) - irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); - #endif - #if ( NUM_HEMI_LIGHTS > 0 ) - #pragma unroll_loop_start - for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); - } - #pragma unroll_loop_end - #endif -#endif -#if defined( RE_IndirectSpecular ) - vec3 radiance = vec3( 0.0 ); - vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,$d=`#if defined( RE_IndirectDiffuse ) - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; - irradiance += lightMapIrradiance; - #endif - #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) - iblIrradiance += getIBLIrradiance( geometryNormal ); - #endif -#endif -#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) - #ifdef USE_ANISOTROPY - radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); - #else - radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); - #endif - #ifdef USE_CLEARCOAT - clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); - #endif -#endif`,Zd=`#if defined( RE_IndirectDiffuse ) - RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif -#if defined( RE_IndirectSpecular ) - RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,Qd=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) - gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,ef=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) - uniform float logDepthBufFC; - varying float vFragDepth; - varying float vIsPerspective; -#endif`,tf=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER - varying float vFragDepth; - varying float vIsPerspective; -#endif`,nf=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER - vFragDepth = 1.0 + gl_Position.w; - vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); -#endif`,sf=`#ifdef USE_MAP - vec4 sampledDiffuseColor = texture2D( map, vMapUv ); - #ifdef DECODE_VIDEO_TEXTURE - sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); - #endif - diffuseColor *= sampledDiffuseColor; -#endif`,rf=`#ifdef USE_MAP - uniform sampler2D map; -#endif`,af=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - #if defined( USE_POINTS_UV ) - vec2 uv = vUv; - #else - vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; - #endif -#endif -#ifdef USE_MAP - diffuseColor *= texture2D( map, uv ); -#endif -#ifdef USE_ALPHAMAP - diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,of=`#if defined( USE_POINTS_UV ) - varying vec2 vUv; -#else - #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - uniform mat3 uvTransform; - #endif -#endif -#ifdef USE_MAP - uniform sampler2D map; -#endif -#ifdef USE_ALPHAMAP - uniform sampler2D alphaMap; -#endif`,cf=`float metalnessFactor = metalness; -#ifdef USE_METALNESSMAP - vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); - metalnessFactor *= texelMetalness.b; -#endif`,lf=`#ifdef USE_METALNESSMAP - uniform sampler2D metalnessMap; -#endif`,uf=`#ifdef USE_INSTANCING_MORPH - float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; - } -#endif`,hf=`#if defined( USE_MORPHCOLORS ) - vColor *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - #if defined( USE_COLOR_ALPHA ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; - #elif defined( USE_COLOR ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; - #endif - } -#endif`,df=`#ifdef USE_MORPHNORMALS - objectNormal *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,ff=`#ifdef USE_MORPHTARGETS - #ifndef USE_INSTANCING_MORPH - uniform float morphTargetBaseInfluence; - uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - #endif - uniform sampler2DArray morphTargetsTexture; - uniform ivec2 morphTargetsTextureSize; - vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { - int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; - int y = texelIndex / morphTargetsTextureSize.x; - int x = texelIndex - y * morphTargetsTextureSize.x; - ivec3 morphUV = ivec3( x, y, morphTargetIndex ); - return texelFetch( morphTargetsTexture, morphUV, 0 ); - } -#endif`,pf=`#ifdef USE_MORPHTARGETS - transformed *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,mf=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; -#ifdef FLAT_SHADED - vec3 fdx = dFdx( vViewPosition ); - vec3 fdy = dFdy( vViewPosition ); - vec3 normal = normalize( cross( fdx, fdy ) ); -#else - vec3 normal = normalize( vNormal ); - #ifdef DOUBLE_SIDED - normal *= faceDirection; - #endif -#endif -#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) - #ifdef USE_TANGENT - mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn = getTangentFrame( - vViewPosition, normal, - #if defined( USE_NORMALMAP ) - vNormalMapUv - #elif defined( USE_CLEARCOAT_NORMALMAP ) - vClearcoatNormalMapUv - #else - vUv - #endif - ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn[0] *= faceDirection; - tbn[1] *= faceDirection; - #endif -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - #ifdef USE_TANGENT - mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn2[0] *= faceDirection; - tbn2[1] *= faceDirection; - #endif -#endif -vec3 nonPerturbedNormal = normal;`,xf=`#ifdef USE_NORMALMAP_OBJECTSPACE - normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #ifdef FLIP_SIDED - normal = - normal; - #endif - #ifdef DOUBLE_SIDED - normal = normal * faceDirection; - #endif - normal = normalize( normalMatrix * normal ); -#elif defined( USE_NORMALMAP_TANGENTSPACE ) - vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - mapN.xy *= normalScale; - normal = normalize( tbn * mapN ); -#elif defined( USE_BUMPMAP ) - normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,gf=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,_f=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,vf=`#ifndef FLAT_SHADED - vNormal = normalize( transformedNormal ); - #ifdef USE_TANGENT - vTangent = normalize( transformedTangent ); - vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); - #endif -#endif`,bf=`#ifdef USE_NORMALMAP - uniform sampler2D normalMap; - uniform vec2 normalScale; -#endif -#ifdef USE_NORMALMAP_OBJECTSPACE - uniform mat3 normalMatrix; -#endif -#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) - mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { - vec3 q0 = dFdx( eye_pos.xyz ); - vec3 q1 = dFdy( eye_pos.xyz ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - vec3 N = surf_norm; - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); - return mat3( T * scale, B * scale, N ); - } -#endif`,Mf=`#ifdef USE_CLEARCOAT - vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,yf=`#ifdef USE_CLEARCOAT_NORMALMAP - vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; - clearcoatMapN.xy *= clearcoatNormalScale; - clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,Sf=`#ifdef USE_CLEARCOATMAP - uniform sampler2D clearcoatMap; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform sampler2D clearcoatNormalMap; - uniform vec2 clearcoatNormalScale; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform sampler2D clearcoatRoughnessMap; -#endif`,Ef=`#ifdef USE_IRIDESCENCEMAP - uniform sampler2D iridescenceMap; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform sampler2D iridescenceThicknessMap; -#endif`,Tf=`#ifdef OPAQUE -diffuseColor.a = 1.0; -#endif -#ifdef USE_TRANSMISSION -diffuseColor.a *= material.transmissionAlpha; -#endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,wf=`vec3 packNormalToRGB( const in vec3 normal ) { - return normalize( normal ) * 0.5 + 0.5; -} -vec3 unpackRGBToNormal( const in vec3 rgb ) { - return 2.0 * rgb.xyz - 1.0; -} -const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; -const float Inv255 = 1. / 255.; -const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); -const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); -const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); -const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); -vec4 packDepthToRGBA( const in float v ) { - if( v <= 0.0 ) - return vec4( 0., 0., 0., 0. ); - if( v >= 1.0 ) - return vec4( 1., 1., 1., 1. ); - float vuf; - float af = modf( v * PackFactors.a, vuf ); - float bf = modf( vuf * ShiftRight8, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); -} -vec3 packDepthToRGB( const in float v ) { - if( v <= 0.0 ) - return vec3( 0., 0., 0. ); - if( v >= 1.0 ) - return vec3( 1., 1., 1. ); - float vuf; - float bf = modf( v * PackFactors.b, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec3( vuf * Inv255, gf * PackUpscale, bf ); -} -vec2 packDepthToRG( const in float v ) { - if( v <= 0.0 ) - return vec2( 0., 0. ); - if( v >= 1.0 ) - return vec2( 1., 1. ); - float vuf; - float gf = modf( v * 256., vuf ); - return vec2( vuf * Inv255, gf ); -} -float unpackRGBAToDepth( const in vec4 v ) { - return dot( v, UnpackFactors4 ); -} -float unpackRGBToDepth( const in vec3 v ) { - return dot( v, UnpackFactors3 ); -} -float unpackRGToDepth( const in vec2 v ) { - return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; -} -vec4 pack2HalfToRGBA( const in vec2 v ) { - vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); - return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); -} -vec2 unpackRGBATo2Half( const in vec4 v ) { - return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); -} -float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { - return ( viewZ + near ) / ( near - far ); -} -float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { - return depth * ( near - far ) - near; -} -float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { - return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); -} -float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { - return ( near * far ) / ( ( far - near ) * depth - far ); -}`,Af=`#ifdef PREMULTIPLIED_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif`,Rf=`vec4 mvPosition = vec4( transformed, 1.0 ); -#ifdef USE_BATCHING - mvPosition = batchingMatrix * mvPosition; -#endif -#ifdef USE_INSTANCING - mvPosition = instanceMatrix * mvPosition; -#endif -mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,Cf=`#ifdef DITHERING - gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,Pf=`#ifdef DITHERING - vec3 dithering( vec3 color ) { - float grid_position = rand( gl_FragCoord.xy ); - vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); - dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); - return color + dither_shift_RGB; - } -#endif`,Lf=`float roughnessFactor = roughness; -#ifdef USE_ROUGHNESSMAP - vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); - roughnessFactor *= texelRoughness.g; -#endif`,Df=`#ifdef USE_ROUGHNESSMAP - uniform sampler2D roughnessMap; -#endif`,Nf=`#if NUM_SPOT_LIGHT_COORDS > 0 - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#if NUM_SPOT_LIGHT_MAPS > 0 - uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { - float depth = unpackRGBAToDepth( texture2D( depths, uv ) ); - #ifdef USE_REVERSED_DEPTH_BUFFER - return step( depth, compare ); - #else - return step( compare, depth ); - #endif - } - vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { - return unpackRGBATo2Half( texture2D( shadow, uv ) ); - } - float VSMShadow( sampler2D shadow, vec2 uv, float compare ) { - float occlusion = 1.0; - vec2 distribution = texture2DDistribution( shadow, uv ); - #ifdef USE_REVERSED_DEPTH_BUFFER - float hard_shadow = step( distribution.x, compare ); - #else - float hard_shadow = step( compare, distribution.x ); - #endif - if ( hard_shadow != 1.0 ) { - float distance = compare - distribution.x; - float variance = max( 0.00000, distribution.y * distribution.y ); - float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); - } - return occlusion; - } - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - shadowCoord.z += shadowBias; - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - #if defined( SHADOWMAP_TYPE_PCF ) - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float dx0 = - texelSize.x * shadowRadius; - float dy0 = - texelSize.y * shadowRadius; - float dx1 = + texelSize.x * shadowRadius; - float dy1 = + texelSize.y * shadowRadius; - float dx2 = dx0 / 2.0; - float dy2 = dy0 / 2.0; - float dx3 = dx1 / 2.0; - float dy3 = dy1 / 2.0; - shadow = ( - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) - ) * ( 1.0 / 17.0 ); - #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float dx = texelSize.x; - float dy = texelSize.y; - vec2 uv = shadowCoord.xy; - vec2 f = fract( uv * shadowMapSize + 0.5 ); - uv -= f * texelSize; - shadow = ( - texture2DCompare( shadowMap, uv, shadowCoord.z ) + - texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + - texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + - mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), - f.x ) + - mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), - f.x ) + - mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), - f.y ) + - mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), - f.y ) + - mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), - f.x ), - mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), - f.x ), - f.y ) - ) * ( 1.0 / 9.0 ); - #elif defined( SHADOWMAP_TYPE_VSM ) - shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); - #else - shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); - #endif - } - return mix( 1.0, shadow, shadowIntensity ); - } - vec2 cubeToUV( vec3 v, float texelSizeY ) { - vec3 absV = abs( v ); - float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); - absV *= scaleToCube; - v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); - vec2 planar = v.xy; - float almostATexel = 1.5 * texelSizeY; - float almostOne = 1.0 - almostATexel; - if ( absV.z >= almostOne ) { - if ( v.z > 0.0 ) - planar.x = 4.0 - v.x; - } else if ( absV.x >= almostOne ) { - float signX = sign( v.x ); - planar.x = v.z * signX + 2.0 * signX; - } else if ( absV.y >= almostOne ) { - float signY = sign( v.y ); - planar.x = v.x + 2.0 * signY + 2.0; - planar.y = v.z * signY - 2.0; - } - return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); - } - float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - float shadow = 1.0; - vec3 lightToPosition = shadowCoord.xyz; - - float lightToPositionLength = length( lightToPosition ); - if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { - float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; - vec3 bd3D = normalize( lightToPosition ); - vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); - #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) - vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; - shadow = ( - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) - ) * ( 1.0 / 9.0 ); - #else - shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); - #endif - } - return mix( 1.0, shadow, shadowIntensity ); - } -#endif`,If=`#if NUM_SPOT_LIGHT_COORDS > 0 - uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif -#endif`,Uf=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) - vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - vec4 shadowWorldPosition; -#endif -#if defined( USE_SHADOWMAP ) - #if NUM_DIR_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); - vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); - vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif -#endif -#if NUM_SPOT_LIGHT_COORDS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { - shadowWorldPosition = worldPosition; - #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; - #endif - vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end -#endif`,Ff=`float getShadowMask() { - float shadow = 1.0; - #ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - directionalLight = directionalLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { - spotLight = spotLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - pointLight = pointLightShadows[ i ]; - shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; - } - #pragma unroll_loop_end - #endif - #endif - return shadow; -}`,Of=`#ifdef USE_SKINNING - mat4 boneMatX = getBoneMatrix( skinIndex.x ); - mat4 boneMatY = getBoneMatrix( skinIndex.y ); - mat4 boneMatZ = getBoneMatrix( skinIndex.z ); - mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,Bf=`#ifdef USE_SKINNING - uniform mat4 bindMatrix; - uniform mat4 bindMatrixInverse; - uniform highp sampler2D boneTexture; - mat4 getBoneMatrix( const in float i ) { - int size = textureSize( boneTexture, 0 ).x; - int j = int( i ) * 4; - int x = j % size; - int y = j / size; - vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); - vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); - vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); - vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); - return mat4( v1, v2, v3, v4 ); - } -#endif`,kf=`#ifdef USE_SKINNING - vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); - vec4 skinned = vec4( 0.0 ); - skinned += boneMatX * skinVertex * skinWeight.x; - skinned += boneMatY * skinVertex * skinWeight.y; - skinned += boneMatZ * skinVertex * skinWeight.z; - skinned += boneMatW * skinVertex * skinWeight.w; - transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,zf=`#ifdef USE_SKINNING - mat4 skinMatrix = mat4( 0.0 ); - skinMatrix += skinWeight.x * boneMatX; - skinMatrix += skinWeight.y * boneMatY; - skinMatrix += skinWeight.z * boneMatZ; - skinMatrix += skinWeight.w * boneMatW; - skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; - objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; - #ifdef USE_TANGENT - objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; - #endif -#endif`,Vf=`float specularStrength; -#ifdef USE_SPECULARMAP - vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); - specularStrength = texelSpecular.r; -#else - specularStrength = 1.0; -#endif`,Gf=`#ifdef USE_SPECULARMAP - uniform sampler2D specularMap; -#endif`,Hf=`#if defined( TONE_MAPPING ) - gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,Wf=`#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -uniform float toneMappingExposure; -vec3 LinearToneMapping( vec3 color ) { - return saturate( toneMappingExposure * color ); -} -vec3 ReinhardToneMapping( vec3 color ) { - color *= toneMappingExposure; - return saturate( color / ( vec3( 1.0 ) + color ) ); -} -vec3 CineonToneMapping( vec3 color ) { - color *= toneMappingExposure; - color = max( vec3( 0.0 ), color - 0.004 ); - return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); -} -vec3 RRTAndODTFit( vec3 v ) { - vec3 a = v * ( v + 0.0245786 ) - 0.000090537; - vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; - return a / b; -} -vec3 ACESFilmicToneMapping( vec3 color ) { - const mat3 ACESInputMat = mat3( - vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), - vec3( 0.04823, 0.01566, 0.83777 ) - ); - const mat3 ACESOutputMat = mat3( - vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), - vec3( -0.07367, -0.00605, 1.07602 ) - ); - color *= toneMappingExposure / 0.6; - color = ACESInputMat * color; - color = RRTAndODTFit( color ); - color = ACESOutputMat * color; - return saturate( color ); -} -const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( - vec3( 1.6605, - 0.1246, - 0.0182 ), - vec3( - 0.5876, 1.1329, - 0.1006 ), - vec3( - 0.0728, - 0.0083, 1.1187 ) -); -const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( - vec3( 0.6274, 0.0691, 0.0164 ), - vec3( 0.3293, 0.9195, 0.0880 ), - vec3( 0.0433, 0.0113, 0.8956 ) -); -vec3 agxDefaultContrastApprox( vec3 x ) { - vec3 x2 = x * x; - vec3 x4 = x2 * x2; - return + 15.5 * x4 * x2 - - 40.14 * x4 * x - + 31.96 * x4 - - 6.868 * x2 * x - + 0.4298 * x2 - + 0.1191 * x - - 0.00232; -} -vec3 AgXToneMapping( vec3 color ) { - const mat3 AgXInsetMatrix = mat3( - vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), - vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), - vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) - ); - const mat3 AgXOutsetMatrix = mat3( - vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), - vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), - vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) - ); - const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; - color *= toneMappingExposure; - color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; - color = AgXInsetMatrix * color; - color = max( color, 1e-10 ); color = log2( color ); - color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); - color = clamp( color, 0.0, 1.0 ); - color = agxDefaultContrastApprox( color ); - color = AgXOutsetMatrix * color; - color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); - color = LINEAR_REC2020_TO_LINEAR_SRGB * color; - color = clamp( color, 0.0, 1.0 ); - return color; -} -vec3 NeutralToneMapping( vec3 color ) { - const float StartCompression = 0.8 - 0.04; - const float Desaturation = 0.15; - color *= toneMappingExposure; - float x = min( color.r, min( color.g, color.b ) ); - float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; - color -= offset; - float peak = max( color.r, max( color.g, color.b ) ); - if ( peak < StartCompression ) return color; - float d = 1. - StartCompression; - float newPeak = 1. - d * d / ( peak + d - StartCompression ); - color *= newPeak / peak; - float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); - return mix( color, vec3( newPeak ), g ); -} -vec3 CustomToneMapping( vec3 color ) { return color; }`,Xf=`#ifdef USE_TRANSMISSION - material.transmission = transmission; - material.transmissionAlpha = 1.0; - material.thickness = thickness; - material.attenuationDistance = attenuationDistance; - material.attenuationColor = attenuationColor; - #ifdef USE_TRANSMISSIONMAP - material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; - #endif - #ifdef USE_THICKNESSMAP - material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; - #endif - vec3 pos = vWorldPosition; - vec3 v = normalize( cameraPosition - pos ); - vec3 n = inverseTransformDirection( normal, viewMatrix ); - vec4 transmitted = getIBLVolumeRefraction( - n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, - pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, - material.attenuationColor, material.attenuationDistance ); - material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); - totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,qf=`#ifdef USE_TRANSMISSION - uniform float transmission; - uniform float thickness; - uniform float attenuationDistance; - uniform vec3 attenuationColor; - #ifdef USE_TRANSMISSIONMAP - uniform sampler2D transmissionMap; - #endif - #ifdef USE_THICKNESSMAP - uniform sampler2D thicknessMap; - #endif - uniform vec2 transmissionSamplerSize; - uniform sampler2D transmissionSamplerMap; - uniform mat4 modelMatrix; - uniform mat4 projectionMatrix; - varying vec3 vWorldPosition; - float w0( float a ) { - return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); - } - float w1( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); - } - float w2( float a ){ - return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); - } - float w3( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * a ); - } - float g0( float a ) { - return w0( a ) + w1( a ); - } - float g1( float a ) { - return w2( a ) + w3( a ); - } - float h0( float a ) { - return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); - } - float h1( float a ) { - return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); - } - vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { - uv = uv * texelSize.zw + 0.5; - vec2 iuv = floor( uv ); - vec2 fuv = fract( uv ); - float g0x = g0( fuv.x ); - float g1x = g1( fuv.x ); - float h0x = h0( fuv.x ); - float h1x = h1( fuv.x ); - float h0y = h0( fuv.y ); - float h1y = h1( fuv.y ); - vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + - g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); - } - vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { - vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); - vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); - vec2 fLodSizeInv = 1.0 / fLodSize; - vec2 cLodSizeInv = 1.0 / cLodSize; - vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); - vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); - return mix( fSample, cSample, fract( lod ) ); - } - vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { - vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); - vec3 modelScale; - modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); - modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); - modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); - return normalize( refractionVector ) * thickness * modelScale; - } - float applyIorToRoughness( const in float roughness, const in float ior ) { - return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); - } - vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { - float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); - return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); - } - vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { - if ( isinf( attenuationDistance ) ) { - return vec3( 1.0 ); - } else { - vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; - vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; - } - } - vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, - const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, - const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, - const in vec3 attenuationColor, const in float attenuationDistance ) { - vec4 transmittedLight; - vec3 transmittance; - #ifdef USE_DISPERSION - float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; - vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); - for ( int i = 0; i < 3; i ++ ) { - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); - transmittedLight[ i ] = transmissionSample[ i ]; - transmittedLight.a += transmissionSample.a; - transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; - } - transmittedLight.a /= 3.0; - #else - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); - transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); - #endif - vec3 attenuatedColor = transmittance * transmittedLight.rgb; - vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); - float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; - return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); - } -#endif`,Yf=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - varying vec2 vNormalMapUv; -#endif -#ifdef USE_EMISSIVEMAP - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_SPECULARMAP - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,jf=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - uniform mat3 mapTransform; - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - uniform mat3 alphaMapTransform; - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - uniform mat3 lightMapTransform; - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - uniform mat3 aoMapTransform; - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - uniform mat3 bumpMapTransform; - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - uniform mat3 normalMapTransform; - varying vec2 vNormalMapUv; -#endif -#ifdef USE_DISPLACEMENTMAP - uniform mat3 displacementMapTransform; - varying vec2 vDisplacementMapUv; -#endif -#ifdef USE_EMISSIVEMAP - uniform mat3 emissiveMapTransform; - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - uniform mat3 metalnessMapTransform; - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - uniform mat3 roughnessMapTransform; - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - uniform mat3 anisotropyMapTransform; - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - uniform mat3 clearcoatMapTransform; - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform mat3 clearcoatNormalMapTransform; - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform mat3 clearcoatRoughnessMapTransform; - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - uniform mat3 sheenColorMapTransform; - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - uniform mat3 sheenRoughnessMapTransform; - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - uniform mat3 iridescenceMapTransform; - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform mat3 iridescenceThicknessMapTransform; - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SPECULARMAP - uniform mat3 specularMapTransform; - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - uniform mat3 specularColorMapTransform; - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - uniform mat3 specularIntensityMapTransform; - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,Kf=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - vUv = vec3( uv, 1 ).xy; -#endif -#ifdef USE_MAP - vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ALPHAMAP - vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_LIGHTMAP - vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_AOMAP - vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_BUMPMAP - vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_NORMALMAP - vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_DISPLACEMENTMAP - vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_EMISSIVEMAP - vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_METALNESSMAP - vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ROUGHNESSMAP - vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ANISOTROPYMAP - vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOATMAP - vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCEMAP - vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_COLORMAP - vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULARMAP - vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_COLORMAP - vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_TRANSMISSIONMAP - vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_THICKNESSMAP - vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,Jf=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 - vec4 worldPosition = vec4( transformed, 1.0 ); - #ifdef USE_BATCHING - worldPosition = batchingMatrix * worldPosition; - #endif - #ifdef USE_INSTANCING - worldPosition = instanceMatrix * worldPosition; - #endif - worldPosition = modelMatrix * worldPosition; -#endif`;const $f=`varying vec2 vUv; -uniform mat3 uvTransform; -void main() { - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,Zf=`uniform sampler2D t2D; -uniform float backgroundIntensity; -varying vec2 vUv; -void main() { - vec4 texColor = texture2D( t2D, vUv ); - #ifdef DECODE_VIDEO_TEXTURE - texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,Qf=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,ep=`#ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; -#elif defined( ENVMAP_TYPE_CUBE_UV ) - uniform sampler2D envMap; -#endif -uniform float flipEnvMap; -uniform float backgroundBlurriness; -uniform float backgroundIntensity; -uniform mat3 backgroundRotation; -varying vec3 vWorldDirection; -#include -void main() { - #ifdef ENVMAP_TYPE_CUBE - vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); - #elif defined( ENVMAP_TYPE_CUBE_UV ) - vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); - #else - vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,tp=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,np=`uniform samplerCube tCube; -uniform float tFlip; -uniform float opacity; -varying vec3 vWorldDirection; -void main() { - vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); - gl_FragColor = texColor; - gl_FragColor.a *= opacity; - #include - #include -}`,ip=`#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vHighPrecisionZW = gl_Position.zw; -}`,sp=`#if DEPTH_PACKING == 3200 - uniform float opacity; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - vec4 diffuseColor = vec4( 1.0 ); - #include - #if DEPTH_PACKING == 3200 - diffuseColor.a = opacity; - #endif - #include - #include - #include - #include - #include - #ifdef USE_REVERSED_DEPTH_BUFFER - float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; - #else - float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; - #endif - #if DEPTH_PACKING == 3200 - gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); - #elif DEPTH_PACKING == 3201 - gl_FragColor = packDepthToRGBA( fragCoordZ ); - #elif DEPTH_PACKING == 3202 - gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); - #elif DEPTH_PACKING == 3203 - gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); - #endif -}`,rp=`#define DISTANCE -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vWorldPosition = worldPosition.xyz; -}`,ap=`#define DISTANCE -uniform vec3 referencePosition; -uniform float nearDistance; -uniform float farDistance; -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -#include -void main () { - vec4 diffuseColor = vec4( 1.0 ); - #include - #include - #include - #include - #include - float dist = length( vWorldPosition - referencePosition ); - dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); - dist = saturate( dist ); - gl_FragColor = packDepthToRGBA( dist ); -}`,op=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include -}`,cp=`uniform sampler2D tEquirect; -varying vec3 vWorldDirection; -#include -void main() { - vec3 direction = normalize( vWorldDirection ); - vec2 sampleUV = equirectUv( direction ); - gl_FragColor = texture2D( tEquirect, sampleUV ); - #include - #include -}`,lp=`uniform float scale; -attribute float lineDistance; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vLineDistance = scale * lineDistance; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,up=`uniform vec3 diffuse; -uniform float opacity; -uniform float dashSize; -uniform float totalSize; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - if ( mod( vLineDistance, totalSize ) > dashSize ) { - discard; - } - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,hp=`#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) - #include - #include - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,dp=`uniform vec3 diffuse; -uniform float opacity; -#ifndef FLAT_SHADED - varying vec3 vNormal; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; - #else - reflectedLight.indirectDiffuse += vec3( 1.0 ); - #endif - #include - reflectedLight.indirectDiffuse *= diffuseColor.rgb; - vec3 outgoingLight = reflectedLight.indirectDiffuse; - #include - #include - #include - #include - #include - #include - #include -}`,fp=`#define LAMBERT -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,pp=`#define LAMBERT -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,mp=`#define MATCAP -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; -}`,xp=`#define MATCAP -uniform vec3 diffuse; -uniform float opacity; -uniform sampler2D matcap; -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 viewDir = normalize( vViewPosition ); - vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); - vec3 y = cross( viewDir, x ); - vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; - #ifdef USE_MATCAP - vec4 matcapColor = texture2D( matcap, uv ); - #else - vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); - #endif - vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; - #include - #include - #include - #include - #include - #include -}`,gp=`#define NORMAL -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - vViewPosition = - mvPosition.xyz; -#endif -}`,_p=`#define NORMAL -uniform float opacity; -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); - #include - #include - #include - #include - gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); - #ifdef OPAQUE - gl_FragColor.a = 1.0; - #endif -}`,vp=`#define PHONG -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,bp=`#define PHONG -uniform vec3 diffuse; -uniform vec3 emissive; -uniform vec3 specular; -uniform float shininess; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,Mp=`#define STANDARD -varying vec3 vViewPosition; -#ifdef USE_TRANSMISSION - varying vec3 vWorldPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -#ifdef USE_TRANSMISSION - vWorldPosition = worldPosition.xyz; -#endif -}`,yp=`#define STANDARD -#ifdef PHYSICAL - #define IOR - #define USE_SPECULAR -#endif -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float roughness; -uniform float metalness; -uniform float opacity; -#ifdef IOR - uniform float ior; -#endif -#ifdef USE_SPECULAR - uniform float specularIntensity; - uniform vec3 specularColor; - #ifdef USE_SPECULAR_COLORMAP - uniform sampler2D specularColorMap; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - uniform sampler2D specularIntensityMap; - #endif -#endif -#ifdef USE_CLEARCOAT - uniform float clearcoat; - uniform float clearcoatRoughness; -#endif -#ifdef USE_DISPERSION - uniform float dispersion; -#endif -#ifdef USE_IRIDESCENCE - uniform float iridescence; - uniform float iridescenceIOR; - uniform float iridescenceThicknessMinimum; - uniform float iridescenceThicknessMaximum; -#endif -#ifdef USE_SHEEN - uniform vec3 sheenColor; - uniform float sheenRoughness; - #ifdef USE_SHEEN_COLORMAP - uniform sampler2D sheenColorMap; - #endif - #ifdef USE_SHEEN_ROUGHNESSMAP - uniform sampler2D sheenRoughnessMap; - #endif -#endif -#ifdef USE_ANISOTROPY - uniform vec2 anisotropyVector; - #ifdef USE_ANISOTROPYMAP - uniform sampler2D anisotropyMap; - #endif -#endif -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; - vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; - #include - vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; - #ifdef USE_SHEEN - float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); - outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; - #endif - #ifdef USE_CLEARCOAT - float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); - vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); - outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; - #endif - #include - #include - #include - #include - #include - #include -}`,Sp=`#define TOON -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -}`,Ep=`#define TOON -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include -}`,Tp=`uniform float size; -uniform float scale; -#include -#include -#include -#include -#include -#include -#ifdef USE_POINTS_UV - varying vec2 vUv; - uniform mat3 uvTransform; -#endif -void main() { - #ifdef USE_POINTS_UV - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - #endif - #include - #include - #include - #include - #include - #include - gl_PointSize = size; - #ifdef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); - #endif - #include - #include - #include - #include -}`,wp=`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,Ap=`#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,Rp=`uniform vec3 color; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); - #include - #include - #include -}`,Cp=`uniform float rotation; -uniform vec2 center; -#include -#include -#include -#include -#include -void main() { - #include - vec4 mvPosition = modelViewMatrix[ 3 ]; - vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); - #ifndef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - #endif - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - gl_Position = projectionMatrix * mvPosition; - #include - #include - #include -}`,Pp=`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include -}`,st={alphahash_fragment:$h,alphahash_pars_fragment:Zh,alphamap_fragment:Qh,alphamap_pars_fragment:ed,alphatest_fragment:td,alphatest_pars_fragment:nd,aomap_fragment:id,aomap_pars_fragment:sd,batching_pars_vertex:rd,batching_vertex:ad,begin_vertex:od,beginnormal_vertex:cd,bsdfs:ld,iridescence_fragment:ud,bumpmap_pars_fragment:hd,clipping_planes_fragment:dd,clipping_planes_pars_fragment:fd,clipping_planes_pars_vertex:pd,clipping_planes_vertex:md,color_fragment:xd,color_pars_fragment:gd,color_pars_vertex:_d,color_vertex:vd,common:bd,cube_uv_reflection_fragment:Md,defaultnormal_vertex:yd,displacementmap_pars_vertex:Sd,displacementmap_vertex:Ed,emissivemap_fragment:Td,emissivemap_pars_fragment:wd,colorspace_fragment:Ad,colorspace_pars_fragment:Rd,envmap_fragment:Cd,envmap_common_pars_fragment:Pd,envmap_pars_fragment:Ld,envmap_pars_vertex:Dd,envmap_physical_pars_fragment:Hd,envmap_vertex:Nd,fog_vertex:Id,fog_pars_vertex:Ud,fog_fragment:Fd,fog_pars_fragment:Od,gradientmap_pars_fragment:Bd,lightmap_pars_fragment:kd,lights_lambert_fragment:zd,lights_lambert_pars_fragment:Vd,lights_pars_begin:Gd,lights_toon_fragment:Wd,lights_toon_pars_fragment:Xd,lights_phong_fragment:qd,lights_phong_pars_fragment:Yd,lights_physical_fragment:jd,lights_physical_pars_fragment:Kd,lights_fragment_begin:Jd,lights_fragment_maps:$d,lights_fragment_end:Zd,logdepthbuf_fragment:Qd,logdepthbuf_pars_fragment:ef,logdepthbuf_pars_vertex:tf,logdepthbuf_vertex:nf,map_fragment:sf,map_pars_fragment:rf,map_particle_fragment:af,map_particle_pars_fragment:of,metalnessmap_fragment:cf,metalnessmap_pars_fragment:lf,morphinstance_vertex:uf,morphcolor_vertex:hf,morphnormal_vertex:df,morphtarget_pars_vertex:ff,morphtarget_vertex:pf,normal_fragment_begin:mf,normal_fragment_maps:xf,normal_pars_fragment:gf,normal_pars_vertex:_f,normal_vertex:vf,normalmap_pars_fragment:bf,clearcoat_normal_fragment_begin:Mf,clearcoat_normal_fragment_maps:yf,clearcoat_pars_fragment:Sf,iridescence_pars_fragment:Ef,opaque_fragment:Tf,packing:wf,premultiplied_alpha_fragment:Af,project_vertex:Rf,dithering_fragment:Cf,dithering_pars_fragment:Pf,roughnessmap_fragment:Lf,roughnessmap_pars_fragment:Df,shadowmap_pars_fragment:Nf,shadowmap_pars_vertex:If,shadowmap_vertex:Uf,shadowmask_pars_fragment:Ff,skinbase_vertex:Of,skinning_pars_vertex:Bf,skinning_vertex:kf,skinnormal_vertex:zf,specularmap_fragment:Vf,specularmap_pars_fragment:Gf,tonemapping_fragment:Hf,tonemapping_pars_fragment:Wf,transmission_fragment:Xf,transmission_pars_fragment:qf,uv_pars_fragment:Yf,uv_pars_vertex:jf,uv_vertex:Kf,worldpos_vertex:Jf,background_vert:$f,background_frag:Zf,backgroundCube_vert:Qf,backgroundCube_frag:ep,cube_vert:tp,cube_frag:np,depth_vert:ip,depth_frag:sp,distanceRGBA_vert:rp,distanceRGBA_frag:ap,equirect_vert:op,equirect_frag:cp,linedashed_vert:lp,linedashed_frag:up,meshbasic_vert:hp,meshbasic_frag:dp,meshlambert_vert:fp,meshlambert_frag:pp,meshmatcap_vert:mp,meshmatcap_frag:xp,meshnormal_vert:gp,meshnormal_frag:_p,meshphong_vert:vp,meshphong_frag:bp,meshphysical_vert:Mp,meshphysical_frag:yp,meshtoon_vert:Sp,meshtoon_frag:Ep,points_vert:Tp,points_frag:wp,shadow_vert:Ap,shadow_frag:Rp,sprite_vert:Cp,sprite_frag:Pp},be={common:{diffuse:{value:new tt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new nt},alphaMap:{value:null},alphaMapTransform:{value:new nt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new nt}},envmap:{envMap:{value:null},envMapRotation:{value:new nt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new nt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new nt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new nt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new nt},normalScale:{value:new dt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new nt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new nt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new nt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new nt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new tt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new tt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new nt},alphaTest:{value:0},uvTransform:{value:new nt}},sprite:{diffuse:{value:new tt(16777215)},opacity:{value:1},center:{value:new dt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new nt},alphaMap:{value:null},alphaMapTransform:{value:new nt},alphaTest:{value:0}}},Mn={basic:{uniforms:Zt([be.common,be.specularmap,be.envmap,be.aomap,be.lightmap,be.fog]),vertexShader:st.meshbasic_vert,fragmentShader:st.meshbasic_frag},lambert:{uniforms:Zt([be.common,be.specularmap,be.envmap,be.aomap,be.lightmap,be.emissivemap,be.bumpmap,be.normalmap,be.displacementmap,be.fog,be.lights,{emissive:{value:new tt(0)}}]),vertexShader:st.meshlambert_vert,fragmentShader:st.meshlambert_frag},phong:{uniforms:Zt([be.common,be.specularmap,be.envmap,be.aomap,be.lightmap,be.emissivemap,be.bumpmap,be.normalmap,be.displacementmap,be.fog,be.lights,{emissive:{value:new tt(0)},specular:{value:new tt(1118481)},shininess:{value:30}}]),vertexShader:st.meshphong_vert,fragmentShader:st.meshphong_frag},standard:{uniforms:Zt([be.common,be.envmap,be.aomap,be.lightmap,be.emissivemap,be.bumpmap,be.normalmap,be.displacementmap,be.roughnessmap,be.metalnessmap,be.fog,be.lights,{emissive:{value:new tt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:st.meshphysical_vert,fragmentShader:st.meshphysical_frag},toon:{uniforms:Zt([be.common,be.aomap,be.lightmap,be.emissivemap,be.bumpmap,be.normalmap,be.displacementmap,be.gradientmap,be.fog,be.lights,{emissive:{value:new tt(0)}}]),vertexShader:st.meshtoon_vert,fragmentShader:st.meshtoon_frag},matcap:{uniforms:Zt([be.common,be.bumpmap,be.normalmap,be.displacementmap,be.fog,{matcap:{value:null}}]),vertexShader:st.meshmatcap_vert,fragmentShader:st.meshmatcap_frag},points:{uniforms:Zt([be.points,be.fog]),vertexShader:st.points_vert,fragmentShader:st.points_frag},dashed:{uniforms:Zt([be.common,be.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:st.linedashed_vert,fragmentShader:st.linedashed_frag},depth:{uniforms:Zt([be.common,be.displacementmap]),vertexShader:st.depth_vert,fragmentShader:st.depth_frag},normal:{uniforms:Zt([be.common,be.bumpmap,be.normalmap,be.displacementmap,{opacity:{value:1}}]),vertexShader:st.meshnormal_vert,fragmentShader:st.meshnormal_frag},sprite:{uniforms:Zt([be.sprite,be.fog]),vertexShader:st.sprite_vert,fragmentShader:st.sprite_frag},background:{uniforms:{uvTransform:{value:new nt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:st.background_vert,fragmentShader:st.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new nt}},vertexShader:st.backgroundCube_vert,fragmentShader:st.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:st.cube_vert,fragmentShader:st.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:st.equirect_vert,fragmentShader:st.equirect_frag},distanceRGBA:{uniforms:Zt([be.common,be.displacementmap,{referencePosition:{value:new z},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:st.distanceRGBA_vert,fragmentShader:st.distanceRGBA_frag},shadow:{uniforms:Zt([be.lights,be.fog,{color:{value:new tt(0)},opacity:{value:1}}]),vertexShader:st.shadow_vert,fragmentShader:st.shadow_frag}};Mn.physical={uniforms:Zt([Mn.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new nt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new nt},clearcoatNormalScale:{value:new dt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new nt},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new nt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new nt},sheen:{value:0},sheenColor:{value:new tt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new nt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new nt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new nt},transmissionSamplerSize:{value:new dt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new nt},attenuationDistance:{value:0},attenuationColor:{value:new tt(0)},specularColor:{value:new tt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new nt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new nt},anisotropyVector:{value:new dt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new nt}}]),vertexShader:st.meshphysical_vert,fragmentShader:st.meshphysical_frag};const er={r:0,b:0,g:0},oi=new nn,Lp=new et;function Dp(i,e,t,n,s,r,a){const o=new tt(0);let l=r===!0?0:1,c,u,h=null,d=0,p=null;function _(R){let L=R.isScene===!0?R.background:null;return L&&L.isTexture&&(L=(R.backgroundBlurriness>0?t:e).get(L)),L}function v(R){let L=!1;const D=_(R);D===null?f(o,l):D&&D.isColor&&(f(D,1),L=!0);const A=i.xr.getEnvironmentBlendMode();A==="additive"?n.buffers.color.setClear(0,0,0,1,a):A==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,a),(i.autoClear||L)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),i.clear(i.autoClearColor,i.autoClearDepth,i.autoClearStencil))}function m(R,L){const D=_(L);D&&(D.isCubeTexture||D.mapping===Sr)?(u===void 0&&(u=new Xt(new Ji(1,1,1),new zn({name:"BackgroundCubeMaterial",uniforms:Xi(Mn.backgroundCube.uniforms),vertexShader:Mn.backgroundCube.vertexShader,fragmentShader:Mn.backgroundCube.fragmentShader,side:tn,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(A,I,U){this.matrixWorld.copyPosition(U.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(u)),oi.copy(L.backgroundRotation),oi.x*=-1,oi.y*=-1,oi.z*=-1,D.isCubeTexture&&D.isRenderTargetTexture===!1&&(oi.y*=-1,oi.z*=-1),u.material.uniforms.envMap.value=D,u.material.uniforms.flipEnvMap.value=D.isCubeTexture&&D.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=L.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=L.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(Lp.makeRotationFromEuler(oi)),u.material.toneMapped=ht.getTransfer(D.colorSpace)!==St,(h!==D||d!==D.version||p!==i.toneMapping)&&(u.material.needsUpdate=!0,h=D,d=D.version,p=i.toneMapping),u.layers.enableAll(),R.unshift(u,u.geometry,u.material,0,0,null)):D&&D.isTexture&&(c===void 0&&(c=new Xt(new Tr(2,2),new zn({name:"BackgroundMaterial",uniforms:Xi(Mn.background.uniforms),vertexShader:Mn.background.vertexShader,fragmentShader:Mn.background.fragmentShader,side:kn,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(c)),c.material.uniforms.t2D.value=D,c.material.uniforms.backgroundIntensity.value=L.backgroundIntensity,c.material.toneMapped=ht.getTransfer(D.colorSpace)!==St,D.matrixAutoUpdate===!0&&D.updateMatrix(),c.material.uniforms.uvTransform.value.copy(D.matrix),(h!==D||d!==D.version||p!==i.toneMapping)&&(c.material.needsUpdate=!0,h=D,d=D.version,p=i.toneMapping),c.layers.enableAll(),R.unshift(c,c.geometry,c.material,0,0,null))}function f(R,L){R.getRGB(er,xl(i)),n.buffers.color.setClear(er.r,er.g,er.b,L,a)}function C(){u!==void 0&&(u.geometry.dispose(),u.material.dispose(),u=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(R,L=1){o.set(R),l=L,f(o,l)},getClearAlpha:function(){return l},setClearAlpha:function(R){l=R,f(o,l)},render:v,addToRenderList:m,dispose:C}}function Np(i,e){const t=i.getParameter(i.MAX_VERTEX_ATTRIBS),n={},s=d(null);let r=s,a=!1;function o(y,N,O,W,K){let Z=!1;const k=h(W,O,N);r!==k&&(r=k,c(r.object)),Z=p(y,W,O,K),Z&&_(y,W,O,K),K!==null&&e.update(K,i.ELEMENT_ARRAY_BUFFER),(Z||a)&&(a=!1,L(y,N,O,W),K!==null&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,e.get(K).buffer))}function l(){return i.createVertexArray()}function c(y){return i.bindVertexArray(y)}function u(y){return i.deleteVertexArray(y)}function h(y,N,O){const W=O.wireframe===!0;let K=n[y.id];K===void 0&&(K={},n[y.id]=K);let Z=K[N.id];Z===void 0&&(Z={},K[N.id]=Z);let k=Z[W];return k===void 0&&(k=d(l()),Z[W]=k),k}function d(y){const N=[],O=[],W=[];for(let K=0;K=0){const oe=K[q];let pe=Z[q];if(pe===void 0&&(q==="instanceMatrix"&&y.instanceMatrix&&(pe=y.instanceMatrix),q==="instanceColor"&&y.instanceColor&&(pe=y.instanceColor)),oe===void 0||oe.attribute!==pe||pe&&oe.data!==pe.data)return!0;k++}return r.attributesNum!==k||r.index!==W}function _(y,N,O,W){const K={},Z=N.attributes;let k=0;const se=O.getAttributes();for(const q in se)if(se[q].location>=0){let oe=Z[q];oe===void 0&&(q==="instanceMatrix"&&y.instanceMatrix&&(oe=y.instanceMatrix),q==="instanceColor"&&y.instanceColor&&(oe=y.instanceColor));const pe={};pe.attribute=oe,oe&&oe.data&&(pe.data=oe.data),K[q]=pe,k++}r.attributes=K,r.attributesNum=k,r.index=W}function v(){const y=r.newAttributes;for(let N=0,O=y.length;N=0){let ie=K[se];if(ie===void 0&&(se==="instanceMatrix"&&y.instanceMatrix&&(ie=y.instanceMatrix),se==="instanceColor"&&y.instanceColor&&(ie=y.instanceColor)),ie!==void 0){const oe=ie.normalized,pe=ie.itemSize,Le=e.get(ie);if(Le===void 0)continue;const Ee=Le.buffer,Me=Le.type,ge=Le.bytesPerElement,G=Me===i.INT||Me===i.UNSIGNED_INT||ie.gpuType===ho;if(ie.isInterleavedBufferAttribute){const Y=ie.data,ue=Y.stride,ze=ie.offset;if(Y.isInstancedInterleavedBuffer){for(let Ne=0;Ne0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT).precision>0)return"highp";I="mediump"}return I==="mediump"&&i.getShaderPrecisionFormat(i.VERTEX_SHADER,i.MEDIUM_FLOAT).precision>0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=t.precision!==void 0?t.precision:"highp";const u=l(c);u!==c&&(je("WebGLRenderer:",c,"not supported, using",u,"instead."),c=u);const h=t.logarithmicDepthBuffer===!0,d=t.reversedDepthBuffer===!0&&e.has("EXT_clip_control"),p=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),_=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),v=i.getParameter(i.MAX_TEXTURE_SIZE),m=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),f=i.getParameter(i.MAX_VERTEX_ATTRIBS),C=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),R=i.getParameter(i.MAX_VARYING_VECTORS),L=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),D=_>0,A=i.getParameter(i.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:r,getMaxPrecision:l,textureFormatReadable:a,textureTypeReadable:o,precision:c,logarithmicDepthBuffer:h,reversedDepthBuffer:d,maxTextures:p,maxVertexTextures:_,maxTextureSize:v,maxCubemapSize:m,maxAttributes:f,maxVertexUniforms:C,maxVaryings:R,maxFragmentUniforms:L,vertexTextures:D,maxSamples:A}}function Fp(i){const e=this;let t=null,n=0,s=!1,r=!1;const a=new li,o=new nt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,d){const p=h.length!==0||d||n!==0||s;return s=d,n=h.length,p},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,d){t=u(h,d,0)},this.setState=function(h,d,p){const _=h.clippingPlanes,v=h.clipIntersection,m=h.clipShadows,f=i.get(h);if(!s||_===null||_.length===0||r&&!m)r?u(null):c();else{const C=r?0:n,R=C*4;let L=f.clippingState||null;l.value=L,L=u(_,d,R,p);for(let D=0;D!==R;++D)L[D]=t[D];f.clippingState=L,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=C}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function u(h,d,p,_){const v=h!==null?h.length:0;let m=null;if(v!==0){if(m=l.value,_!==!0||m===null){const f=p+v*4,C=d.matrixWorldInverse;o.getNormalMatrix(C),(m===null||m.length0){const c=new gh(l.height);return c.fromEquirectangularTexture(i,a),e.set(a,c),a.addEventListener("dispose",s),t(c.texture,a.mapping)}else return null}}return a}function s(a){const o=a.target;o.removeEventListener("dispose",s);const l=e.get(o);l!==void 0&&(e.delete(o),l.dispose())}function r(){e=new WeakMap}return{get:n,dispose:r}}const $n=4,Ec=[.125,.215,.35,.446,.526,.582],di=20,Bp=512,us=new Po,Tc=new tt;let fa=null,pa=0,ma=0,xa=!1;const kp=new z;class wc{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._sizeLods=[],this._sigmas=[],this._lodMeshes=[],this._backgroundBox=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._blurMaterial=null,this._ggxMaterial=null}fromScene(e,t=0,n=.1,s=100,r={}){const{size:a=256,position:o=kp}=r;fa=this._renderer.getRenderTarget(),pa=this._renderer.getActiveCubeFace(),ma=this._renderer.getActiveMipmapLevel(),xa=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(a);const l=this._allocateTargets();return l.depthBuffer=!0,this._sceneToCubeUV(e,n,s,l,o),t>0&&this._blur(l,0,0,t),this._applyPMREM(l),this._cleanup(l),l}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Cc(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Rc(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?D:0,D,D),h.setRenderTarget(s),f&&h.render(v,l),h.render(e,l)}h.toneMapping=p,h.autoClear=d,e.background=C}_textureToCubeUV(e,t){const n=this._renderer,s=e.mapping===Vi||e.mapping===Gi;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=Cc()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Rc());const r=s?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=r;const o=r.uniforms;o.envMap.value=e;const l=this._cubeSize;Ii(t,0,0,3*l,2*l),n.setRenderTarget(t),n.render(a,us)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const s=this._lodMeshes.length;for(let r=1;r_-$n?n-_+$n:0),f=4*(this._cubeSize-v);l.envMap.value=e.texture,l.roughness.value=p,l.mipInt.value=_-t,Ii(r,m,f,3*v,2*v),s.setRenderTarget(r),s.render(o,us),l.envMap.value=r.texture,l.roughness.value=0,l.mipInt.value=_-n,Ii(e,m,f,3*v,2*v),s.setRenderTarget(e),s.render(o,us)}_blur(e,t,n,s,r){const a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,s,"latitudinal",r),this._halfBlur(a,e,n,n,s,"longitudinal",r)}_halfBlur(e,t,n,s,r,a,o){const l=this._renderer,c=this._blurMaterial;a!=="latitudinal"&&a!=="longitudinal"&&Tt("blur direction must be either latitudinal or longitudinal!");const u=3,h=this._lodMeshes[s];h.material=c;const d=c.uniforms,p=this._sizeLods[n]-1,_=isFinite(r)?Math.PI/(2*p):2*Math.PI/(2*di-1),v=r/_,m=isFinite(r)?1+Math.floor(u*v):di;m>di&&je(`sigmaRadians, ${r}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${di}`);const f=[];let C=0;for(let I=0;IR-$n?s-R+$n:0),A=4*(this._cubeSize-L);Ii(t,D,A,3*L,2*L),l.setRenderTarget(t),l.render(h,us)}}function zp(i){const e=[],t=[],n=[];let s=i;const r=i-$n+1+Ec.length;for(let a=0;ai-$n?l=Ec[a-i+$n-1]:a===0&&(l=0),t.push(l);const c=1/(o-2),u=-c,h=1+c,d=[u,u,h,u,h,h,u,u,h,h,u,h],p=6,_=6,v=3,m=2,f=1,C=new Float32Array(v*_*p),R=new Float32Array(m*_*p),L=new Float32Array(f*_*p);for(let A=0;A2?0:-1,M=[I,U,0,I+2/3,U,0,I+2/3,U+1,0,I,U,0,I+2/3,U+1,0,I,U+1,0];C.set(M,v*_*A),R.set(d,m*_*A);const y=[A,A,A,A,A,A];L.set(y,f*_*A)}const D=new sn;D.setAttribute("position",new hn(C,v)),D.setAttribute("uv",new hn(R,m)),D.setAttribute("faceIndex",new hn(L,f)),n.push(new Xt(D,null)),s>$n&&s--}return{lodMeshes:n,sizeLods:e,sigmas:t}}function Ac(i,e,t){const n=new xi(i,e,t);return n.texture.mapping=Sr,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function Ii(i,e,t,n,s){i.viewport.set(e,t,n,s),i.scissor.set(e,t,n,s)}function Vp(i,e,t){return new zn({name:"PMREMGGXConvolution",defines:{GGX_SAMPLES:Bp,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${i}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:Rr(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform float roughness; - uniform float mipInt; - - #define ENVMAP_TYPE_CUBE_UV - #include - - #define PI 3.14159265359 - - // Van der Corput radical inverse - float radicalInverse_VdC(uint bits) { - bits = (bits << 16u) | (bits >> 16u); - bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); - bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); - bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); - bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); - return float(bits) * 2.3283064365386963e-10; // / 0x100000000 - } - - // Hammersley sequence - vec2 hammersley(uint i, uint N) { - return vec2(float(i) / float(N), radicalInverse_VdC(i)); - } - - // GGX VNDF importance sampling (Eric Heitz 2018) - // "Sampling the GGX Distribution of Visible Normals" - // https://jcgt.org/published/0007/04/01/ - vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { - float alpha = roughness * roughness; - - // Section 3.2: Transform view direction to hemisphere configuration - vec3 Vh = normalize(vec3(alpha * V.x, alpha * V.y, V.z)); - - // Section 4.1: Orthonormal basis - float lensq = Vh.x * Vh.x + Vh.y * Vh.y; - vec3 T1 = lensq > 0.0 ? vec3(-Vh.y, Vh.x, 0.0) / sqrt(lensq) : vec3(1.0, 0.0, 0.0); - vec3 T2 = cross(Vh, T1); - - // Section 4.2: Parameterization of projected area - float r = sqrt(Xi.x); - float phi = 2.0 * PI * Xi.y; - float t1 = r * cos(phi); - float t2 = r * sin(phi); - float s = 0.5 * (1.0 + Vh.z); - t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; - - // Section 4.3: Reprojection onto hemisphere - vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * Vh; - - // Section 3.4: Transform back to ellipsoid configuration - return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); - } - - void main() { - vec3 N = normalize(vOutputDirection); - vec3 V = N; // Assume view direction equals normal for pre-filtering - - vec3 prefilteredColor = vec3(0.0); - float totalWeight = 0.0; - - // For very low roughness, just sample the environment directly - if (roughness < 0.001) { - gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); - return; - } - - // Tangent space basis for VNDF sampling - vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); - vec3 tangent = normalize(cross(up, N)); - vec3 bitangent = cross(N, tangent); - - for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { - vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); - - // For PMREM, V = N, so in tangent space V is always (0, 0, 1) - vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); - - // Transform H back to world space - vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); - vec3 L = normalize(2.0 * dot(V, H) * H - V); - - float NdotL = max(dot(N, L), 0.0); - - if(NdotL > 0.0) { - // Sample environment at fixed mip level - // VNDF importance sampling handles the distribution filtering - vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); - - // Weight by NdotL for the split-sum approximation - // VNDF PDF naturally accounts for the visible microfacet distribution - prefilteredColor += sampleColor * NdotL; - totalWeight += NdotL; - } - } - - if (totalWeight > 0.0) { - prefilteredColor = prefilteredColor / totalWeight; - } - - gl_FragColor = vec4(prefilteredColor, 1.0); - } - `,blending:On,depthTest:!1,depthWrite:!1})}function Gp(i,e,t){const n=new Float32Array(di),s=new z(0,1,0);return new zn({name:"SphericalGaussianBlur",defines:{n:di,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${i}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:Rr(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform int samples; - uniform float weights[ n ]; - uniform bool latitudinal; - uniform float dTheta; - uniform float mipInt; - uniform vec3 poleAxis; - - #define ENVMAP_TYPE_CUBE_UV - #include - - vec3 getSample( float theta, vec3 axis ) { - - float cosTheta = cos( theta ); - // Rodrigues' axis-angle rotation - vec3 sampleDirection = vOutputDirection * cosTheta - + cross( axis, vOutputDirection ) * sin( theta ) - + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); - - return bilinearCubeUV( envMap, sampleDirection, mipInt ); - - } - - void main() { - - vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); - - if ( all( equal( axis, vec3( 0.0 ) ) ) ) { - - axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); - - } - - axis = normalize( axis ); - - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); - - for ( int i = 1; i < n; i++ ) { - - if ( i >= samples ) { - - break; - - } - - float theta = dTheta * float( i ); - gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); - gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); - - } - - } - `,blending:On,depthTest:!1,depthWrite:!1})}function Rc(){return new zn({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Rr(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - - #include - - void main() { - - vec3 outputDirection = normalize( vOutputDirection ); - vec2 uv = equirectUv( outputDirection ); - - gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); - - } - `,blending:On,depthTest:!1,depthWrite:!1})}function Cc(){return new zn({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Rr(),fragmentShader:` - - precision mediump float; - precision mediump int; - - uniform float flipEnvMap; - - varying vec3 vOutputDirection; - - uniform samplerCube envMap; - - void main() { - - gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); - - } - `,blending:On,depthTest:!1,depthWrite:!1})}function Rr(){return` - - precision mediump float; - precision mediump int; - - attribute float faceIndex; - - varying vec3 vOutputDirection; - - // RH coordinate system; PMREM face-indexing convention - vec3 getDirection( vec2 uv, float face ) { - - uv = 2.0 * uv - 1.0; - - vec3 direction = vec3( uv, 1.0 ); - - if ( face == 0.0 ) { - - direction = direction.zyx; // ( 1, v, u ) pos x - - } else if ( face == 1.0 ) { - - direction = direction.xzy; - direction.xz *= -1.0; // ( -u, 1, -v ) pos y - - } else if ( face == 2.0 ) { - - direction.x *= -1.0; // ( -u, v, 1 ) pos z - - } else if ( face == 3.0 ) { - - direction = direction.zyx; - direction.xz *= -1.0; // ( -1, v, -u ) neg x - - } else if ( face == 4.0 ) { - - direction = direction.xzy; - direction.xy *= -1.0; // ( -u, -1, v ) neg y - - } else if ( face == 5.0 ) { - - direction.z *= -1.0; // ( u, v, -1 ) neg z - - } - - return direction; - - } - - void main() { - - vOutputDirection = getDirection( uv, faceIndex ); - gl_Position = vec4( position, 1.0 ); - - } - `}function Hp(i){let e=new WeakMap,t=null;function n(o){if(o&&o.isTexture){const l=o.mapping,c=l===Pa||l===La,u=l===Vi||l===Gi;if(c||u){let h=e.get(o);const d=h!==void 0?h.texture.pmremVersion:0;if(o.isRenderTargetTexture&&o.pmremVersion!==d)return t===null&&(t=new wc(i)),h=c?t.fromEquirectangular(o,h):t.fromCubemap(o,h),h.texture.pmremVersion=o.pmremVersion,e.set(o,h),h.texture;if(h!==void 0)return h.texture;{const p=o.image;return c&&p&&p.height>0||u&&p&&s(p)?(t===null&&(t=new wc(i)),h=c?t.fromEquirectangular(o):t.fromCubemap(o),h.texture.pmremVersion=o.pmremVersion,e.set(o,h),o.addEventListener("dispose",r),h.texture):null}}}return o}function s(o){let l=0;const c=6;for(let u=0;ue.maxTextureSize&&(D=Math.ceil(L/e.maxTextureSize),L=e.maxTextureSize);const A=new Float32Array(L*D*4*h),I=new hl(A,L,D,h);I.type=Sn,I.needsUpdate=!0;const U=R*4;for(let y=0;y0)return i;const s=e*t;let r=Lc[s];if(r===void 0&&(r=new Float32Array(s),Lc[s]=r),e!==0){n.toArray(r,0);for(let a=1,o=0;a!==e;++a)o+=t,i[a].toArray(r,o)}return r}function kt(i,e){if(i.length!==e.length)return!1;for(let t=0,n=i.length;t":" "} ${o}: ${t[a]}`)}return n.join(` -`)}const Bc=new nt;function Hm(i){ht._getMatrix(Bc,ht.workingColorSpace,i);const e=`mat3( ${Bc.elements.map(t=>t.toFixed(4))} )`;switch(ht.getTransfer(i)){case xr:return[e,"LinearTransferOETF"];case St:return[e,"sRGBTransferOETF"];default:return je("WebGLProgram: Unsupported color space: ",i),[e,"LinearTransferOETF"]}}function kc(i,e,t){const n=i.getShaderParameter(e,i.COMPILE_STATUS),r=(i.getShaderInfoLog(e)||"").trim();if(n&&r==="")return"";const a=/ERROR: 0:(\d+)/.exec(r);if(a){const o=parseInt(a[1]);return t.toUpperCase()+` - -`+r+` - -`+Gm(i.getShaderSource(e),o)}else return r}function Wm(i,e){const t=Hm(e);return[`vec4 ${i}( vec4 value ) {`,` return ${t[1]}( vec4( value.rgb * ${t[0]}, value.a ) );`,"}"].join(` -`)}function Xm(i,e){let t;switch(e){case hu:t="Linear";break;case du:t="Reinhard";break;case fu:t="Cineon";break;case pu:t="ACESFilmic";break;case xu:t="AgX";break;case gu:t="Neutral";break;case mu:t="Custom";break;default:je("WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+i+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}const tr=new z;function qm(){ht.getLuminanceCoefficients(tr);const i=tr.x.toFixed(4),e=tr.y.toFixed(4),t=tr.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${i}, ${e}, ${t} );`," return dot( weights, rgb );","}"].join(` -`)}function Ym(i){return[i.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",i.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(hs).join(` -`)}function jm(i){const e=[];for(const t in i){const n=i[t];n!==!1&&e.push("#define "+t+" "+n)}return e.join(` -`)}function Km(i,e){const t={},n=i.getProgramParameter(e,i.ACTIVE_ATTRIBUTES);for(let s=0;s/gm;function lo(i){return i.replace(Jm,Zm)}const $m=new Map;function Zm(i,e){let t=st[e];if(t===void 0){const n=$m.get(e);if(n!==void 0)t=st[n],je('WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return lo(t)}const Qm=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Gc(i){return i.replace(Qm,e0)}function e0(i,e,t,n){let s="";for(let r=parseInt(e);r0&&(m+=` -`),f=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,_].filter(hs).join(` -`),f.length>0&&(f+=` -`)):(m=[Hc(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,_,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",t.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` -`].filter(hs).join(` -`),f=[Hc(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,_,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.envMap?"#define "+u:"",t.envMap?"#define "+h:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",t.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",t.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Zn?"#define TONE_MAPPING":"",t.toneMapping!==Zn?st.tonemapping_pars_fragment:"",t.toneMapping!==Zn?Xm("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",st.colorspace_pars_fragment,Wm("linearToOutputTexel",t.outputColorSpace),qm(),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` -`].filter(hs).join(` -`)),a=lo(a),a=zc(a,t),a=Vc(a,t),o=lo(o),o=zc(o,t),o=Vc(o,t),a=Gc(a),o=Gc(o),t.isRawShaderMaterial!==!0&&(C=`#version 300 es -`,m=[p,"#define attribute in","#define varying out","#define texture2D texture"].join(` -`)+` -`+m,f=["#define varying in",t.glslVersion===Go?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Go?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` -`)+` -`+f);const R=C+m+a,L=C+f+o,D=Oc(s,s.VERTEX_SHADER,R),A=Oc(s,s.FRAGMENT_SHADER,L);s.attachShader(v,D),s.attachShader(v,A),t.index0AttributeName!==void 0?s.bindAttribLocation(v,0,t.index0AttributeName):t.morphTargets===!0&&s.bindAttribLocation(v,0,"position"),s.linkProgram(v);function I(N){if(i.debug.checkShaderErrors){const O=s.getProgramInfoLog(v)||"",W=s.getShaderInfoLog(D)||"",K=s.getShaderInfoLog(A)||"",Z=O.trim(),k=W.trim(),se=K.trim();let q=!0,ie=!0;if(s.getProgramParameter(v,s.LINK_STATUS)===!1)if(q=!1,typeof i.debug.onShaderError=="function")i.debug.onShaderError(s,v,D,A);else{const oe=kc(s,D,"vertex"),pe=kc(s,A,"fragment");Tt("THREE.WebGLProgram: Shader Error "+s.getError()+" - VALIDATE_STATUS "+s.getProgramParameter(v,s.VALIDATE_STATUS)+` - -Material Name: `+N.name+` -Material Type: `+N.type+` - -Program Info Log: `+Z+` -`+oe+` -`+pe)}else Z!==""?je("WebGLProgram: Program Info Log:",Z):(k===""||se==="")&&(ie=!1);ie&&(N.diagnostics={runnable:q,programLog:Z,vertexShader:{log:k,prefix:m},fragmentShader:{log:se,prefix:f}})}s.deleteShader(D),s.deleteShader(A),U=new hr(s,v),M=Km(s,v)}let U;this.getUniforms=function(){return U===void 0&&I(this),U};let M;this.getAttributes=function(){return M===void 0&&I(this),M};let y=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return y===!1&&(y=s.getProgramParameter(v,zm)),y},this.destroy=function(){n.releaseStatesOfProgram(this),s.deleteProgram(v),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=Vm++,this.cacheKey=e,this.usedTimes=1,this.program=v,this.vertexShader=D,this.fragmentShader=A,this}let o0=0;class c0{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(s)===!1&&(a.add(s),s.usedTimes++),a.has(r)===!1&&(a.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return n===void 0&&(n=new l0(e),t.set(e,n)),n}}class l0{constructor(e){this.id=o0++,this.code=e,this.usedTimes=0}}function u0(i,e,t,n,s,r,a){const o=new dl,l=new c0,c=new Set,u=[],h=s.logarithmicDepthBuffer,d=s.vertexTextures;let p=s.precision;const _={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function v(M){return c.add(M),M===0?"uv":`uv${M}`}function m(M,y,N,O,W){const K=O.fog,Z=W.geometry,k=M.isMeshStandardMaterial?O.environment:null,se=(M.isMeshStandardMaterial?t:e).get(M.envMap||k),q=se&&se.mapping===Sr?se.image.height:null,ie=_[M.type];M.precision!==null&&(p=s.getMaxPrecision(M.precision),p!==M.precision&&je("WebGLProgram.getParameters:",M.precision,"not supported, using",p,"instead."));const oe=Z.morphAttributes.position||Z.morphAttributes.normal||Z.morphAttributes.color,pe=oe!==void 0?oe.length:0;let Le=0;Z.morphAttributes.position!==void 0&&(Le=1),Z.morphAttributes.normal!==void 0&&(Le=2),Z.morphAttributes.color!==void 0&&(Le=3);let Ee,Me,ge,G;if(ie){const it=Mn[ie];Ee=it.vertexShader,Me=it.fragmentShader}else Ee=M.vertexShader,Me=M.fragmentShader,l.update(M),ge=l.getVertexShaderID(M),G=l.getFragmentShaderID(M);const Y=i.getRenderTarget(),ue=i.state.buffers.depth.getReversed(),ze=W.isInstancedMesh===!0,Ne=W.isBatchedMesh===!0,ct=!!M.map,Bt=!!M.matcap,rt=!!se,wt=!!M.aoMap,F=!!M.lightMap,at=!!M.bumpMap,ot=!!M.normalMap,yt=!!M.displacementMap,De=!!M.emissiveMap,At=!!M.metalnessMap,Ge=!!M.roughnessMap,Qe=M.anisotropy>0,P=M.clearcoat>0,b=M.dispersion>0,X=M.iridescence>0,te=M.sheen>0,re=M.transmission>0,Q=Qe&&!!M.anisotropyMap,Be=P&&!!M.clearcoatMap,_e=P&&!!M.clearcoatNormalMap,He=P&&!!M.clearcoatRoughnessMap,Ue=X&&!!M.iridescenceMap,ae=X&&!!M.iridescenceThicknessMap,de=te&&!!M.sheenColorMap,Ke=te&&!!M.sheenRoughnessMap,Xe=!!M.specularMap,Te=!!M.specularColorMap,$e=!!M.specularIntensityMap,B=re&&!!M.transmissionMap,ve=re&&!!M.thicknessMap,fe=!!M.gradientMap,me=!!M.alphaMap,le=M.alphaTest>0,ne=!!M.alphaHash,Re=!!M.extensions;let Ze=Zn;M.toneMapped&&(Y===null||Y.isXRRenderTarget===!0)&&(Ze=i.toneMapping);const Et={shaderID:ie,shaderType:M.type,shaderName:M.name,vertexShader:Ee,fragmentShader:Me,defines:M.defines,customVertexShaderID:ge,customFragmentShaderID:G,isRawShaderMaterial:M.isRawShaderMaterial===!0,glslVersion:M.glslVersion,precision:p,batching:Ne,batchingColor:Ne&&W._colorsTexture!==null,instancing:ze,instancingColor:ze&&W.instanceColor!==null,instancingMorph:ze&&W.morphTexture!==null,supportsVertexTextures:d,outputColorSpace:Y===null?i.outputColorSpace:Y.isXRRenderTarget===!0?Y.texture.colorSpace:Hi,alphaToCoverage:!!M.alphaToCoverage,map:ct,matcap:Bt,envMap:rt,envMapMode:rt&&se.mapping,envMapCubeUVHeight:q,aoMap:wt,lightMap:F,bumpMap:at,normalMap:ot,displacementMap:d&&yt,emissiveMap:De,normalMapObjectSpace:ot&&M.normalMapType===Su,normalMapTangentSpace:ot&&M.normalMapType===Er,metalnessMap:At,roughnessMap:Ge,anisotropy:Qe,anisotropyMap:Q,clearcoat:P,clearcoatMap:Be,clearcoatNormalMap:_e,clearcoatRoughnessMap:He,dispersion:b,iridescence:X,iridescenceMap:Ue,iridescenceThicknessMap:ae,sheen:te,sheenColorMap:de,sheenRoughnessMap:Ke,specularMap:Xe,specularColorMap:Te,specularIntensityMap:$e,transmission:re,transmissionMap:B,thicknessMap:ve,gradientMap:fe,opaque:M.transparent===!1&&M.blending===Bi&&M.alphaToCoverage===!1,alphaMap:me,alphaTest:le,alphaHash:ne,combine:M.combine,mapUv:ct&&v(M.map.channel),aoMapUv:wt&&v(M.aoMap.channel),lightMapUv:F&&v(M.lightMap.channel),bumpMapUv:at&&v(M.bumpMap.channel),normalMapUv:ot&&v(M.normalMap.channel),displacementMapUv:yt&&v(M.displacementMap.channel),emissiveMapUv:De&&v(M.emissiveMap.channel),metalnessMapUv:At&&v(M.metalnessMap.channel),roughnessMapUv:Ge&&v(M.roughnessMap.channel),anisotropyMapUv:Q&&v(M.anisotropyMap.channel),clearcoatMapUv:Be&&v(M.clearcoatMap.channel),clearcoatNormalMapUv:_e&&v(M.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:He&&v(M.clearcoatRoughnessMap.channel),iridescenceMapUv:Ue&&v(M.iridescenceMap.channel),iridescenceThicknessMapUv:ae&&v(M.iridescenceThicknessMap.channel),sheenColorMapUv:de&&v(M.sheenColorMap.channel),sheenRoughnessMapUv:Ke&&v(M.sheenRoughnessMap.channel),specularMapUv:Xe&&v(M.specularMap.channel),specularColorMapUv:Te&&v(M.specularColorMap.channel),specularIntensityMapUv:$e&&v(M.specularIntensityMap.channel),transmissionMapUv:B&&v(M.transmissionMap.channel),thicknessMapUv:ve&&v(M.thicknessMap.channel),alphaMapUv:me&&v(M.alphaMap.channel),vertexTangents:!!Z.attributes.tangent&&(ot||Qe),vertexColors:M.vertexColors,vertexAlphas:M.vertexColors===!0&&!!Z.attributes.color&&Z.attributes.color.itemSize===4,pointsUvs:W.isPoints===!0&&!!Z.attributes.uv&&(ct||me),fog:!!K,useFog:M.fog===!0,fogExp2:!!K&&K.isFogExp2,flatShading:M.flatShading===!0&&M.wireframe===!1,sizeAttenuation:M.sizeAttenuation===!0,logarithmicDepthBuffer:h,reversedDepthBuffer:ue,skinning:W.isSkinnedMesh===!0,morphTargets:Z.morphAttributes.position!==void 0,morphNormals:Z.morphAttributes.normal!==void 0,morphColors:Z.morphAttributes.color!==void 0,morphTargetsCount:pe,morphTextureStride:Le,numDirLights:y.directional.length,numPointLights:y.point.length,numSpotLights:y.spot.length,numSpotLightMaps:y.spotLightMap.length,numRectAreaLights:y.rectArea.length,numHemiLights:y.hemi.length,numDirLightShadows:y.directionalShadowMap.length,numPointLightShadows:y.pointShadowMap.length,numSpotLightShadows:y.spotShadowMap.length,numSpotLightShadowsWithMaps:y.numSpotLightShadowsWithMaps,numLightProbes:y.numLightProbes,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:M.dithering,shadowMapEnabled:i.shadowMap.enabled&&N.length>0,shadowMapType:i.shadowMap.type,toneMapping:Ze,decodeVideoTexture:ct&&M.map.isVideoTexture===!0&&ht.getTransfer(M.map.colorSpace)===St,decodeVideoTextureEmissive:De&&M.emissiveMap.isVideoTexture===!0&&ht.getTransfer(M.emissiveMap.colorSpace)===St,premultipliedAlpha:M.premultipliedAlpha,doubleSided:M.side===yn,flipSided:M.side===tn,useDepthPacking:M.depthPacking>=0,depthPacking:M.depthPacking||0,index0AttributeName:M.index0AttributeName,extensionClipCullDistance:Re&&M.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(Re&&M.extensions.multiDraw===!0||Ne)&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:M.customProgramCacheKey()};return Et.vertexUv1s=c.has(1),Et.vertexUv2s=c.has(2),Et.vertexUv3s=c.has(3),c.clear(),Et}function f(M){const y=[];if(M.shaderID?y.push(M.shaderID):(y.push(M.customVertexShaderID),y.push(M.customFragmentShaderID)),M.defines!==void 0)for(const N in M.defines)y.push(N),y.push(M.defines[N]);return M.isRawShaderMaterial===!1&&(C(y,M),R(y,M),y.push(i.outputColorSpace)),y.push(M.customProgramCacheKey),y.join()}function C(M,y){M.push(y.precision),M.push(y.outputColorSpace),M.push(y.envMapMode),M.push(y.envMapCubeUVHeight),M.push(y.mapUv),M.push(y.alphaMapUv),M.push(y.lightMapUv),M.push(y.aoMapUv),M.push(y.bumpMapUv),M.push(y.normalMapUv),M.push(y.displacementMapUv),M.push(y.emissiveMapUv),M.push(y.metalnessMapUv),M.push(y.roughnessMapUv),M.push(y.anisotropyMapUv),M.push(y.clearcoatMapUv),M.push(y.clearcoatNormalMapUv),M.push(y.clearcoatRoughnessMapUv),M.push(y.iridescenceMapUv),M.push(y.iridescenceThicknessMapUv),M.push(y.sheenColorMapUv),M.push(y.sheenRoughnessMapUv),M.push(y.specularMapUv),M.push(y.specularColorMapUv),M.push(y.specularIntensityMapUv),M.push(y.transmissionMapUv),M.push(y.thicknessMapUv),M.push(y.combine),M.push(y.fogExp2),M.push(y.sizeAttenuation),M.push(y.morphTargetsCount),M.push(y.morphAttributeCount),M.push(y.numDirLights),M.push(y.numPointLights),M.push(y.numSpotLights),M.push(y.numSpotLightMaps),M.push(y.numHemiLights),M.push(y.numRectAreaLights),M.push(y.numDirLightShadows),M.push(y.numPointLightShadows),M.push(y.numSpotLightShadows),M.push(y.numSpotLightShadowsWithMaps),M.push(y.numLightProbes),M.push(y.shadowMapType),M.push(y.toneMapping),M.push(y.numClippingPlanes),M.push(y.numClipIntersection),M.push(y.depthPacking)}function R(M,y){o.disableAll(),y.supportsVertexTextures&&o.enable(0),y.instancing&&o.enable(1),y.instancingColor&&o.enable(2),y.instancingMorph&&o.enable(3),y.matcap&&o.enable(4),y.envMap&&o.enable(5),y.normalMapObjectSpace&&o.enable(6),y.normalMapTangentSpace&&o.enable(7),y.clearcoat&&o.enable(8),y.iridescence&&o.enable(9),y.alphaTest&&o.enable(10),y.vertexColors&&o.enable(11),y.vertexAlphas&&o.enable(12),y.vertexUv1s&&o.enable(13),y.vertexUv2s&&o.enable(14),y.vertexUv3s&&o.enable(15),y.vertexTangents&&o.enable(16),y.anisotropy&&o.enable(17),y.alphaHash&&o.enable(18),y.batching&&o.enable(19),y.dispersion&&o.enable(20),y.batchingColor&&o.enable(21),y.gradientMap&&o.enable(22),M.push(o.mask),o.disableAll(),y.fog&&o.enable(0),y.useFog&&o.enable(1),y.flatShading&&o.enable(2),y.logarithmicDepthBuffer&&o.enable(3),y.reversedDepthBuffer&&o.enable(4),y.skinning&&o.enable(5),y.morphTargets&&o.enable(6),y.morphNormals&&o.enable(7),y.morphColors&&o.enable(8),y.premultipliedAlpha&&o.enable(9),y.shadowMapEnabled&&o.enable(10),y.doubleSided&&o.enable(11),y.flipSided&&o.enable(12),y.useDepthPacking&&o.enable(13),y.dithering&&o.enable(14),y.transmission&&o.enable(15),y.sheen&&o.enable(16),y.opaque&&o.enable(17),y.pointsUvs&&o.enable(18),y.decodeVideoTexture&&o.enable(19),y.decodeVideoTextureEmissive&&o.enable(20),y.alphaToCoverage&&o.enable(21),M.push(o.mask)}function L(M){const y=_[M.type];let N;if(y){const O=Mn[y];N=fh.clone(O.uniforms)}else N=M.uniforms;return N}function D(M,y){let N;for(let O=0,W=u.length;O0?n.push(f):p.transparent===!0?s.push(f):t.push(f)}function l(h,d,p,_,v,m){const f=a(h,d,p,_,v,m);p.transmission>0?n.unshift(f):p.transparent===!0?s.unshift(f):t.unshift(f)}function c(h,d){t.length>1&&t.sort(h||d0),n.length>1&&n.sort(d||Wc),s.length>1&&s.sort(d||Wc)}function u(){for(let h=e,d=i.length;h=r.length?(a=new Xc,r.push(a)):a=r[s],a}function t(){i=new WeakMap}return{get:e,dispose:t}}function p0(){const i={};return{get:function(e){if(i[e.id]!==void 0)return i[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new z,color:new tt};break;case"SpotLight":t={position:new z,direction:new z,color:new tt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new z,color:new tt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new z,skyColor:new tt,groundColor:new tt};break;case"RectAreaLight":t={color:new tt,position:new z,halfWidth:new z,halfHeight:new z};break}return i[e.id]=t,t}}}function m0(){const i={};return{get:function(e){if(i[e.id]!==void 0)return i[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dt};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dt};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dt,shadowCameraNear:1,shadowCameraFar:1e3};break}return i[e.id]=t,t}}}let x0=0;function g0(i,e){return(e.castShadow?2:0)-(i.castShadow?2:0)+(e.map?1:0)-(i.map?1:0)}function _0(i){const e=new p0,t=m0(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new z);const s=new z,r=new et,a=new et;function o(c){let u=0,h=0,d=0;for(let M=0;M<9;M++)n.probe[M].set(0,0,0);let p=0,_=0,v=0,m=0,f=0,C=0,R=0,L=0,D=0,A=0,I=0;c.sort(g0);for(let M=0,y=c.length;M0&&(i.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=be.LTC_FLOAT_1,n.rectAreaLTC2=be.LTC_FLOAT_2):(n.rectAreaLTC1=be.LTC_HALF_1,n.rectAreaLTC2=be.LTC_HALF_2)),n.ambient[0]=u,n.ambient[1]=h,n.ambient[2]=d;const U=n.hash;(U.directionalLength!==p||U.pointLength!==_||U.spotLength!==v||U.rectAreaLength!==m||U.hemiLength!==f||U.numDirectionalShadows!==C||U.numPointShadows!==R||U.numSpotShadows!==L||U.numSpotMaps!==D||U.numLightProbes!==I)&&(n.directional.length=p,n.spot.length=v,n.rectArea.length=m,n.point.length=_,n.hemi.length=f,n.directionalShadow.length=C,n.directionalShadowMap.length=C,n.pointShadow.length=R,n.pointShadowMap.length=R,n.spotShadow.length=L,n.spotShadowMap.length=L,n.directionalShadowMatrix.length=C,n.pointShadowMatrix.length=R,n.spotLightMatrix.length=L+D-A,n.spotLightMap.length=D,n.numSpotLightShadowsWithMaps=A,n.numLightProbes=I,U.directionalLength=p,U.pointLength=_,U.spotLength=v,U.rectAreaLength=m,U.hemiLength=f,U.numDirectionalShadows=C,U.numPointShadows=R,U.numSpotShadows=L,U.numSpotMaps=D,U.numLightProbes=I,n.version=x0++)}function l(c,u){let h=0,d=0,p=0,_=0,v=0;const m=u.matrixWorldInverse;for(let f=0,C=c.length;f=a.length?(o=new qc(i),a.push(o)):o=a[r],o}function n(){e=new WeakMap}return{get:t,dispose:n}}const b0=`void main() { - gl_Position = vec4( position, 1.0 ); -}`,M0=`uniform sampler2D shadow_pass; -uniform vec2 resolution; -uniform float radius; -#include -void main() { - const float samples = float( VSM_SAMPLES ); - float mean = 0.0; - float squared_mean = 0.0; - float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); - float uvStart = samples <= 1.0 ? 0.0 : - 1.0; - for ( float i = 0.0; i < samples; i ++ ) { - float uvOffset = uvStart + i * uvStride; - #ifdef HORIZONTAL_PASS - vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); - mean += distribution.x; - squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; - #else - float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); - mean += depth; - squared_mean += depth * depth; - #endif - } - mean = mean / samples; - squared_mean = squared_mean / samples; - float std_dev = sqrt( squared_mean - mean * mean ); - gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function y0(i,e,t){let n=new To;const s=new dt,r=new dt,a=new vt,o=new Rh({depthPacking:yu}),l=new Ch,c={},u=t.maxTextureSize,h={[kn]:tn,[tn]:kn,[yn]:yn},d=new zn({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new dt},radius:{value:4}},vertexShader:b0,fragmentShader:M0}),p=d.clone();p.defines.HORIZONTAL_PASS=1;const _=new sn;_.setAttribute("position",new hn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new Xt(_,d),m=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=el;let f=this.type;this.render=function(A,I,U){if(m.enabled===!1||m.autoUpdate===!1&&m.needsUpdate===!1||A.length===0)return;const M=i.getRenderTarget(),y=i.getActiveCubeFace(),N=i.getActiveMipmapLevel(),O=i.state;O.setBlending(On),O.buffers.depth.getReversed()===!0?O.buffers.color.setClear(0,0,0,0):O.buffers.color.setClear(1,1,1,1),O.buffers.depth.setTest(!0),O.setScissorTest(!1);const W=f!==Un&&this.type===Un,K=f===Un&&this.type!==Un;for(let Z=0,k=A.length;Zu||s.y>u)&&(s.x>u&&(r.x=Math.floor(u/ie.x),s.x=r.x*ie.x,q.mapSize.x=r.x),s.y>u&&(r.y=Math.floor(u/ie.y),s.y=r.y*ie.y,q.mapSize.y=r.y)),q.map===null||W===!0||K===!0){const pe=this.type!==Un?{minFilter:un,magFilter:un}:{};q.map!==null&&q.map.dispose(),q.map=new xi(s.x,s.y,pe),q.map.texture.name=se.name+".shadowMap",q.camera.updateProjectionMatrix()}i.setRenderTarget(q.map),i.clear();const oe=q.getViewportCount();for(let pe=0;pe0||I.map&&I.alphaTest>0||I.alphaToCoverage===!0){const O=y.uuid,W=I.uuid;let K=c[O];K===void 0&&(K={},c[O]=K);let Z=K[W];Z===void 0&&(Z=y.clone(),K[W]=Z,I.addEventListener("dispose",D)),y=Z}if(y.visible=I.visible,y.wireframe=I.wireframe,M===Un?y.side=I.shadowSide!==null?I.shadowSide:I.side:y.side=I.shadowSide!==null?I.shadowSide:h[I.side],y.alphaMap=I.alphaMap,y.alphaTest=I.alphaToCoverage===!0?.5:I.alphaTest,y.map=I.map,y.clipShadows=I.clipShadows,y.clippingPlanes=I.clippingPlanes,y.clipIntersection=I.clipIntersection,y.displacementMap=I.displacementMap,y.displacementScale=I.displacementScale,y.displacementBias=I.displacementBias,y.wireframeLinewidth=I.wireframeLinewidth,y.linewidth=I.linewidth,U.isPointLight===!0&&y.isMeshDistanceMaterial===!0){const O=i.properties.get(y);O.light=U}return y}function L(A,I,U,M,y){if(A.visible===!1)return;if(A.layers.test(I.layers)&&(A.isMesh||A.isLine||A.isPoints)&&(A.castShadow||A.receiveShadow&&y===Un)&&(!A.frustumCulled||n.intersectsObject(A))){A.modelViewMatrix.multiplyMatrices(U.matrixWorldInverse,A.matrixWorld);const W=e.update(A),K=A.material;if(Array.isArray(K)){const Z=W.groups;for(let k=0,se=Z.length;k=1):q.indexOf("OpenGL ES")!==-1&&(se=parseFloat(/^OpenGL ES (\d)/.exec(q)[1]),k=se>=2);let ie=null,oe={};const pe=i.getParameter(i.SCISSOR_BOX),Le=i.getParameter(i.VIEWPORT),Ee=new vt().fromArray(pe),Me=new vt().fromArray(Le);function ge(B,ve,fe,me){const le=new Uint8Array(4),ne=i.createTexture();i.bindTexture(B,ne),i.texParameteri(B,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(B,i.TEXTURE_MAG_FILTER,i.NEAREST);for(let Re=0;Re"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new dt,u=new WeakMap;let h;const d=new WeakMap;let p=!1;try{p=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function _(P,b){return p?new OffscreenCanvas(P,b):ys("canvas")}function v(P,b,X){let te=1;const re=Qe(P);if((re.width>X||re.height>X)&&(te=X/Math.max(re.width,re.height)),te<1)if(typeof HTMLImageElement<"u"&&P instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&P instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&P instanceof ImageBitmap||typeof VideoFrame<"u"&&P instanceof VideoFrame){const Q=Math.floor(te*re.width),Be=Math.floor(te*re.height);h===void 0&&(h=_(Q,Be));const _e=b?_(Q,Be):h;return _e.width=Q,_e.height=Be,_e.getContext("2d").drawImage(P,0,0,Q,Be),je("WebGLRenderer: Texture has been resized from ("+re.width+"x"+re.height+") to ("+Q+"x"+Be+")."),_e}else return"data"in P&&je("WebGLRenderer: Image in DataTexture is too big ("+re.width+"x"+re.height+")."),P;return P}function m(P){return P.generateMipmaps}function f(P){i.generateMipmap(P)}function C(P){return P.isWebGLCubeRenderTarget?i.TEXTURE_CUBE_MAP:P.isWebGL3DRenderTarget?i.TEXTURE_3D:P.isWebGLArrayRenderTarget||P.isCompressedArrayTexture?i.TEXTURE_2D_ARRAY:i.TEXTURE_2D}function R(P,b,X,te,re=!1){if(P!==null){if(i[P]!==void 0)return i[P];je("WebGLRenderer: Attempt to use non-existing WebGL internal format '"+P+"'")}let Q=b;if(b===i.RED&&(X===i.FLOAT&&(Q=i.R32F),X===i.HALF_FLOAT&&(Q=i.R16F),X===i.UNSIGNED_BYTE&&(Q=i.R8)),b===i.RED_INTEGER&&(X===i.UNSIGNED_BYTE&&(Q=i.R8UI),X===i.UNSIGNED_SHORT&&(Q=i.R16UI),X===i.UNSIGNED_INT&&(Q=i.R32UI),X===i.BYTE&&(Q=i.R8I),X===i.SHORT&&(Q=i.R16I),X===i.INT&&(Q=i.R32I)),b===i.RG&&(X===i.FLOAT&&(Q=i.RG32F),X===i.HALF_FLOAT&&(Q=i.RG16F),X===i.UNSIGNED_BYTE&&(Q=i.RG8)),b===i.RG_INTEGER&&(X===i.UNSIGNED_BYTE&&(Q=i.RG8UI),X===i.UNSIGNED_SHORT&&(Q=i.RG16UI),X===i.UNSIGNED_INT&&(Q=i.RG32UI),X===i.BYTE&&(Q=i.RG8I),X===i.SHORT&&(Q=i.RG16I),X===i.INT&&(Q=i.RG32I)),b===i.RGB_INTEGER&&(X===i.UNSIGNED_BYTE&&(Q=i.RGB8UI),X===i.UNSIGNED_SHORT&&(Q=i.RGB16UI),X===i.UNSIGNED_INT&&(Q=i.RGB32UI),X===i.BYTE&&(Q=i.RGB8I),X===i.SHORT&&(Q=i.RGB16I),X===i.INT&&(Q=i.RGB32I)),b===i.RGBA_INTEGER&&(X===i.UNSIGNED_BYTE&&(Q=i.RGBA8UI),X===i.UNSIGNED_SHORT&&(Q=i.RGBA16UI),X===i.UNSIGNED_INT&&(Q=i.RGBA32UI),X===i.BYTE&&(Q=i.RGBA8I),X===i.SHORT&&(Q=i.RGBA16I),X===i.INT&&(Q=i.RGBA32I)),b===i.RGB&&(X===i.UNSIGNED_INT_5_9_9_9_REV&&(Q=i.RGB9_E5),X===i.UNSIGNED_INT_10F_11F_11F_REV&&(Q=i.R11F_G11F_B10F)),b===i.RGBA){const Be=re?xr:ht.getTransfer(te);X===i.FLOAT&&(Q=i.RGBA32F),X===i.HALF_FLOAT&&(Q=i.RGBA16F),X===i.UNSIGNED_BYTE&&(Q=Be===St?i.SRGB8_ALPHA8:i.RGBA8),X===i.UNSIGNED_SHORT_4_4_4_4&&(Q=i.RGBA4),X===i.UNSIGNED_SHORT_5_5_5_1&&(Q=i.RGB5_A1)}return(Q===i.R16F||Q===i.R32F||Q===i.RG16F||Q===i.RG32F||Q===i.RGBA16F||Q===i.RGBA32F)&&e.get("EXT_color_buffer_float"),Q}function L(P,b){let X;return P?b===null||b===mi||b===vs?X=i.DEPTH24_STENCIL8:b===Sn?X=i.DEPTH32F_STENCIL8:b===_s&&(X=i.DEPTH24_STENCIL8,je("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):b===null||b===mi||b===vs?X=i.DEPTH_COMPONENT24:b===Sn?X=i.DEPTH_COMPONENT32F:b===_s&&(X=i.DEPTH_COMPONENT16),X}function D(P,b){return m(P)===!0||P.isFramebufferTexture&&P.minFilter!==un&&P.minFilter!==Qt?Math.log2(Math.max(b.width,b.height))+1:P.mipmaps!==void 0&&P.mipmaps.length>0?P.mipmaps.length:P.isCompressedTexture&&Array.isArray(P.image)?b.mipmaps.length:1}function A(P){const b=P.target;b.removeEventListener("dispose",A),U(b),b.isVideoTexture&&u.delete(b)}function I(P){const b=P.target;b.removeEventListener("dispose",I),y(b)}function U(P){const b=n.get(P);if(b.__webglInit===void 0)return;const X=P.source,te=d.get(X);if(te){const re=te[b.__cacheKey];re.usedTimes--,re.usedTimes===0&&M(P),Object.keys(te).length===0&&d.delete(X)}n.remove(P)}function M(P){const b=n.get(P);i.deleteTexture(b.__webglTexture);const X=P.source,te=d.get(X);delete te[b.__cacheKey],a.memory.textures--}function y(P){const b=n.get(P);if(P.depthTexture&&(P.depthTexture.dispose(),n.remove(P.depthTexture)),P.isWebGLCubeRenderTarget)for(let te=0;te<6;te++){if(Array.isArray(b.__webglFramebuffer[te]))for(let re=0;re=s.maxTextures&&je("WebGLTextures: Trying to use "+P+" texture units while this GPU supports only "+s.maxTextures),N+=1,P}function K(P){const b=[];return b.push(P.wrapS),b.push(P.wrapT),b.push(P.wrapR||0),b.push(P.magFilter),b.push(P.minFilter),b.push(P.anisotropy),b.push(P.internalFormat),b.push(P.format),b.push(P.type),b.push(P.generateMipmaps),b.push(P.premultiplyAlpha),b.push(P.flipY),b.push(P.unpackAlignment),b.push(P.colorSpace),b.join()}function Z(P,b){const X=n.get(P);if(P.isVideoTexture&&At(P),P.isRenderTargetTexture===!1&&P.isExternalTexture!==!0&&P.version>0&&X.__version!==P.version){const te=P.image;if(te===null)je("WebGLRenderer: Texture marked for update but no image data found.");else if(te.complete===!1)je("WebGLRenderer: Texture marked for update but image is incomplete");else{G(X,P,b);return}}else P.isExternalTexture&&(X.__webglTexture=P.sourceTexture?P.sourceTexture:null);t.bindTexture(i.TEXTURE_2D,X.__webglTexture,i.TEXTURE0+b)}function k(P,b){const X=n.get(P);if(P.isRenderTargetTexture===!1&&P.version>0&&X.__version!==P.version){G(X,P,b);return}else P.isExternalTexture&&(X.__webglTexture=P.sourceTexture?P.sourceTexture:null);t.bindTexture(i.TEXTURE_2D_ARRAY,X.__webglTexture,i.TEXTURE0+b)}function se(P,b){const X=n.get(P);if(P.isRenderTargetTexture===!1&&P.version>0&&X.__version!==P.version){G(X,P,b);return}t.bindTexture(i.TEXTURE_3D,X.__webglTexture,i.TEXTURE0+b)}function q(P,b){const X=n.get(P);if(P.version>0&&X.__version!==P.version){Y(X,P,b);return}t.bindTexture(i.TEXTURE_CUBE_MAP,X.__webglTexture,i.TEXTURE0+b)}const ie={[fi]:i.REPEAT,[ln]:i.CLAMP_TO_EDGE,[Da]:i.MIRRORED_REPEAT},oe={[un]:i.NEAREST,[vu]:i.NEAREST_MIPMAP_NEAREST,[Ds]:i.NEAREST_MIPMAP_LINEAR,[Qt]:i.LINEAR,[Br]:i.LINEAR_MIPMAP_NEAREST,[Fn]:i.LINEAR_MIPMAP_LINEAR},pe={[Eu]:i.NEVER,[Pu]:i.ALWAYS,[Tu]:i.LESS,[ll]:i.LEQUAL,[wu]:i.EQUAL,[Cu]:i.GEQUAL,[Au]:i.GREATER,[Ru]:i.NOTEQUAL};function Le(P,b){if(b.type===Sn&&e.has("OES_texture_float_linear")===!1&&(b.magFilter===Qt||b.magFilter===Br||b.magFilter===Ds||b.magFilter===Fn||b.minFilter===Qt||b.minFilter===Br||b.minFilter===Ds||b.minFilter===Fn)&&je("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),i.texParameteri(P,i.TEXTURE_WRAP_S,ie[b.wrapS]),i.texParameteri(P,i.TEXTURE_WRAP_T,ie[b.wrapT]),(P===i.TEXTURE_3D||P===i.TEXTURE_2D_ARRAY)&&i.texParameteri(P,i.TEXTURE_WRAP_R,ie[b.wrapR]),i.texParameteri(P,i.TEXTURE_MAG_FILTER,oe[b.magFilter]),i.texParameteri(P,i.TEXTURE_MIN_FILTER,oe[b.minFilter]),b.compareFunction&&(i.texParameteri(P,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE),i.texParameteri(P,i.TEXTURE_COMPARE_FUNC,pe[b.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(b.magFilter===un||b.minFilter!==Ds&&b.minFilter!==Fn||b.type===Sn&&e.has("OES_texture_float_linear")===!1)return;if(b.anisotropy>1||n.get(b).__currentAnisotropy){const X=e.get("EXT_texture_filter_anisotropic");i.texParameterf(P,X.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(b.anisotropy,s.getMaxAnisotropy())),n.get(b).__currentAnisotropy=b.anisotropy}}}function Ee(P,b){let X=!1;P.__webglInit===void 0&&(P.__webglInit=!0,b.addEventListener("dispose",A));const te=b.source;let re=d.get(te);re===void 0&&(re={},d.set(te,re));const Q=K(b);if(Q!==P.__cacheKey){re[Q]===void 0&&(re[Q]={texture:i.createTexture(),usedTimes:0},a.memory.textures++,X=!0),re[Q].usedTimes++;const Be=re[P.__cacheKey];Be!==void 0&&(re[P.__cacheKey].usedTimes--,Be.usedTimes===0&&M(b)),P.__cacheKey=Q,P.__webglTexture=re[Q].texture}return X}function Me(P,b,X){return Math.floor(Math.floor(P/X)/b)}function ge(P,b,X,te){const Q=P.updateRanges;if(Q.length===0)t.texSubImage2D(i.TEXTURE_2D,0,0,0,b.width,b.height,X,te,b.data);else{Q.sort((ae,de)=>ae.start-de.start);let Be=0;for(let ae=1;ae0){B&&ve&&t.texStorage2D(i.TEXTURE_2D,me,Xe,$e[0].width,$e[0].height);for(let le=0,ne=$e.length;le0){const Re=Sc(Te.width,Te.height,b.format,b.type);for(const Ze of b.layerUpdates){const Et=Te.data.subarray(Ze*Re/Te.data.BYTES_PER_ELEMENT,(Ze+1)*Re/Te.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY,le,0,0,Ze,Te.width,Te.height,1,de,Et)}b.clearLayerUpdates()}else t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY,le,0,0,0,Te.width,Te.height,ae.depth,de,Te.data)}else t.compressedTexImage3D(i.TEXTURE_2D_ARRAY,le,Xe,Te.width,Te.height,ae.depth,0,Te.data,0,0);else je("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else B?fe&&t.texSubImage3D(i.TEXTURE_2D_ARRAY,le,0,0,0,Te.width,Te.height,ae.depth,de,Ke,Te.data):t.texImage3D(i.TEXTURE_2D_ARRAY,le,Xe,Te.width,Te.height,ae.depth,0,de,Ke,Te.data)}else{B&&ve&&t.texStorage2D(i.TEXTURE_2D,me,Xe,$e[0].width,$e[0].height);for(let le=0,ne=$e.length;le0){const le=Sc(ae.width,ae.height,b.format,b.type);for(const ne of b.layerUpdates){const Re=ae.data.subarray(ne*le/ae.data.BYTES_PER_ELEMENT,(ne+1)*le/ae.data.BYTES_PER_ELEMENT);t.texSubImage3D(i.TEXTURE_2D_ARRAY,0,0,0,ne,ae.width,ae.height,1,de,Ke,Re)}b.clearLayerUpdates()}else t.texSubImage3D(i.TEXTURE_2D_ARRAY,0,0,0,0,ae.width,ae.height,ae.depth,de,Ke,ae.data)}else t.texImage3D(i.TEXTURE_2D_ARRAY,0,Xe,ae.width,ae.height,ae.depth,0,de,Ke,ae.data);else if(b.isData3DTexture)B?(ve&&t.texStorage3D(i.TEXTURE_3D,me,Xe,ae.width,ae.height,ae.depth),fe&&t.texSubImage3D(i.TEXTURE_3D,0,0,0,0,ae.width,ae.height,ae.depth,de,Ke,ae.data)):t.texImage3D(i.TEXTURE_3D,0,Xe,ae.width,ae.height,ae.depth,0,de,Ke,ae.data);else if(b.isFramebufferTexture){if(ve)if(B)t.texStorage2D(i.TEXTURE_2D,me,Xe,ae.width,ae.height);else{let le=ae.width,ne=ae.height;for(let Re=0;Re>=1,ne>>=1}}else if($e.length>0){if(B&&ve){const le=Qe($e[0]);t.texStorage2D(i.TEXTURE_2D,me,Xe,le.width,le.height)}for(let le=0,ne=$e.length;le0&&me++;const ne=Qe(de[0]);t.texStorage2D(i.TEXTURE_CUBE_MAP,me,$e,ne.width,ne.height)}for(let ne=0;ne<6;ne++)if(ae){B?fe&&t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+ne,0,0,0,de[ne].width,de[ne].height,Xe,Te,de[ne].data):t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+ne,0,$e,de[ne].width,de[ne].height,0,Xe,Te,de[ne].data);for(let Re=0;Re>Q),Ke=Math.max(1,b.height>>Q);re===i.TEXTURE_3D||re===i.TEXTURE_2D_ARRAY?t.texImage3D(re,Q,He,de,Ke,b.depth,0,Be,_e,null):t.texImage2D(re,Q,He,de,Ke,0,Be,_e,null)}t.bindFramebuffer(i.FRAMEBUFFER,P),De(b)?o.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER,te,re,ae.__webglTexture,0,yt(b)):(re===i.TEXTURE_2D||re>=i.TEXTURE_CUBE_MAP_POSITIVE_X&&re<=i.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&i.framebufferTexture2D(i.FRAMEBUFFER,te,re,ae.__webglTexture,Q),t.bindFramebuffer(i.FRAMEBUFFER,null)}function ze(P,b,X){if(i.bindRenderbuffer(i.RENDERBUFFER,P),b.depthBuffer){const te=b.depthTexture,re=te&&te.isDepthTexture?te.type:null,Q=L(b.stencilBuffer,re),Be=b.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,_e=yt(b);De(b)?o.renderbufferStorageMultisampleEXT(i.RENDERBUFFER,_e,Q,b.width,b.height):X?i.renderbufferStorageMultisample(i.RENDERBUFFER,_e,Q,b.width,b.height):i.renderbufferStorage(i.RENDERBUFFER,Q,b.width,b.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,Be,i.RENDERBUFFER,P)}else{const te=b.textures;for(let re=0;re{delete b.__boundDepthTexture,delete b.__depthDisposeCallback,te.removeEventListener("dispose",re)};te.addEventListener("dispose",re),b.__depthDisposeCallback=re}b.__boundDepthTexture=te}if(P.depthTexture&&!b.__autoAllocateDepthBuffer){if(X)throw new Error("target.depthTexture not supported in Cube render targets");const te=P.texture.mipmaps;te&&te.length>0?Ne(b.__webglFramebuffer[0],P):Ne(b.__webglFramebuffer,P)}else if(X){b.__webglDepthbuffer=[];for(let te=0;te<6;te++)if(t.bindFramebuffer(i.FRAMEBUFFER,b.__webglFramebuffer[te]),b.__webglDepthbuffer[te]===void 0)b.__webglDepthbuffer[te]=i.createRenderbuffer(),ze(b.__webglDepthbuffer[te],P,!1);else{const re=P.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,Q=b.__webglDepthbuffer[te];i.bindRenderbuffer(i.RENDERBUFFER,Q),i.framebufferRenderbuffer(i.FRAMEBUFFER,re,i.RENDERBUFFER,Q)}}else{const te=P.texture.mipmaps;if(te&&te.length>0?t.bindFramebuffer(i.FRAMEBUFFER,b.__webglFramebuffer[0]):t.bindFramebuffer(i.FRAMEBUFFER,b.__webglFramebuffer),b.__webglDepthbuffer===void 0)b.__webglDepthbuffer=i.createRenderbuffer(),ze(b.__webglDepthbuffer,P,!1);else{const re=P.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,Q=b.__webglDepthbuffer;i.bindRenderbuffer(i.RENDERBUFFER,Q),i.framebufferRenderbuffer(i.FRAMEBUFFER,re,i.RENDERBUFFER,Q)}}t.bindFramebuffer(i.FRAMEBUFFER,null)}function Bt(P,b,X){const te=n.get(P);b!==void 0&&ue(te.__webglFramebuffer,P,P.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,0),X!==void 0&&ct(P)}function rt(P){const b=P.texture,X=n.get(P),te=n.get(b);P.addEventListener("dispose",I);const re=P.textures,Q=P.isWebGLCubeRenderTarget===!0,Be=re.length>1;if(Be||(te.__webglTexture===void 0&&(te.__webglTexture=i.createTexture()),te.__version=b.version,a.memory.textures++),Q){X.__webglFramebuffer=[];for(let _e=0;_e<6;_e++)if(b.mipmaps&&b.mipmaps.length>0){X.__webglFramebuffer[_e]=[];for(let He=0;He0){X.__webglFramebuffer=[];for(let _e=0;_e0&&De(P)===!1){X.__webglMultisampledFramebuffer=i.createFramebuffer(),X.__webglColorRenderbuffer=[],t.bindFramebuffer(i.FRAMEBUFFER,X.__webglMultisampledFramebuffer);for(let _e=0;_e0)for(let He=0;He0)for(let He=0;He0){if(De(P)===!1){const b=P.textures,X=P.width,te=P.height;let re=i.COLOR_BUFFER_BIT;const Q=P.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,Be=n.get(P),_e=b.length>1;if(_e)for(let Ue=0;Ue0?t.bindFramebuffer(i.DRAW_FRAMEBUFFER,Be.__webglFramebuffer[0]):t.bindFramebuffer(i.DRAW_FRAMEBUFFER,Be.__webglFramebuffer);for(let Ue=0;Ue0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&b.__useRenderToTexture!==!1}function At(P){const b=a.render.frame;u.get(P)!==b&&(u.set(P,b),P.update())}function Ge(P,b){const X=P.colorSpace,te=P.format,re=P.type;return P.isCompressedTexture===!0||P.isVideoTexture===!0||X!==Hi&&X!==Jn&&(ht.getTransfer(X)===St?(te!==fn||re!==Tn)&&je("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):Tt("WebGLTextures: Unsupported texture color space:",X)),b}function Qe(P){return typeof HTMLImageElement<"u"&&P instanceof HTMLImageElement?(c.width=P.naturalWidth||P.width,c.height=P.naturalHeight||P.height):typeof VideoFrame<"u"&&P instanceof VideoFrame?(c.width=P.displayWidth,c.height=P.displayHeight):(c.width=P.width,c.height=P.height),c}this.allocateTextureUnit=W,this.resetTextureUnits=O,this.setTexture2D=Z,this.setTexture2DArray=k,this.setTexture3D=se,this.setTextureCube=q,this.rebindTextures=Bt,this.setupRenderTarget=rt,this.updateRenderTargetMipmap=wt,this.updateMultisampleRenderTarget=ot,this.setupDepthRenderbuffer=ct,this.setupFrameBufferTexture=ue,this.useMultisampledRTT=De}function w0(i,e){function t(n,s=Jn){let r;const a=ht.getTransfer(s);if(n===Tn)return i.UNSIGNED_BYTE;if(n===fo)return i.UNSIGNED_SHORT_4_4_4_4;if(n===po)return i.UNSIGNED_SHORT_5_5_5_1;if(n===sl)return i.UNSIGNED_INT_5_9_9_9_REV;if(n===rl)return i.UNSIGNED_INT_10F_11F_11F_REV;if(n===nl)return i.BYTE;if(n===il)return i.SHORT;if(n===_s)return i.UNSIGNED_SHORT;if(n===ho)return i.INT;if(n===mi)return i.UNSIGNED_INT;if(n===Sn)return i.FLOAT;if(n===Yi)return i.HALF_FLOAT;if(n===al)return i.ALPHA;if(n===ol)return i.RGB;if(n===fn)return i.RGBA;if(n===bs)return i.DEPTH_COMPONENT;if(n===Ms)return i.DEPTH_STENCIL;if(n===cl)return i.RED;if(n===mo)return i.RED_INTEGER;if(n===xo)return i.RG;if(n===go)return i.RG_INTEGER;if(n===_o)return i.RGBA_INTEGER;if(n===or||n===cr||n===lr||n===ur)if(a===St)if(r=e.get("WEBGL_compressed_texture_s3tc_srgb"),r!==null){if(n===or)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===cr)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===lr)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===ur)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(r=e.get("WEBGL_compressed_texture_s3tc"),r!==null){if(n===or)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===cr)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===lr)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===ur)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Na||n===Ia||n===Ua||n===Fa)if(r=e.get("WEBGL_compressed_texture_pvrtc"),r!==null){if(n===Na)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Ia)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Ua)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Fa)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===Oa||n===Ba||n===ka)if(r=e.get("WEBGL_compressed_texture_etc"),r!==null){if(n===Oa||n===Ba)return a===St?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===ka)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===za||n===Va||n===Ga||n===Ha||n===Wa||n===Xa||n===qa||n===Ya||n===ja||n===Ka||n===Ja||n===$a||n===Za||n===Qa)if(r=e.get("WEBGL_compressed_texture_astc"),r!==null){if(n===za)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Va)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ga)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Ha)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Wa)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Xa)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===qa)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Ya)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===ja)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Ka)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Ja)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===$a)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===Za)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===Qa)return a===St?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===eo||n===to||n===no)if(r=e.get("EXT_texture_compression_bptc"),r!==null){if(n===eo)return a===St?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===to)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===no)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===io||n===so||n===ro||n===ao)if(r=e.get("EXT_texture_compression_rgtc"),r!==null){if(n===io)return r.COMPRESSED_RED_RGTC1_EXT;if(n===so)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===ro)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===ao)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===vs?i.UNSIGNED_INT_24_8:i[n]!==void 0?i[n]:null}return{convert:t}}const A0=` -void main() { - - gl_Position = vec4( position, 1.0 ); - -}`,R0=` -uniform sampler2DArray depthColor; -uniform float depthWidth; -uniform float depthHeight; - -void main() { - - vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); - - if ( coord.x >= 1.0 ) { - - gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; - - } else { - - gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; - - } - -}`;class C0{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){const n=new Sl(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new zn({vertexShader:A0,fragmentShader:R0,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Xt(new Tr(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class P0 extends ji{constructor(e,t){super();const n=this;let s=null,r=1,a=null,o="local-floor",l=1,c=null,u=null,h=null,d=null,p=null,_=null;const v=typeof XRWebGLBinding<"u",m=new C0,f={},C=t.getContextAttributes();let R=null,L=null;const D=[],A=[],I=new dt;let U=null;const M=new jt;M.viewport=new vt;const y=new jt;y.viewport=new vt;const N=[M,y],O=new Yh;let W=null,K=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(G){let Y=D[G];return Y===void 0&&(Y=new aa,D[G]=Y),Y.getTargetRaySpace()},this.getControllerGrip=function(G){let Y=D[G];return Y===void 0&&(Y=new aa,D[G]=Y),Y.getGripSpace()},this.getHand=function(G){let Y=D[G];return Y===void 0&&(Y=new aa,D[G]=Y),Y.getHandSpace()};function Z(G){const Y=A.indexOf(G.inputSource);if(Y===-1)return;const ue=D[Y];ue!==void 0&&(ue.update(G.inputSource,G.frame,c||a),ue.dispatchEvent({type:G.type,data:G.inputSource}))}function k(){s.removeEventListener("select",Z),s.removeEventListener("selectstart",Z),s.removeEventListener("selectend",Z),s.removeEventListener("squeeze",Z),s.removeEventListener("squeezestart",Z),s.removeEventListener("squeezeend",Z),s.removeEventListener("end",k),s.removeEventListener("inputsourceschange",se);for(let G=0;G=0&&(A[ze]=null,D[ze].disconnect(ue))}for(let Y=0;Y=A.length){A.push(ue),ze=ct;break}else if(A[ct]===null){A[ct]=ue,ze=ct;break}if(ze===-1)break}const Ne=D[ze];Ne&&Ne.connect(ue)}}const q=new z,ie=new z;function oe(G,Y,ue){q.setFromMatrixPosition(Y.matrixWorld),ie.setFromMatrixPosition(ue.matrixWorld);const ze=q.distanceTo(ie),Ne=Y.projectionMatrix.elements,ct=ue.projectionMatrix.elements,Bt=Ne[14]/(Ne[10]-1),rt=Ne[14]/(Ne[10]+1),wt=(Ne[9]+1)/Ne[5],F=(Ne[9]-1)/Ne[5],at=(Ne[8]-1)/Ne[0],ot=(ct[8]+1)/ct[0],yt=Bt*at,De=Bt*ot,At=ze/(-at+ot),Ge=At*-at;if(Y.matrixWorld.decompose(G.position,G.quaternion,G.scale),G.translateX(Ge),G.translateZ(At),G.matrixWorld.compose(G.position,G.quaternion,G.scale),G.matrixWorldInverse.copy(G.matrixWorld).invert(),Ne[10]===-1)G.projectionMatrix.copy(Y.projectionMatrix),G.projectionMatrixInverse.copy(Y.projectionMatrixInverse);else{const Qe=Bt+At,P=rt+At,b=yt-Ge,X=De+(ze-Ge),te=wt*rt/P*Qe,re=F*rt/P*Qe;G.projectionMatrix.makePerspective(b,X,te,re,Qe,P),G.projectionMatrixInverse.copy(G.projectionMatrix).invert()}}function pe(G,Y){Y===null?G.matrixWorld.copy(G.matrix):G.matrixWorld.multiplyMatrices(Y.matrixWorld,G.matrix),G.matrixWorldInverse.copy(G.matrixWorld).invert()}this.updateCamera=function(G){if(s===null)return;let Y=G.near,ue=G.far;m.texture!==null&&(m.depthNear>0&&(Y=m.depthNear),m.depthFar>0&&(ue=m.depthFar)),O.near=y.near=M.near=Y,O.far=y.far=M.far=ue,(W!==O.near||K!==O.far)&&(s.updateRenderState({depthNear:O.near,depthFar:O.far}),W=O.near,K=O.far),O.layers.mask=G.layers.mask|6,M.layers.mask=O.layers.mask&3,y.layers.mask=O.layers.mask&5;const ze=G.parent,Ne=O.cameras;pe(O,ze);for(let ct=0;ct0&&(m.alphaTest.value=f.alphaTest);const C=e.get(f),R=C.envMap,L=C.envMapRotation;R&&(m.envMap.value=R,ci.copy(L),ci.x*=-1,ci.y*=-1,ci.z*=-1,R.isCubeTexture&&R.isRenderTargetTexture===!1&&(ci.y*=-1,ci.z*=-1),m.envMapRotation.value.setFromMatrix4(L0.makeRotationFromEuler(ci)),m.flipEnvMap.value=R.isCubeTexture&&R.isRenderTargetTexture===!1?-1:1,m.reflectivity.value=f.reflectivity,m.ior.value=f.ior,m.refractionRatio.value=f.refractionRatio),f.lightMap&&(m.lightMap.value=f.lightMap,m.lightMapIntensity.value=f.lightMapIntensity,t(f.lightMap,m.lightMapTransform)),f.aoMap&&(m.aoMap.value=f.aoMap,m.aoMapIntensity.value=f.aoMapIntensity,t(f.aoMap,m.aoMapTransform))}function a(m,f){m.diffuse.value.copy(f.color),m.opacity.value=f.opacity,f.map&&(m.map.value=f.map,t(f.map,m.mapTransform))}function o(m,f){m.dashSize.value=f.dashSize,m.totalSize.value=f.dashSize+f.gapSize,m.scale.value=f.scale}function l(m,f,C,R){m.diffuse.value.copy(f.color),m.opacity.value=f.opacity,m.size.value=f.size*C,m.scale.value=R*.5,f.map&&(m.map.value=f.map,t(f.map,m.uvTransform)),f.alphaMap&&(m.alphaMap.value=f.alphaMap,t(f.alphaMap,m.alphaMapTransform)),f.alphaTest>0&&(m.alphaTest.value=f.alphaTest)}function c(m,f){m.diffuse.value.copy(f.color),m.opacity.value=f.opacity,m.rotation.value=f.rotation,f.map&&(m.map.value=f.map,t(f.map,m.mapTransform)),f.alphaMap&&(m.alphaMap.value=f.alphaMap,t(f.alphaMap,m.alphaMapTransform)),f.alphaTest>0&&(m.alphaTest.value=f.alphaTest)}function u(m,f){m.specular.value.copy(f.specular),m.shininess.value=Math.max(f.shininess,1e-4)}function h(m,f){f.gradientMap&&(m.gradientMap.value=f.gradientMap)}function d(m,f){m.metalness.value=f.metalness,f.metalnessMap&&(m.metalnessMap.value=f.metalnessMap,t(f.metalnessMap,m.metalnessMapTransform)),m.roughness.value=f.roughness,f.roughnessMap&&(m.roughnessMap.value=f.roughnessMap,t(f.roughnessMap,m.roughnessMapTransform)),f.envMap&&(m.envMapIntensity.value=f.envMapIntensity)}function p(m,f,C){m.ior.value=f.ior,f.sheen>0&&(m.sheenColor.value.copy(f.sheenColor).multiplyScalar(f.sheen),m.sheenRoughness.value=f.sheenRoughness,f.sheenColorMap&&(m.sheenColorMap.value=f.sheenColorMap,t(f.sheenColorMap,m.sheenColorMapTransform)),f.sheenRoughnessMap&&(m.sheenRoughnessMap.value=f.sheenRoughnessMap,t(f.sheenRoughnessMap,m.sheenRoughnessMapTransform))),f.clearcoat>0&&(m.clearcoat.value=f.clearcoat,m.clearcoatRoughness.value=f.clearcoatRoughness,f.clearcoatMap&&(m.clearcoatMap.value=f.clearcoatMap,t(f.clearcoatMap,m.clearcoatMapTransform)),f.clearcoatRoughnessMap&&(m.clearcoatRoughnessMap.value=f.clearcoatRoughnessMap,t(f.clearcoatRoughnessMap,m.clearcoatRoughnessMapTransform)),f.clearcoatNormalMap&&(m.clearcoatNormalMap.value=f.clearcoatNormalMap,t(f.clearcoatNormalMap,m.clearcoatNormalMapTransform),m.clearcoatNormalScale.value.copy(f.clearcoatNormalScale),f.side===tn&&m.clearcoatNormalScale.value.negate())),f.dispersion>0&&(m.dispersion.value=f.dispersion),f.iridescence>0&&(m.iridescence.value=f.iridescence,m.iridescenceIOR.value=f.iridescenceIOR,m.iridescenceThicknessMinimum.value=f.iridescenceThicknessRange[0],m.iridescenceThicknessMaximum.value=f.iridescenceThicknessRange[1],f.iridescenceMap&&(m.iridescenceMap.value=f.iridescenceMap,t(f.iridescenceMap,m.iridescenceMapTransform)),f.iridescenceThicknessMap&&(m.iridescenceThicknessMap.value=f.iridescenceThicknessMap,t(f.iridescenceThicknessMap,m.iridescenceThicknessMapTransform))),f.transmission>0&&(m.transmission.value=f.transmission,m.transmissionSamplerMap.value=C.texture,m.transmissionSamplerSize.value.set(C.width,C.height),f.transmissionMap&&(m.transmissionMap.value=f.transmissionMap,t(f.transmissionMap,m.transmissionMapTransform)),m.thickness.value=f.thickness,f.thicknessMap&&(m.thicknessMap.value=f.thicknessMap,t(f.thicknessMap,m.thicknessMapTransform)),m.attenuationDistance.value=f.attenuationDistance,m.attenuationColor.value.copy(f.attenuationColor)),f.anisotropy>0&&(m.anisotropyVector.value.set(f.anisotropy*Math.cos(f.anisotropyRotation),f.anisotropy*Math.sin(f.anisotropyRotation)),f.anisotropyMap&&(m.anisotropyMap.value=f.anisotropyMap,t(f.anisotropyMap,m.anisotropyMapTransform))),m.specularIntensity.value=f.specularIntensity,m.specularColor.value.copy(f.specularColor),f.specularColorMap&&(m.specularColorMap.value=f.specularColorMap,t(f.specularColorMap,m.specularColorMapTransform)),f.specularIntensityMap&&(m.specularIntensityMap.value=f.specularIntensityMap,t(f.specularIntensityMap,m.specularIntensityMapTransform))}function _(m,f){f.matcap&&(m.matcap.value=f.matcap)}function v(m,f){const C=e.get(f).light;m.referencePosition.value.setFromMatrixPosition(C.matrixWorld),m.nearDistance.value=C.shadow.camera.near,m.farDistance.value=C.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:s}}function N0(i,e,t,n){let s={},r={},a=[];const o=i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS);function l(C,R){const L=R.program;n.uniformBlockBinding(C,L)}function c(C,R){let L=s[C.id];L===void 0&&(_(C),L=u(C),s[C.id]=L,C.addEventListener("dispose",m));const D=R.program;n.updateUBOMapping(C,D);const A=e.render.frame;r[C.id]!==A&&(d(C),r[C.id]=A)}function u(C){const R=h();C.__bindingPointIndex=R;const L=i.createBuffer(),D=C.__size,A=C.usage;return i.bindBuffer(i.UNIFORM_BUFFER,L),i.bufferData(i.UNIFORM_BUFFER,D,A),i.bindBuffer(i.UNIFORM_BUFFER,null),i.bindBufferBase(i.UNIFORM_BUFFER,R,L),L}function h(){for(let C=0;C0&&(L+=D-A),C.__size=L,C.__cache={},this}function v(C){const R={boundary:0,storage:0};return typeof C=="number"||typeof C=="boolean"?(R.boundary=4,R.storage=4):C.isVector2?(R.boundary=8,R.storage=8):C.isVector3||C.isColor?(R.boundary=16,R.storage=12):C.isVector4?(R.boundary=16,R.storage=16):C.isMatrix3?(R.boundary=48,R.storage=48):C.isMatrix4?(R.boundary=64,R.storage=64):C.isTexture?je("WebGLRenderer: Texture samplers can not be part of an uniforms group."):je("WebGLRenderer: Unsupported uniform value type.",C),R}function m(C){const R=C.target;R.removeEventListener("dispose",m);const L=a.indexOf(R.__bindingPointIndex);a.splice(L,1),i.deleteBuffer(s[R.id]),delete s[R.id],delete r[R.id]}function f(){for(const C in s)i.deleteBuffer(s[C]);a=[],s={},r={}}return{bind:l,update:c,dispose:f}}const I0=new Uint16Array([11481,15204,11534,15171,11808,15015,12385,14843,12894,14716,13396,14600,13693,14483,13976,14366,14237,14171,14405,13961,14511,13770,14605,13598,14687,13444,14760,13305,14822,13066,14876,12857,14923,12675,14963,12517,14997,12379,15025,12230,15049,12023,15070,11843,15086,11687,15100,11551,15111,11433,15120,11330,15127,11217,15132,11060,15135,10922,15138,10801,15139,10695,15139,10600,13012,14923,13020,14917,13064,14886,13176,14800,13349,14666,13513,14526,13724,14398,13960,14230,14200,14020,14383,13827,14488,13651,14583,13491,14667,13348,14740,13132,14803,12908,14856,12713,14901,12542,14938,12394,14968,12241,14992,12017,15010,11822,15024,11654,15034,11507,15041,11380,15044,11269,15044,11081,15042,10913,15037,10764,15031,10635,15023,10520,15014,10419,15003,10330,13657,14676,13658,14673,13670,14660,13698,14622,13750,14547,13834,14442,13956,14317,14112,14093,14291,13889,14407,13704,14499,13538,14586,13389,14664,13201,14733,12966,14792,12758,14842,12577,14882,12418,14915,12272,14940,12033,14959,11826,14972,11646,14980,11490,14983,11355,14983,11212,14979,11008,14971,10830,14961,10675,14950,10540,14936,10420,14923,10315,14909,10204,14894,10041,14089,14460,14090,14459,14096,14452,14112,14431,14141,14388,14186,14305,14252,14130,14341,13941,14399,13756,14467,13585,14539,13430,14610,13272,14677,13026,14737,12808,14790,12617,14833,12449,14869,12303,14896,12065,14916,11845,14929,11655,14937,11490,14939,11347,14936,11184,14930,10970,14921,10783,14912,10621,14900,10480,14885,10356,14867,10247,14848,10062,14827,9894,14805,9745,14400,14208,14400,14206,14402,14198,14406,14174,14415,14122,14427,14035,14444,13913,14469,13767,14504,13613,14548,13463,14598,13324,14651,13082,14704,12858,14752,12658,14795,12483,14831,12330,14860,12106,14881,11875,14895,11675,14903,11501,14905,11351,14903,11178,14900,10953,14892,10757,14880,10589,14865,10442,14847,10313,14827,10162,14805,9965,14782,9792,14757,9642,14731,9507,14562,13883,14562,13883,14563,13877,14566,13862,14570,13830,14576,13773,14584,13689,14595,13582,14613,13461,14637,13336,14668,13120,14704,12897,14741,12695,14776,12516,14808,12358,14835,12150,14856,11910,14870,11701,14878,11519,14882,11361,14884,11187,14880,10951,14871,10748,14858,10572,14842,10418,14823,10286,14801,10099,14777,9897,14751,9722,14725,9567,14696,9430,14666,9309,14702,13604,14702,13604,14702,13600,14703,13591,14705,13570,14707,13533,14709,13477,14712,13400,14718,13305,14727,13106,14743,12907,14762,12716,14784,12539,14807,12380,14827,12190,14844,11943,14855,11727,14863,11539,14870,11376,14871,11204,14868,10960,14858,10748,14845,10565,14829,10406,14809,10269,14786,10058,14761,9852,14734,9671,14705,9512,14674,9374,14641,9253,14608,9076,14821,13366,14821,13365,14821,13364,14821,13358,14821,13344,14821,13320,14819,13252,14817,13145,14815,13011,14814,12858,14817,12698,14823,12539,14832,12389,14841,12214,14850,11968,14856,11750,14861,11558,14866,11390,14867,11226,14862,10972,14853,10754,14840,10565,14823,10401,14803,10259,14780,10032,14754,9820,14725,9635,14694,9473,14661,9333,14627,9203,14593,8988,14557,8798,14923,13014,14922,13014,14922,13012,14922,13004,14920,12987,14919,12957,14915,12907,14909,12834,14902,12738,14894,12623,14888,12498,14883,12370,14880,12203,14878,11970,14875,11759,14873,11569,14874,11401,14872,11243,14865,10986,14855,10762,14842,10568,14825,10401,14804,10255,14781,10017,14754,9799,14725,9611,14692,9445,14658,9301,14623,9139,14587,8920,14548,8729,14509,8562,15008,12672,15008,12672,15008,12671,15007,12667,15005,12656,15001,12637,14997,12605,14989,12556,14978,12490,14966,12407,14953,12313,14940,12136,14927,11934,14914,11742,14903,11563,14896,11401,14889,11247,14879,10992,14866,10767,14851,10570,14833,10400,14812,10252,14789,10007,14761,9784,14731,9592,14698,9424,14663,9279,14627,9088,14588,8868,14548,8676,14508,8508,14467,8360,15080,12386,15080,12386,15079,12385,15078,12383,15076,12378,15072,12367,15066,12347,15057,12315,15045,12253,15030,12138,15012,11998,14993,11845,14972,11685,14951,11530,14935,11383,14920,11228,14904,10981,14887,10762,14870,10567,14850,10397,14827,10248,14803,9997,14774,9771,14743,9578,14710,9407,14674,9259,14637,9048,14596,8826,14555,8632,14514,8464,14471,8317,14427,8182,15139,12008,15139,12008,15138,12008,15137,12007,15135,12003,15130,11990,15124,11969,15115,11929,15102,11872,15086,11794,15064,11693,15041,11581,15013,11459,14987,11336,14966,11170,14944,10944,14921,10738,14898,10552,14875,10387,14850,10239,14824,9983,14794,9758,14762,9563,14728,9392,14692,9244,14653,9014,14611,8791,14569,8597,14526,8427,14481,8281,14436,8110,14391,7885,15188,11617,15188,11617,15187,11617,15186,11618,15183,11617,15179,11612,15173,11601,15163,11581,15150,11546,15133,11495,15110,11427,15083,11346,15051,11246,15024,11057,14996,10868,14967,10687,14938,10517,14911,10362,14882,10206,14853,9956,14821,9737,14787,9543,14752,9375,14715,9228,14675,8980,14632,8760,14589,8565,14544,8395,14498,8248,14451,8049,14404,7824,14357,7630,15228,11298,15228,11298,15227,11299,15226,11301,15223,11303,15219,11302,15213,11299,15204,11290,15191,11271,15174,11217,15150,11129,15119,11015,15087,10886,15057,10744,15024,10599,14990,10455,14957,10318,14924,10143,14891,9911,14856,9701,14820,9516,14782,9352,14744,9200,14703,8946,14659,8725,14615,8533,14568,8366,14521,8220,14472,7992,14423,7770,14374,7578,14315,7408,15260,10819,15260,10819,15259,10822,15258,10826,15256,10832,15251,10836,15246,10841,15237,10838,15225,10821,15207,10788,15183,10734,15151,10660,15120,10571,15087,10469,15049,10359,15012,10249,14974,10041,14937,9837,14900,9647,14860,9475,14820,9320,14779,9147,14736,8902,14691,8688,14646,8499,14598,8335,14549,8189,14499,7940,14448,7720,14397,7529,14347,7363,14256,7218,15285,10410,15285,10411,15285,10413,15284,10418,15282,10425,15278,10434,15272,10442,15264,10449,15252,10445,15235,10433,15210,10403,15179,10358,15149,10301,15113,10218,15073,10059,15033,9894,14991,9726,14951,9565,14909,9413,14865,9273,14822,9073,14777,8845,14730,8641,14682,8459,14633,8300,14583,8129,14531,7883,14479,7670,14426,7482,14373,7321,14305,7176,14201,6939,15305,9939,15305,9940,15305,9945,15304,9955,15302,9967,15298,9989,15293,10010,15286,10033,15274,10044,15258,10045,15233,10022,15205,9975,15174,9903,15136,9808,15095,9697,15053,9578,15009,9451,14965,9327,14918,9198,14871,8973,14825,8766,14775,8579,14725,8408,14675,8259,14622,8058,14569,7821,14515,7615,14460,7435,14405,7276,14350,7108,14256,6866,14149,6653,15321,9444,15321,9445,15321,9448,15320,9458,15317,9470,15314,9490,15310,9515,15302,9540,15292,9562,15276,9579,15251,9577,15226,9559,15195,9519,15156,9463,15116,9389,15071,9304,15025,9208,14978,9023,14927,8838,14878,8661,14827,8496,14774,8344,14722,8206,14667,7973,14612,7749,14556,7555,14499,7382,14443,7229,14385,7025,14322,6791,14210,6588,14100,6409,15333,8920,15333,8921,15332,8927,15332,8943,15329,8965,15326,9002,15322,9048,15316,9106,15307,9162,15291,9204,15267,9221,15244,9221,15212,9196,15175,9134,15133,9043,15088,8930,15040,8801,14990,8665,14938,8526,14886,8391,14830,8261,14775,8087,14719,7866,14661,7664,14603,7482,14544,7322,14485,7178,14426,6936,14367,6713,14281,6517,14166,6348,14054,6198,15341,8360,15341,8361,15341,8366,15341,8379,15339,8399,15336,8431,15332,8473,15326,8527,15318,8585,15302,8632,15281,8670,15258,8690,15227,8690,15191,8664,15149,8612,15104,8543,15055,8456,15001,8360,14948,8259,14892,8122,14834,7923,14776,7734,14716,7558,14656,7397,14595,7250,14534,7070,14472,6835,14410,6628,14350,6443,14243,6283,14125,6135,14010,5889,15348,7715,15348,7717,15348,7725,15347,7745,15345,7780,15343,7836,15339,7905,15334,8e3,15326,8103,15310,8193,15293,8239,15270,8270,15240,8287,15204,8283,15163,8260,15118,8223,15067,8143,15014,8014,14958,7873,14899,7723,14839,7573,14778,7430,14715,7293,14652,7164,14588,6931,14524,6720,14460,6531,14396,6362,14330,6210,14207,6015,14086,5781,13969,5576,15352,7114,15352,7116,15352,7128,15352,7159,15350,7195,15348,7237,15345,7299,15340,7374,15332,7457,15317,7544,15301,7633,15280,7703,15251,7754,15216,7775,15176,7767,15131,7733,15079,7670,15026,7588,14967,7492,14906,7387,14844,7278,14779,7171,14714,6965,14648,6770,14581,6587,14515,6420,14448,6269,14382,6123,14299,5881,14172,5665,14049,5477,13929,5310,15355,6329,15355,6330,15355,6339,15355,6362,15353,6410,15351,6472,15349,6572,15344,6688,15337,6835,15323,6985,15309,7142,15287,7220,15260,7277,15226,7310,15188,7326,15142,7318,15090,7285,15036,7239,14976,7177,14914,7045,14849,6892,14782,6736,14714,6581,14645,6433,14576,6293,14506,6164,14438,5946,14369,5733,14270,5540,14140,5369,14014,5216,13892,5043,15357,5483,15357,5484,15357,5496,15357,5528,15356,5597,15354,5692,15351,5835,15347,6011,15339,6195,15328,6317,15314,6446,15293,6566,15268,6668,15235,6746,15197,6796,15152,6811,15101,6790,15046,6748,14985,6673,14921,6583,14854,6479,14785,6371,14714,6259,14643,6149,14571,5946,14499,5750,14428,5567,14358,5401,14242,5250,14109,5111,13980,4870,13856,4657,15359,4555,15359,4557,15358,4573,15358,4633,15357,4715,15355,4841,15353,5061,15349,5216,15342,5391,15331,5577,15318,5770,15299,5967,15274,6150,15243,6223,15206,6280,15161,6310,15111,6317,15055,6300,14994,6262,14928,6208,14860,6141,14788,5994,14715,5838,14641,5684,14566,5529,14492,5384,14418,5247,14346,5121,14216,4892,14079,4682,13948,4496,13822,4330,15359,3498,15359,3501,15359,3520,15359,3598,15358,3719,15356,3860,15355,4137,15351,4305,15344,4563,15334,4809,15321,5116,15303,5273,15280,5418,15250,5547,15214,5653,15170,5722,15120,5761,15064,5763,15002,5733,14935,5673,14865,5597,14792,5504,14716,5400,14640,5294,14563,5185,14486,5041,14410,4841,14335,4655,14191,4482,14051,4325,13918,4183,13790,4012,15360,2282,15360,2285,15360,2306,15360,2401,15359,2547,15357,2748,15355,3103,15352,3349,15345,3675,15336,4020,15324,4272,15307,4496,15285,4716,15255,4908,15220,5086,15178,5170,15128,5214,15072,5234,15010,5231,14943,5206,14871,5166,14796,5102,14718,4971,14639,4833,14559,4687,14480,4541,14402,4401,14315,4268,14167,4142,14025,3958,13888,3747,13759,3556,15360,923,15360,925,15360,946,15360,1052,15359,1214,15357,1494,15356,1892,15352,2274,15346,2663,15338,3099,15326,3393,15309,3679,15288,3980,15260,4183,15226,4325,15185,4437,15136,4517,15080,4570,15018,4591,14950,4581,14877,4545,14800,4485,14720,4411,14638,4325,14556,4231,14475,4136,14395,3988,14297,3803,14145,3628,13999,3465,13861,3314,13729,3177,15360,263,15360,264,15360,272,15360,325,15359,407,15358,548,15356,780,15352,1144,15347,1580,15339,2099,15328,2425,15312,2795,15292,3133,15264,3329,15232,3517,15191,3689,15143,3819,15088,3923,15025,3978,14956,3999,14882,3979,14804,3931,14722,3855,14639,3756,14554,3645,14470,3529,14388,3409,14279,3289,14124,3173,13975,3055,13834,2848,13701,2658,15360,49,15360,49,15360,52,15360,75,15359,111,15358,201,15356,283,15353,519,15348,726,15340,1045,15329,1415,15314,1795,15295,2173,15269,2410,15237,2649,15197,2866,15150,3054,15095,3140,15032,3196,14963,3228,14888,3236,14808,3224,14725,3191,14639,3146,14553,3088,14466,2976,14382,2836,14262,2692,14103,2549,13952,2409,13808,2278,13674,2154,15360,4,15360,4,15360,4,15360,13,15359,33,15358,59,15357,112,15353,199,15348,302,15341,456,15331,628,15316,827,15297,1082,15272,1332,15241,1601,15202,1851,15156,2069,15101,2172,15039,2256,14970,2314,14894,2348,14813,2358,14728,2344,14640,2311,14551,2263,14463,2203,14376,2133,14247,2059,14084,1915,13930,1761,13784,1609,13648,1464,15360,0,15360,0,15360,0,15360,3,15359,18,15358,26,15357,53,15354,80,15348,97,15341,165,15332,238,15318,326,15299,427,15275,529,15245,654,15207,771,15161,885,15108,994,15046,1089,14976,1170,14900,1229,14817,1266,14731,1284,14641,1282,14550,1260,14460,1223,14370,1174,14232,1116,14066,1050,13909,981,13761,910,13623,839]);let In=null;function U0(){return In===null&&(In=new So(I0,32,32,xo,Yi),In.minFilter=Qt,In.magFilter=Qt,In.wrapS=ln,In.wrapT=ln,In.generateMipmaps=!1,In.needsUpdate=!0),In}class F0{constructor(e={}){const{canvas:t=Lu(),context:n=null,depth:s=!0,stencil:r=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:h=!1,reversedDepthBuffer:d=!1}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");p=n.getContextAttributes().alpha}else p=a;const _=new Set([_o,go,mo]),v=new Set([Tn,mi,_s,vs,fo,po]),m=new Uint32Array(4),f=new Int32Array(4);let C=null,R=null;const L=[],D=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=Zn,this.toneMappingExposure=1,this.transmissionResolutionScale=1;const A=this;let I=!1;this._outputColorSpace=It;let U=0,M=0,y=null,N=-1,O=null;const W=new vt,K=new vt;let Z=null;const k=new tt(0);let se=0,q=t.width,ie=t.height,oe=1,pe=null,Le=null;const Ee=new vt(0,0,q,ie),Me=new vt(0,0,q,ie);let ge=!1;const G=new To;let Y=!1,ue=!1;const ze=new et,Ne=new z,ct=new vt,Bt={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let rt=!1;function wt(){return y===null?oe:1}let F=n;function at(E,V){return t.getContext(E,V)}try{const E={alpha:!0,depth:s,stencil:r,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:h};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${uo}`),t.addEventListener("webglcontextlost",le,!1),t.addEventListener("webglcontextrestored",ne,!1),t.addEventListener("webglcontextcreationerror",Re,!1),F===null){const V="webgl2";if(F=at(V,E),F===null)throw at(V)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(E){throw E("WebGLRenderer: "+E.message),E}let ot,yt,De,At,Ge,Qe,P,b,X,te,re,Q,Be,_e,He,Ue,ae,de,Ke,Xe,Te,$e,B,ve;function fe(){ot=new Wp(F),ot.init(),$e=new w0(F,ot),yt=new Up(F,ot,e,$e),De=new E0(F,ot),yt.reversedDepthBuffer&&d&&De.buffers.depth.setReversed(!0),At=new Yp(F),Ge=new h0,Qe=new T0(F,ot,De,Ge,yt,$e,At),P=new Op(A),b=new Hp(A),X=new Jh(F),B=new Np(F,X),te=new Xp(F,X,At,B),re=new Kp(F,te,X,At),Ke=new jp(F,yt,Qe),Ue=new Fp(Ge),Q=new u0(A,P,b,ot,yt,B,Ue),Be=new D0(A,Ge),_e=new f0,He=new v0(ot),de=new Dp(A,P,b,De,re,p,l),ae=new y0(A,re,yt),ve=new N0(F,At,yt,De),Xe=new Ip(F,ot,At),Te=new qp(F,ot,At),At.programs=Q.programs,A.capabilities=yt,A.extensions=ot,A.properties=Ge,A.renderLists=_e,A.shadowMap=ae,A.state=De,A.info=At}fe();const me=new P0(A,F);this.xr=me,this.getContext=function(){return F},this.getContextAttributes=function(){return F.getContextAttributes()},this.forceContextLoss=function(){const E=ot.get("WEBGL_lose_context");E&&E.loseContext()},this.forceContextRestore=function(){const E=ot.get("WEBGL_lose_context");E&&E.restoreContext()},this.getPixelRatio=function(){return oe},this.setPixelRatio=function(E){E!==void 0&&(oe=E,this.setSize(q,ie,!1))},this.getSize=function(E){return E.set(q,ie)},this.setSize=function(E,V,j=!0){if(me.isPresenting){je("WebGLRenderer: Can't change size while VR device is presenting.");return}q=E,ie=V,t.width=Math.floor(E*oe),t.height=Math.floor(V*oe),j===!0&&(t.style.width=E+"px",t.style.height=V+"px"),this.setViewport(0,0,E,V)},this.getDrawingBufferSize=function(E){return E.set(q*oe,ie*oe).floor()},this.setDrawingBufferSize=function(E,V,j){q=E,ie=V,oe=j,t.width=Math.floor(E*j),t.height=Math.floor(V*j),this.setViewport(0,0,E,V)},this.getCurrentViewport=function(E){return E.copy(W)},this.getViewport=function(E){return E.copy(Ee)},this.setViewport=function(E,V,j,J){E.isVector4?Ee.set(E.x,E.y,E.z,E.w):Ee.set(E,V,j,J),De.viewport(W.copy(Ee).multiplyScalar(oe).round())},this.getScissor=function(E){return E.copy(Me)},this.setScissor=function(E,V,j,J){E.isVector4?Me.set(E.x,E.y,E.z,E.w):Me.set(E,V,j,J),De.scissor(K.copy(Me).multiplyScalar(oe).round())},this.getScissorTest=function(){return ge},this.setScissorTest=function(E){De.setScissorTest(ge=E)},this.setOpaqueSort=function(E){pe=E},this.setTransparentSort=function(E){Le=E},this.getClearColor=function(E){return E.copy(de.getClearColor())},this.setClearColor=function(){de.setClearColor(...arguments)},this.getClearAlpha=function(){return de.getClearAlpha()},this.setClearAlpha=function(){de.setClearAlpha(...arguments)},this.clear=function(E=!0,V=!0,j=!0){let J=0;if(E){let H=!1;if(y!==null){const he=y.texture.format;H=_.has(he)}if(H){const he=y.texture.type,ye=v.has(he),Ce=de.getClearColor(),we=de.getClearAlpha(),qe=Ce.r,Je=Ce.g,Ie=Ce.b;ye?(m[0]=qe,m[1]=Je,m[2]=Ie,m[3]=we,F.clearBufferuiv(F.COLOR,0,m)):(f[0]=qe,f[1]=Je,f[2]=Ie,f[3]=we,F.clearBufferiv(F.COLOR,0,f))}else J|=F.COLOR_BUFFER_BIT}V&&(J|=F.DEPTH_BUFFER_BIT),j&&(J|=F.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),F.clear(J)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",le,!1),t.removeEventListener("webglcontextrestored",ne,!1),t.removeEventListener("webglcontextcreationerror",Re,!1),de.dispose(),_e.dispose(),He.dispose(),Ge.dispose(),P.dispose(),b.dispose(),re.dispose(),B.dispose(),ve.dispose(),Q.dispose(),me.dispose(),me.removeEventListener("sessionstart",Ts),me.removeEventListener("sessionend",ws),wn.stop()};function le(E){E.preventDefault(),Wo("WebGLRenderer: Context Lost."),I=!0}function ne(){Wo("WebGLRenderer: Context Restored."),I=!1;const E=At.autoReset,V=ae.enabled,j=ae.autoUpdate,J=ae.needsUpdate,H=ae.type;fe(),At.autoReset=E,ae.enabled=V,ae.autoUpdate=j,ae.needsUpdate=J,ae.type=H}function Re(E){Tt("WebGLRenderer: A WebGL context could not be created. Reason: ",E.statusMessage)}function Ze(E){const V=E.target;V.removeEventListener("dispose",Ze),Et(V)}function Et(E){it(E),Ge.remove(E)}function it(E){const V=Ge.get(E).programs;V!==void 0&&(V.forEach(function(j){Q.releaseProgram(j)}),E.isShaderMaterial&&Q.releaseShaderCache(E))}this.renderBufferDirect=function(E,V,j,J,H,he){V===null&&(V=Bt);const ye=H.isMesh&&H.matrixWorld.determinant()<0,Ce=Dr(E,V,j,J,H);De.setMaterial(J,ye);let we=j.index,qe=1;if(J.wireframe===!0){if(we=te.getWireframeAttribute(j),we===void 0)return;qe=2}const Je=j.drawRange,Ie=j.attributes.position;let lt=Je.start*qe,_t=(Je.start+Je.count)*qe;he!==null&&(lt=Math.max(lt,he.start*qe),_t=Math.min(_t,(he.start+he.count)*qe)),we!==null?(lt=Math.max(lt,0),_t=Math.min(_t,we.count)):Ie!=null&&(lt=Math.max(lt,0),_t=Math.min(_t,Ie.count));const Lt=_t-lt;if(Lt<0||Lt===1/0)return;B.setup(H,J,Ce,j,we);let Ct,bt=Xe;if(we!==null&&(Ct=X.get(we),bt=Te,bt.setIndex(Ct)),H.isMesh)J.wireframe===!0?(De.setLineWidth(J.wireframeLinewidth*wt()),bt.setMode(F.LINES)):bt.setMode(F.TRIANGLES);else if(H.isLine){let We=J.linewidth;We===void 0&&(We=1),De.setLineWidth(We*wt()),H.isLineSegments?bt.setMode(F.LINES):H.isLineLoop?bt.setMode(F.LINE_LOOP):bt.setMode(F.LINE_STRIP)}else H.isPoints?bt.setMode(F.POINTS):H.isSprite&&bt.setMode(F.TRIANGLES);if(H.isBatchedMesh)if(H._multiDrawInstances!==null)Ss("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."),bt.renderMultiDrawInstances(H._multiDrawStarts,H._multiDrawCounts,H._multiDrawCount,H._multiDrawInstances);else if(ot.get("WEBGL_multi_draw"))bt.renderMultiDraw(H._multiDrawStarts,H._multiDrawCounts,H._multiDrawCount);else{const We=H._multiDrawStarts,Pt=H._multiDrawCounts,ft=H._multiDrawCount,mt=we?X.get(we).bytesPerElement:1,bn=Ge.get(J).currentProgram.getUniforms();for(let Jt=0;Jt{function he(){if(J.forEach(function(ye){Ge.get(ye).currentProgram.isReady()&&J.delete(ye)}),J.size===0){H(E);return}setTimeout(he,10)}ot.get("KHR_parallel_shader_compile")!==null?he():setTimeout(he,10)})};let an=null;function Lr(E){an&&an(E)}function Ts(){wn.stop()}function ws(){wn.start()}const wn=new Ll;wn.setAnimationLoop(Lr),typeof self<"u"&&wn.setContext(self),this.setAnimationLoop=function(E){an=E,me.setAnimationLoop(E),E===null?wn.stop():wn.start()},me.addEventListener("sessionstart",Ts),me.addEventListener("sessionend",ws),this.render=function(E,V){if(V!==void 0&&V.isCamera!==!0){Tt("WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(I===!0)return;if(E.matrixWorldAutoUpdate===!0&&E.updateMatrixWorld(),V.parent===null&&V.matrixWorldAutoUpdate===!0&&V.updateMatrixWorld(),me.enabled===!0&&me.isPresenting===!0&&(me.cameraAutoUpdate===!0&&me.updateCamera(V),V=me.getCamera()),E.isScene===!0&&E.onBeforeRender(A,E,V,y),R=He.get(E,D.length),R.init(V),D.push(R),ze.multiplyMatrices(V.projectionMatrix,V.matrixWorldInverse),G.setFromProjectionMatrix(ze,En,V.reversedDepth),ue=this.localClippingEnabled,Y=Ue.init(this.clippingPlanes,ue),C=_e.get(E,L.length),C.init(),L.push(C),me.enabled===!0&&me.isPresenting===!0){const he=A.xr.getDepthSensingMesh();he!==null&&es(he,V,-1/0,A.sortObjects)}es(E,V,0,A.sortObjects),C.finish(),A.sortObjects===!0&&C.sort(pe,Le),rt=me.enabled===!1||me.isPresenting===!1||me.hasDepthSensing()===!1,rt&&de.addToRenderList(C,E),this.info.render.frame++,Y===!0&&Ue.beginShadows();const j=R.state.shadowsArray;ae.render(j,E,V),Y===!0&&Ue.endShadows(),this.info.autoReset===!0&&this.info.reset();const J=C.opaque,H=C.transmissive;if(R.setupLights(),V.isArrayCamera){const he=V.cameras;if(H.length>0)for(let ye=0,Ce=he.length;ye0&&As(J,H,E,V),rt&&de.render(E),ts(C,E,V);y!==null&&M===0&&(Qe.updateMultisampleRenderTarget(y),Qe.updateRenderTargetMipmap(y)),E.isScene===!0&&E.onAfterRender(A,E,V),B.resetDefaultState(),N=-1,O=null,D.pop(),D.length>0?(R=D[D.length-1],Y===!0&&Ue.setGlobalState(A.clippingPlanes,R.state.camera)):R=null,L.pop(),L.length>0?C=L[L.length-1]:C=null};function es(E,V,j,J){if(E.visible===!1)return;if(E.layers.test(V.layers)){if(E.isGroup)j=E.renderOrder;else if(E.isLOD)E.autoUpdate===!0&&E.update(V);else if(E.isLight)R.pushLight(E),E.castShadow&&R.pushShadow(E);else if(E.isSprite){if(!E.frustumCulled||G.intersectsSprite(E)){J&&ct.setFromMatrixPosition(E.matrixWorld).applyMatrix4(ze);const ye=re.update(E),Ce=E.material;Ce.visible&&C.push(E,ye,Ce,j,ct.z,null)}}else if((E.isMesh||E.isLine||E.isPoints)&&(!E.frustumCulled||G.intersectsObject(E))){const ye=re.update(E),Ce=E.material;if(J&&(E.boundingSphere!==void 0?(E.boundingSphere===null&&E.computeBoundingSphere(),ct.copy(E.boundingSphere.center)):(ye.boundingSphere===null&&ye.computeBoundingSphere(),ct.copy(ye.boundingSphere.center)),ct.applyMatrix4(E.matrixWorld).applyMatrix4(ze)),Array.isArray(Ce)){const we=ye.groups;for(let qe=0,Je=we.length;qe0&&ni(H,V,j),he.length>0&&ni(he,V,j),ye.length>0&&ni(ye,V,j),De.buffers.depth.setTest(!0),De.buffers.depth.setMask(!0),De.buffers.color.setMask(!0),De.setPolygonOffset(!1)}function As(E,V,j,J){if((j.isScene===!0?j.overrideMaterial:null)!==null)return;R.state.transmissionRenderTarget[J.id]===void 0&&(R.state.transmissionRenderTarget[J.id]=new xi(1,1,{generateMipmaps:!0,type:ot.has("EXT_color_buffer_half_float")||ot.has("EXT_color_buffer_float")?Yi:Tn,minFilter:Fn,samples:4,stencilBuffer:r,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ht.workingColorSpace}));const he=R.state.transmissionRenderTarget[J.id],ye=J.viewport||W;he.setSize(ye.z*A.transmissionResolutionScale,ye.w*A.transmissionResolutionScale);const Ce=A.getRenderTarget(),we=A.getActiveCubeFace(),qe=A.getActiveMipmapLevel();A.setRenderTarget(he),A.getClearColor(k),se=A.getClearAlpha(),se<1&&A.setClearColor(16777215,.5),A.clear(),rt&&de.render(j);const Je=A.toneMapping;A.toneMapping=Zn;const Ie=J.viewport;if(J.viewport!==void 0&&(J.viewport=void 0),R.setupLightsView(J),Y===!0&&Ue.setGlobalState(A.clippingPlanes,J),ni(E,j,J),Qe.updateMultisampleRenderTarget(he),Qe.updateRenderTargetMipmap(he),ot.has("WEBGL_multisampled_render_to_texture")===!1){let lt=!1;for(let _t=0,Lt=V.length;_t0),Ie=!!j.morphAttributes.position,lt=!!j.morphAttributes.normal,_t=!!j.morphAttributes.color;let Lt=Zn;J.toneMapped&&(y===null||y.isXRRenderTarget===!0)&&(Lt=A.toneMapping);const Ct=j.morphAttributes.position||j.morphAttributes.normal||j.morphAttributes.color,bt=Ct!==void 0?Ct.length:0,We=Ge.get(J),Pt=R.state.lights;if(Y===!0&&(ue===!0||E!==O)){const Ft=E===O&&J.id===N;Ue.setState(J,E,Ft)}let ft=!1;J.version===We.__version?(We.needsLights&&We.lightsStateVersion!==Pt.state.version||We.outputColorSpace!==Ce||H.isBatchedMesh&&We.batching===!1||!H.isBatchedMesh&&We.batching===!0||H.isBatchedMesh&&We.batchingColor===!0&&H.colorTexture===null||H.isBatchedMesh&&We.batchingColor===!1&&H.colorTexture!==null||H.isInstancedMesh&&We.instancing===!1||!H.isInstancedMesh&&We.instancing===!0||H.isSkinnedMesh&&We.skinning===!1||!H.isSkinnedMesh&&We.skinning===!0||H.isInstancedMesh&&We.instancingColor===!0&&H.instanceColor===null||H.isInstancedMesh&&We.instancingColor===!1&&H.instanceColor!==null||H.isInstancedMesh&&We.instancingMorph===!0&&H.morphTexture===null||H.isInstancedMesh&&We.instancingMorph===!1&&H.morphTexture!==null||We.envMap!==we||J.fog===!0&&We.fog!==he||We.numClippingPlanes!==void 0&&(We.numClippingPlanes!==Ue.numPlanes||We.numIntersection!==Ue.numIntersection)||We.vertexAlphas!==qe||We.vertexTangents!==Je||We.morphTargets!==Ie||We.morphNormals!==lt||We.morphColors!==_t||We.toneMapping!==Lt||We.morphTargetsCount!==bt)&&(ft=!0):(ft=!0,We.__version=J.version);let mt=We.currentProgram;ft===!0&&(mt=_i(J,V,H));let bn=!1,Jt=!1,Gn=!1;const Rt=mt.getUniforms(),Vt=We.uniforms;if(De.useProgram(mt.program)&&(bn=!0,Jt=!0,Gn=!0),J.id!==N&&(N=J.id,Jt=!0),bn||O!==E){De.buffers.depth.getReversed()&&E.reversedDepth!==!0&&(E._reversedDepth=!0,E.updateProjectionMatrix()),Rt.setValue(F,"projectionMatrix",E.projectionMatrix),Rt.setValue(F,"viewMatrix",E.matrixWorldInverse);const Wt=Rt.map.cameraPosition;Wt!==void 0&&Wt.setValue(F,Ne.setFromMatrixPosition(E.matrixWorld)),yt.logarithmicDepthBuffer&&Rt.setValue(F,"logDepthBufFC",2/(Math.log(E.far+1)/Math.LN2)),(J.isMeshPhongMaterial||J.isMeshToonMaterial||J.isMeshLambertMaterial||J.isMeshBasicMaterial||J.isMeshStandardMaterial||J.isShaderMaterial)&&Rt.setValue(F,"isOrthographic",E.isOrthographicCamera===!0),O!==E&&(O=E,Jt=!0,Gn=!0)}if(H.isSkinnedMesh){Rt.setOptional(F,H,"bindMatrix"),Rt.setOptional(F,H,"bindMatrixInverse");const Ft=H.skeleton;Ft&&(Ft.boneTexture===null&&Ft.computeBoneTexture(),Rt.setValue(F,"boneTexture",Ft.boneTexture,Qe))}H.isBatchedMesh&&(Rt.setOptional(F,H,"batchingTexture"),Rt.setValue(F,"batchingTexture",H._matricesTexture,Qe),Rt.setOptional(F,H,"batchingIdTexture"),Rt.setValue(F,"batchingIdTexture",H._indirectTexture,Qe),Rt.setOptional(F,H,"batchingColorTexture"),H._colorsTexture!==null&&Rt.setValue(F,"batchingColorTexture",H._colorsTexture,Qe));const Ht=j.morphAttributes;if((Ht.position!==void 0||Ht.normal!==void 0||Ht.color!==void 0)&&Ke.update(H,j,mt),(Jt||We.receiveShadow!==H.receiveShadow)&&(We.receiveShadow=H.receiveShadow,Rt.setValue(F,"receiveShadow",H.receiveShadow)),J.isMeshGouraudMaterial&&J.envMap!==null&&(Vt.envMap.value=we,Vt.flipEnvMap.value=we.isCubeTexture&&we.isRenderTargetTexture===!1?-1:1),J.isMeshStandardMaterial&&J.envMap===null&&V.environment!==null&&(Vt.envMapIntensity.value=V.environmentIntensity),Vt.dfgLUT!==void 0&&(Vt.dfgLUT.value=U0()),Jt&&(Rt.setValue(F,"toneMappingExposure",A.toneMappingExposure),We.needsLights&&Nr(Vt,Gn),he&&J.fog===!0&&Be.refreshFogUniforms(Vt,he),Be.refreshMaterialUniforms(Vt,J,oe,ie,R.state.transmissionRenderTarget[E.id]),hr.upload(F,Cs(We),Vt,Qe)),J.isShaderMaterial&&J.uniformsNeedUpdate===!0&&(hr.upload(F,Cs(We),Vt,Qe),J.uniformsNeedUpdate=!1),J.isSpriteMaterial&&Rt.setValue(F,"center",H.center),Rt.setValue(F,"modelViewMatrix",H.modelViewMatrix),Rt.setValue(F,"normalMatrix",H.normalMatrix),Rt.setValue(F,"modelMatrix",H.matrixWorld),J.isShaderMaterial||J.isRawShaderMaterial){const Ft=J.uniformsGroups;for(let Wt=0,ns=Ft.length;Wt0&&Qe.useMultisampledRTT(E)===!1?H=Ge.get(E).__webglMultisampledFramebuffer:Array.isArray(Je)?H=Je[j]:H=Je,W.copy(E.viewport),K.copy(E.scissor),Z=E.scissorTest}else W.copy(Ee).multiplyScalar(oe).floor(),K.copy(Me).multiplyScalar(oe).floor(),Z=ge;if(j!==0&&(H=Ur),De.bindFramebuffer(F.FRAMEBUFFER,H)&&J&&De.drawBuffers(E,H),De.viewport(W),De.scissor(K),De.setScissorTest(Z),he){const we=Ge.get(E.texture);F.framebufferTexture2D(F.FRAMEBUFFER,F.COLOR_ATTACHMENT0,F.TEXTURE_CUBE_MAP_POSITIVE_X+V,we.__webglTexture,j)}else if(ye){const we=V;for(let qe=0;qe=0&&V<=E.width-J&&j>=0&&j<=E.height-H&&(E.textures.length>1&&F.readBuffer(F.COLOR_ATTACHMENT0+Ce),F.readPixels(V,j,J,H,$e.convert(Je),$e.convert(Ie),he))}finally{const qe=y!==null?Ge.get(y).__webglFramebuffer:null;De.bindFramebuffer(F.FRAMEBUFFER,qe)}}},this.readRenderTargetPixelsAsync=async function(E,V,j,J,H,he,ye,Ce=0){if(!(E&&E.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let we=Ge.get(E).__webglFramebuffer;if(E.isWebGLCubeRenderTarget&&ye!==void 0&&(we=we[ye]),we)if(V>=0&&V<=E.width-J&&j>=0&&j<=E.height-H){De.bindFramebuffer(F.FRAMEBUFFER,we);const qe=E.textures[Ce],Je=qe.format,Ie=qe.type;if(!yt.textureFormatReadable(Je))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!yt.textureTypeReadable(Ie))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");const lt=F.createBuffer();F.bindBuffer(F.PIXEL_PACK_BUFFER,lt),F.bufferData(F.PIXEL_PACK_BUFFER,he.byteLength,F.STREAM_READ),E.textures.length>1&&F.readBuffer(F.COLOR_ATTACHMENT0+Ce),F.readPixels(V,j,J,H,$e.convert(Je),$e.convert(Ie),0);const _t=y!==null?Ge.get(y).__webglFramebuffer:null;De.bindFramebuffer(F.FRAMEBUFFER,_t);const Lt=F.fenceSync(F.SYNC_GPU_COMMANDS_COMPLETE,0);return F.flush(),await Du(F,Lt,4),F.bindBuffer(F.PIXEL_PACK_BUFFER,lt),F.getBufferSubData(F.PIXEL_PACK_BUFFER,0,he),F.deleteBuffer(lt),F.deleteSync(Lt),he}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")},this.copyFramebufferToTexture=function(E,V=null,j=0){const J=Math.pow(2,-j),H=Math.floor(E.image.width*J),he=Math.floor(E.image.height*J),ye=V!==null?V.x:0,Ce=V!==null?V.y:0;Qe.setTexture2D(E,0),F.copyTexSubImage2D(F.TEXTURE_2D,j,0,0,ye,Ce,H,he),De.unbindTexture()};const Fr=F.createFramebuffer(),Or=F.createFramebuffer();this.copyTextureToTexture=function(E,V,j=null,J=null,H=0,he=null){he===null&&(H!==0?(Ss("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),he=H,H=0):he=0);let ye,Ce,we,qe,Je,Ie,lt,_t,Lt;const Ct=E.isCompressedTexture?E.mipmaps[he]:E.image;if(j!==null)ye=j.max.x-j.min.x,Ce=j.max.y-j.min.y,we=j.isBox3?j.max.z-j.min.z:1,qe=j.min.x,Je=j.min.y,Ie=j.isBox3?j.min.z:0;else{const Ht=Math.pow(2,-H);ye=Math.floor(Ct.width*Ht),Ce=Math.floor(Ct.height*Ht),E.isDataArrayTexture?we=Ct.depth:E.isData3DTexture?we=Math.floor(Ct.depth*Ht):we=1,qe=0,Je=0,Ie=0}J!==null?(lt=J.x,_t=J.y,Lt=J.z):(lt=0,_t=0,Lt=0);const bt=$e.convert(V.format),We=$e.convert(V.type);let Pt;V.isData3DTexture?(Qe.setTexture3D(V,0),Pt=F.TEXTURE_3D):V.isDataArrayTexture||V.isCompressedArrayTexture?(Qe.setTexture2DArray(V,0),Pt=F.TEXTURE_2D_ARRAY):(Qe.setTexture2D(V,0),Pt=F.TEXTURE_2D),F.pixelStorei(F.UNPACK_FLIP_Y_WEBGL,V.flipY),F.pixelStorei(F.UNPACK_PREMULTIPLY_ALPHA_WEBGL,V.premultiplyAlpha),F.pixelStorei(F.UNPACK_ALIGNMENT,V.unpackAlignment);const ft=F.getParameter(F.UNPACK_ROW_LENGTH),mt=F.getParameter(F.UNPACK_IMAGE_HEIGHT),bn=F.getParameter(F.UNPACK_SKIP_PIXELS),Jt=F.getParameter(F.UNPACK_SKIP_ROWS),Gn=F.getParameter(F.UNPACK_SKIP_IMAGES);F.pixelStorei(F.UNPACK_ROW_LENGTH,Ct.width),F.pixelStorei(F.UNPACK_IMAGE_HEIGHT,Ct.height),F.pixelStorei(F.UNPACK_SKIP_PIXELS,qe),F.pixelStorei(F.UNPACK_SKIP_ROWS,Je),F.pixelStorei(F.UNPACK_SKIP_IMAGES,Ie);const Rt=E.isDataArrayTexture||E.isData3DTexture,Vt=V.isDataArrayTexture||V.isData3DTexture;if(E.isDepthTexture){const Ht=Ge.get(E),Ft=Ge.get(V),Wt=Ge.get(Ht.__renderTarget),ns=Ge.get(Ft.__renderTarget);De.bindFramebuffer(F.READ_FRAMEBUFFER,Wt.__webglFramebuffer),De.bindFramebuffer(F.DRAW_FRAMEBUFFER,ns.__webglFramebuffer);for(let ke=0;ke{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&fr.decode();const O0=2146435072;let _a=0;function B0(i,e){return _a+=e,_a>=O0&&(fr=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}},fr.decode(),_a=e),fr.decode(dr().subarray(i,i+e))}function va(i,e){return i=i>>>0,B0(i,e)}let gn=0;const pr=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},k0=typeof pr.encodeInto=="function"?function(i,e){return pr.encodeInto(i,e)}:function(i,e){const t=pr.encode(i);return e.set(t),{read:i.length,written:t.length}};function Fl(i,e,t){if(t===void 0){const o=pr.encode(i),l=e(o.length,1)>>>0;return dr().subarray(l,l+o.length).set(o),gn=o.length,l}let n=i.length,s=e(n,1)>>>0;const r=dr();let a=0;for(;a127)break;r[s+a]=o}if(a!==n){a!==0&&(i=i.slice(a)),s=t(s,n,n=a+i.length*3,1)>>>0;const o=dr().subarray(s+a,s+n),l=k0(i,o);a+=l.written,s=t(s,n,a,1)>>>0}return gn=a,s}let ui=null;function Yc(){return(ui===null||ui.buffer.detached===!0||ui.buffer.detached===void 0&&ui.buffer!==pt.memory.buffer)&&(ui=new DataView(pt.memory.buffer)),ui}let fs=null;function Ol(){return(fs===null||fs.byteLength===0)&&(fs=new Float64Array(pt.memory.buffer)),fs}function Ui(i,e){const t=e(i.length*8,8)>>>0;return Ol().set(i,t/8),gn=i.length,t}function nr(i,e){return i=i>>>0,Ol().subarray(i/8,i/8+e)}function z0(i){const e=pt.__wbindgen_export_3.get(i);return pt.__externref_table_dealloc(i),e}const jc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(i=>pt.__wbg_wasmkinematics_free(i>>>0,1));class V0{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jc.unregister(this),e}free(){const e=this.__destroy_into_raw();pt.__wbg_wasmkinematics_free(e,0)}forwardKinematics(e,t){const n=Ui(e,pt.__wbindgen_malloc),s=gn,r=pt.wasmkinematics_forwardKinematics(this.__wbg_ptr,n,s,t);var a=nr(r[0],r[1]).slice();return pt.__wbindgen_free(r[0],r[1]*8,8),a}inverseKinematics(e,t){const n=Ui(e,pt.__wbindgen_malloc),s=gn,r=pt.wasmkinematics_inverseKinematics(this.__wbg_ptr,n,s,t);var a=nr(r[0],r[1]).slice();return pt.__wbindgen_free(r[0],r[1]*8,8),a}inverseKinematicsSafe(e,t,n,s,r,a){const o=Ui(e,pt.__wbindgen_malloc),l=gn,c=pt.wasmkinematics_inverseKinematicsSafe(this.__wbg_ptr,o,l,t,n,s,r,a);var u=nr(c[0],c[1]).slice();return pt.__wbindgen_free(c[0],c[1]*8,8),u}calculatePassiveJoints(e,t){const n=Ui(e,pt.__wbindgen_malloc),s=gn,r=Ui(t,pt.__wbindgen_malloc),a=gn,o=pt.wasmkinematics_calculatePassiveJoints(this.__wbg_ptr,n,s,r,a);var l=nr(o[0],o[1]).slice();return pt.__wbindgen_free(o[0],o[1]*8,8),l}resetForwardKinematics(e){const t=Ui(e,pt.__wbindgen_malloc),n=gn;pt.wasmkinematics_resetForwardKinematics(this.__wbg_ptr,t,n)}constructor(e){const t=Fl(e,pt.__wbindgen_malloc,pt.__wbindgen_realloc),n=gn,s=pt.wasmkinematics_new(t,n);if(s[2])throw z0(s[1]);return this.__wbg_ptr=s[0]>>>0,jc.register(this,this.__wbg_ptr,this),this}}const G0=new Set(["basic","cors","default"]);async function H0(i,e){if(typeof Response=="function"&&i instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(i,e)}catch(n){if(i.ok&&G0.has(i.type)&&i.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await i.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(i,e);return t instanceof WebAssembly.Instance?{instance:t,module:i}:t}}function W0(){const i={};return i.wbg={},i.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,s;try{n=e,s=t,console.error(va(e,t))}finally{pt.__wbindgen_free(n,s,1)}},i.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},i.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){const n=t.stack,s=Fl(n,pt.__wbindgen_malloc,pt.__wbindgen_realloc),r=gn;Yc().setInt32(e+4,r,!0),Yc().setInt32(e+0,s,!0)},i.wbg.__wbindgen_init_externref_table=function(){const e=pt.__wbindgen_export_3,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},i.wbg.__wbindgen_string_new=function(e,t){return va(e,t)},i.wbg.__wbindgen_throw=function(e,t){throw new Error(va(e,t))},i}function X0(i,e){return pt=i.exports,Bl.__wbindgen_wasm_module=e,ui=null,fs=null,ds=null,pt.__wbindgen_start(),pt}async function Bl(i){if(pt!==void 0)return pt;typeof i<"u"&&(Object.getPrototypeOf(i)===Object.prototype?{module_or_path:i}=i:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof i>"u"&&(i=new URL("reachy_mini_rust_kinematics_bg-l105NonK.wasm",import.meta.url));const e=W0();(typeof i=="string"||typeof Request=="function"&&i instanceof Request||typeof URL=="function"&&i instanceof URL)&&(i=fetch(i));const{instance:t,module:n}=await H0(await i,e);return X0(t,n)}class q0 extends Qn{constructor(e){super(e)}load(e,t,n,s){const r=this,a=new Ro(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(o){try{t(r.parse(o))}catch(l){s?s(l):console.error(l),r.manager.itemError(e)}},n,s)}parse(e){function t(c){const u=new DataView(c),h=32/8*3+32/8*3*3+16/8,d=u.getUint32(80,!0);if(80+32/8+d*h===u.byteLength)return!0;const _=[115,111,108,105,100];for(let v=0;v<5;v++)if(n(_,u,v))return!1;return!0}function n(c,u,h){for(let d=0,p=c.length;d>5&31)/31,_=(k>>10&31)/31):(d=f,p=C,_=R)}for(let k=1;k<=3;k++){const se=O+k*12,q=N*3*3+(k-1)*3;U[q]=u.getFloat32(se,!0),U[q+1]=u.getFloat32(se+4,!0),U[q+2]=u.getFloat32(se+8,!0),M[q]=W,M[q+1]=K,M[q+2]=Z,v&&(y.setRGB(d,p,_,It),m[q]=y.r,m[q+1]=y.g,m[q+2]=y.b)}}return I.setAttribute("position",new hn(U,3)),I.setAttribute("normal",new hn(M,3)),v&&(I.setAttribute("color",new hn(m,3)),I.hasColors=!0,I.alpha=L),I}function r(c){const u=new sn,h=/solid([\s\S]*?)endsolid/g,d=/facet([\s\S]*?)endfacet/g,p=/solid\s(.+)/;let _=0;const v=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,m=new RegExp("vertex"+v+v+v,"g"),f=new RegExp("normal"+v+v+v,"g"),C=[],R=[],L=[],D=new z;let A,I=0,U=0,M=0;for(;(A=h.exec(c))!==null;){U=M;const y=A[0],N=(A=p.exec(y))!==null?A[1]:"";for(L.push(N);(A=d.exec(y))!==null;){let K=0,Z=0;const k=A[0];for(;(A=f.exec(k))!==null;)D.x=parseFloat(A[1]),D.y=parseFloat(A[2]),D.z=parseFloat(A[3]),Z++;for(;(A=m.exec(k))!==null;)C.push(parseFloat(A[1]),parseFloat(A[2]),parseFloat(A[3])),R.push(D.x,D.y,D.z),K++,M++;Z!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+_),K!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+_),_++}const O=U,W=M-U;u.userData.groupNames=L,u.addGroup(O,W,I),I++}return u.setAttribute("position",new Dt(C,3)),u.setAttribute("normal",new Dt(R,3)),u}function a(c){return typeof c!="string"?new TextDecoder().decode(c):c}function o(c){if(typeof c=="string"){const u=new Uint8Array(c.length);for(let h=0;h256||k.colormap_size!==24||k.colormap_type!==1)throw new Error("THREE.TGALoader: Invalid type colormap data for indexed type.");break;case p:case _:case m:case f:if(k.colormap_type)throw new Error("THREE.TGALoader: Invalid type colormap data for colormap type.");break;case h:throw new Error("THREE.TGALoader: No data.");default:throw new Error("THREE.TGALoader: Invalid type "+k.image_type)}if(k.width<=0||k.height<=0)throw new Error("THREE.TGALoader: Invalid image size.");if(k.pixel_size!==8&&k.pixel_size!==16&&k.pixel_size!==24&&k.pixel_size!==32)throw new Error("THREE.TGALoader: Invalid pixel size "+k.pixel_size)}function n(k,se,q,ie,oe){let pe,Le;const Ee=q.pixel_size>>3,Me=q.width*q.height*Ee;if(se&&(Le=oe.subarray(ie,ie+=q.colormap_length*(q.colormap_size>>3))),k){pe=new Uint8Array(Me);let ge,G,Y,ue=0;const ze=new Uint8Array(Ee);for(;ue>7,k[(G+ue*Y)*4+1]=(Me&992)>>2,k[(G+ue*Y)*4+2]=(Me&31)<<3,k[(G+ue*Y)*4+3]=Me&32768?0:255;return k}function a(k,se,q,ie,oe,pe,Le,Ee){let Me=0,ge,G;const Y=y.width;for(G=se;G!==ie;G+=q)for(ge=oe;ge!==Le;ge+=pe,Me+=3)k[(ge+Y*G)*4+3]=255,k[(ge+Y*G)*4+2]=Ee[Me+0],k[(ge+Y*G)*4+1]=Ee[Me+1],k[(ge+Y*G)*4+0]=Ee[Me+2];return k}function o(k,se,q,ie,oe,pe,Le,Ee){let Me=0,ge,G;const Y=y.width;for(G=se;G!==ie;G+=q)for(ge=oe;ge!==Le;ge+=pe,Me+=4)k[(ge+Y*G)*4+2]=Ee[Me+0],k[(ge+Y*G)*4+1]=Ee[Me+1],k[(ge+Y*G)*4+0]=Ee[Me+2],k[(ge+Y*G)*4+3]=Ee[Me+3];return k}function l(k,se,q,ie,oe,pe,Le,Ee){let Me,ge=0,G,Y;const ue=y.width;for(Y=se;Y!==ie;Y+=q)for(G=oe;G!==Le;G+=pe,ge++)Me=Ee[ge],k[(G+ue*Y)*4+0]=Me,k[(G+ue*Y)*4+1]=Me,k[(G+ue*Y)*4+2]=Me,k[(G+ue*Y)*4+3]=255;return k}function c(k,se,q,ie,oe,pe,Le,Ee){let Me=0,ge,G;const Y=y.width;for(G=se;G!==ie;G+=q)for(ge=oe;ge!==Le;ge+=pe,Me+=2)k[(ge+Y*G)*4+0]=Ee[Me+0],k[(ge+Y*G)*4+1]=Ee[Me+0],k[(ge+Y*G)*4+2]=Ee[Me+0],k[(ge+Y*G)*4+3]=Ee[Me+1];return k}function u(k,se,q,ie,oe){let pe,Le,Ee,Me,ge,G;switch((y.flags&C)>>R){default:case A:pe=0,Ee=1,ge=se,Le=0,Me=1,G=q;break;case L:pe=0,Ee=1,ge=se,Le=q-1,Me=-1,G=-1;break;case I:pe=se-1,Ee=-1,ge=-1,Le=0,Me=1,G=q;break;case D:pe=se-1,Ee=-1,ge=-1,Le=q-1,Me=-1,G=-1;break}if(W)switch(y.pixel_size){case 8:l(k,Le,Me,G,pe,Ee,ge,ie);break;case 16:c(k,Le,Me,G,pe,Ee,ge,ie);break;default:throw new Error("THREE.TGALoader: Format not supported.")}else switch(y.pixel_size){case 8:s(k,Le,Me,G,pe,Ee,ge,ie,oe);break;case 16:r(k,Le,Me,G,pe,Ee,ge,ie);break;case 24:a(k,Le,Me,G,pe,Ee,ge,ie);break;case 32:o(k,Le,Me,G,pe,Ee,ge,ie);break;default:throw new Error("THREE.TGALoader: Format not supported.")}return k}const h=0,d=1,p=2,_=3,v=9,m=10,f=11,C=48,R=4,L=0,D=1,A=2,I=3;if(e.length<19)throw new Error("THREE.TGALoader: Not enough data to contain header.");let U=0;const M=new Uint8Array(e),y={id_length:M[U++],colormap_type:M[U++],image_type:M[U++],colormap_index:M[U++]|M[U++]<<8,colormap_length:M[U++]|M[U++]<<8,colormap_size:M[U++],origin:[M[U++]|M[U++]<<8,M[U++]|M[U++]<<8],width:M[U++]|M[U++]<<8,height:M[U++]|M[U++]<<8,pixel_size:M[U++],flags:M[U++]};if(t(y),y.id_length+U>e.length)throw new Error("THREE.TGALoader: No data.");U+=y.id_length;let N=!1,O=!1,W=!1;switch(y.image_type){case v:N=!0,O=!0;break;case d:O=!0;break;case m:N=!0;break;case p:break;case f:N=!0,W=!0;break;case _:W=!0;break}const K=new Uint8Array(y.width*y.height*4),Z=n(N,O,y,U,M);return u(K,y.width,y.height,Z.pixel_data,Z.palettes),{data:K,width:y.width,height:y.height,flipY:!0,generateMipmaps:!0,minFilter:Fn}}}class Y0 extends Qn{load(e,t,n,s){const r=this,a=r.path===""?Pl.extractUrlBase(e):r.path,o=new Ro(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(e,function(l){try{t(r.parse(l,a))}catch(c){s?s(c):console.error(c),r.manager.itemError(e)}},n,s)}parse(e,t){function n(g,x){const T=[],S=g.childNodes;for(let w=0,$=S.length;w<$;w++){const ee=S[w];ee.nodeName===x&&T.push(ee)}return T}function s(g){if(g.length===0)return[];const x=g.trim().split(/\s+/),T=new Array(x.length);for(let S=0,w=x.length;S0&&x.push(new qi(S+".position",w,$)),ee.length>0&&x.push(new Es(S+".quaternion",w,ee)),Ae.length>0&&x.push(new qi(S+".scale",w,Ae)),x}function N(g,x,T){let S,w=!0,$,ee;for($=0,ee=g.length;$=0;){const S=g[x];if(S.value[T]!==null)return S;x--}return null}function K(g,x,T){for(;x>>0)+2);return T=T.toLowerCase(),T==="tga"?x=Vt:x=Rt,x}function re(g){const x=b(g.url),T=x.profile.technique;let S;switch(T.type){case"phong":case"blinn":S=new xs;break;case"lambert":S=new Ah;break;default:S=new _r;break}S.name=g.name||"";function w(xe,Se=null){const Oe=x.profile.samplers[xe.id];let ce=null;if(Oe!==void 0){const Fe=x.profile.surfaces[Oe.source];ce=ue(Fe.init_from)}else console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),ce=ue(xe.id);if(ce!==null){const Fe=te(ce);if(Fe!==void 0){const Pe=Fe.load(ce),Ye=xe.extra;if(Ye!==void 0&&Ye.technique!==void 0&&c(Ye.technique)===!1){const Ve=Ye.technique;Pe.wrapS=Ve.wrapU?fi:ln,Pe.wrapT=Ve.wrapV?fi:ln,Pe.offset.set(Ve.offsetU||0,Ve.offsetV||0),Pe.repeat.set(Ve.repeatU||1,Ve.repeatV||1)}else Pe.wrapS=fi,Pe.wrapT=fi;return Se!==null&&(Pe.colorSpace=Se),Pe}else return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",ce),null}else return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",xe.id),null}const $=T.parameters;for(const xe in $){const Se=$[xe];switch(xe){case"diffuse":Se.color&&S.color.fromArray(Se.color),Se.texture&&(S.map=w(Se.texture,It));break;case"specular":Se.color&&S.specular&&S.specular.fromArray(Se.color),Se.texture&&(S.specularMap=w(Se.texture));break;case"bump":Se.texture&&(S.normalMap=w(Se.texture));break;case"ambient":Se.texture&&(S.lightMap=w(Se.texture,It));break;case"shininess":Se.float&&S.shininess&&(S.shininess=Se.float);break;case"emission":Se.color&&S.emissive&&S.emissive.fromArray(Se.color),Se.texture&&(S.emissiveMap=w(Se.texture,It));break}}ht.colorSpaceToWorking(S.color,It),S.specular&&ht.colorSpaceToWorking(S.specular,It),S.emissive&&ht.colorSpaceToWorking(S.emissive,It);let ee=$.transparent,Ae=$.transparency;if(Ae===void 0&&ee&&(Ae={float:1}),ee===void 0&&Ae&&(ee={opaque:"A_ONE",data:{color:[1,1,1,1]}}),ee&&Ae)if(ee.data.texture)S.transparent=!0;else{const xe=ee.data.color;switch(ee.opaque){case"A_ONE":S.opacity=xe[3]*Ae.float;break;case"RGB_ZERO":S.opacity=1-xe[0]*Ae.float;break;case"A_ZERO":S.opacity=1-xe[3]*Ae.float;break;case"RGB_ONE":S.opacity=xe[0]*Ae.float;break;default:console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',ee.opaque)}S.opacity<1&&(S.transparent=!0)}if(T.extra!==void 0&&T.extra.technique!==void 0){const xe=T.extra.technique;for(const Se in xe){const Oe=xe[Se];switch(Se){case"double_sided":S.side=Oe===1?yn:kn;break;case"bump":S.normalMap=w(Oe.texture),S.normalScale=new dt(1,1);break}}}return S}function Q(g){return v(ke.materials[g],re)}function Be(g){const x={name:g.getAttribute("name")};for(let T=0,S=g.childNodes.length;T0?ee+xe:ee;x.inputs[Se]={id:$,offset:Ae},x.stride=Math.max(x.stride,Ae+1),ee==="TEXCOORD"&&(x.hasUV=!0);break;case"vcount":x.vcount=a(w.textContent);break;case"p":x.p=a(w.textContent);break}}return x}function ne(g){const x={};for(let T=0;T0&&x0&&ce.setAttribute("position",new Dt(w.array,w.stride)),$.array.length>0&&ce.setAttribute("normal",new Dt($.array,$.stride)),xe.array.length>0&&ce.setAttribute("color",new Dt(xe.array,xe.stride)),ee.array.length>0&&ce.setAttribute("uv",new Dt(ee.array,ee.stride)),Ae.array.length>0&&ce.setAttribute("uv1",new Dt(Ae.array,Ae.stride)),Se.array.length>0&&ce.setAttribute("skinIndex",new Dt(Se.array,Se.stride)),Oe.array.length>0&&ce.setAttribute("skinWeight",new Dt(Oe.array,Oe.stride)),S.data=ce,S.type=g[0].type,S.materialKeys=Fe,S}function it(g,x,T,S,w=!1){const $=g.p,ee=g.stride,Ae=g.vcount;function xe(ce){let Fe=$[ce+T]*Oe;const Pe=Fe+Oe;for(;Fe4)for(let Ve=1,Nt=Ye-2;Ve<=Nt;Ve++){const Mt=ce+ee*0,xt=ce+ee*Ve,gt=ce+ee*(Ve+1);xe(Mt),xe(xt),xe(gt)}ce+=ee*Ye}}else for(let ce=0,Fe=$.length;ce=x.limits.max&&(x.static=!0),x.middlePosition=(x.limits.min+x.limits.max)/2,x}function ts(g){const x={sid:g.getAttribute("sid"),name:g.getAttribute("name")||"",attachments:[],transforms:[]};for(let T=0;TPe.limits.max||cen===null?null:parseFloat(n)),(!this.origPosition||!this.origQuaternion)&&(this.origPosition=this.position.clone(),this.origQuaternion=this.quaternion.clone());let t=!1;switch(this.mimicJoints.forEach(n=>{t=n.updateFromMimickedJoint(...e)||t}),this.jointType){case"fixed":return t;case"continuous":case"revolute":{let n=e[0];return n==null||n===this.jointValue[0]?t:(!this.ignoreLimits&&this.jointType==="revolute"&&(n=Math.min(this.limit.upper,n),n=Math.max(this.limit.lower,n)),this.quaternion.setFromAxisAngle(this.axis,n).premultiply(this.origQuaternion),this.jointValue[0]!==n?(this.jointValue[0]=n,this.matrixWorldNeedsUpdate=!0,!0):t)}case"prismatic":{let n=e[0];return n==null||n===this.jointValue[0]?t:(this.ignoreLimits||(n=Math.min(this.limit.upper,n),n=Math.max(this.limit.lower,n)),this.position.copy(this.origPosition),Jc.copy(this.axis).applyEuler(this.rotation),this.position.addScaledVector(Jc,n),this.jointValue[0]!==n?(this.jointValue[0]=n,this.matrixWorldNeedsUpdate=!0,!0):t)}case"floating":return this.jointValue.every((n,s)=>e[s]===n||e[s]===null)?t:(this.jointValue[0]=e[0]!==null?e[0]:this.jointValue[0],this.jointValue[1]=e[1]!==null?e[1]:this.jointValue[1],this.jointValue[2]=e[2]!==null?e[2]:this.jointValue[2],this.jointValue[3]=e[3]!==null?e[3]:this.jointValue[3],this.jointValue[4]=e[4]!==null?e[4]:this.jointValue[4],this.jointValue[5]=e[5]!==null?e[5]:this.jointValue[5],Kn.compose(this.origPosition,this.origQuaternion,rr),sr.setFromEuler(j0.set(this.jointValue[3],this.jointValue[4],this.jointValue[5],"XYZ")),ar.set(this.jointValue[0],this.jointValue[1],this.jointValue[2]),ir.compose(ar,sr,rr),Kn.premultiply(ir),this.position.setFromMatrixPosition(Kn),this.rotation.setFromRotationMatrix(Kn),this.matrixWorldNeedsUpdate=!0,!0);case"planar":return this.jointValue.every((n,s)=>e[s]===n||e[s]===null)?t:(this.jointValue[0]=e[0]!==null?e[0]:this.jointValue[0],this.jointValue[1]=e[1]!==null?e[1]:this.jointValue[1],this.jointValue[2]=e[2]!==null?e[2]:this.jointValue[2],Kn.compose(this.origPosition,this.origQuaternion,rr),sr.setFromAxisAngle(this.axis,this.jointValue[2]),ar.set(this.jointValue[0],this.jointValue[1],0),ir.compose(ar,sr,rr),Kn.premultiply(ir),this.position.setFromMatrixPosition(Kn),this.rotation.setFromRotationMatrix(Kn),this.matrixWorldNeedsUpdate=!0,!0)}return t}}class $c extends zl{constructor(...e){super(...e),this.type="URDFMimicJoint",this.mimicJoint=null,this.offset=0,this.multiplier=1}updateFromMimickedJoint(...e){const t=e.map(n=>n*this.multiplier+this.offset);return super.setJointValue(...t)}copy(e,t){return super.copy(e,t),this.mimicJoint=e.mimicJoint,this.offset=e.offset,this.multiplier=e.multiplier,this}}class $0 extends kl{constructor(...e){super(...e),this.isURDFRobot=!0,this.urdfNode=null,this.urdfRobotNode=null,this.robotName=null,this.links=null,this.joints=null,this.colliders=null,this.visual=null,this.frames=null}copy(e,t){super.copy(e,t),this.urdfRobotNode=e.urdfRobotNode,this.robotName=e.robotName,this.links={},this.joints={},this.colliders={},this.visual={},this.traverse(n=>{n.isURDFJoint&&n.urdfName in e.joints&&(this.joints[n.urdfName]=n),n.isURDFLink&&n.urdfName in e.links&&(this.links[n.urdfName]=n),n.isURDFCollider&&n.urdfName in e.colliders&&(this.colliders[n.urdfName]=n),n.isURDFVisual&&n.urdfName in e.visual&&(this.visual[n.urdfName]=n)});for(const n in this.joints)this.joints[n].mimicJoints=this.joints[n].mimicJoints.map(s=>this.joints[s.name]);return this.frames={...this.colliders,...this.visual,...this.links,...this.joints},this}getFrame(e){return this.frames[e]}setJointValue(e,...t){const n=this.joints[e];return n?n.setJointValue(...t):!1}setJointValues(e){let t=!1;for(const n in e){const s=e[n];Array.isArray(s)?t=this.setJointValue(n,...s)||t:t=this.setJointValue(n,s)||t}return t}}const ba=new Vn,Zc=new nn;function Fi(i){return i?i.trim().split(/\s+/g).map(e=>parseFloat(e)):[0,0,0]}function Qc(i,e,t=!1){t||i.rotation.set(0,0,0),Zc.set(e[0],e[1],e[2],"ZYX"),ba.setFromEuler(Zc),ba.multiply(i.quaternion),i.quaternion.copy(ba)}class Z0{constructor(e){this.manager=e||wl,this.loadMeshCb=this.defaultMeshLoader.bind(this),this.parseVisual=!0,this.parseCollision=!1,this.packages="",this.workingPath="",this.fetchOptions={}}loadAsync(e){return new Promise((t,n)=>{this.load(e,t,null,n)})}load(e,t,n,s){const r=this.manager,a=Pl.extractUrlBase(e),o=this.manager.resolveURL(e);r.itemStart(o),fetch(o,this.fetchOptions).then(l=>{if(l.ok)return n&&n(null),l.text();throw new Error(`URDFLoader: Failed to load url '${o}' with error code ${l.status} : ${l.statusText}.`)}).then(l=>{const c=this.parse(l,this.workingPath||a);t(c),r.itemEnd(o)}).catch(l=>{s?s(l):console.error("URDFLoader: Error loading file.",l),r.itemError(o),r.itemEnd(o)})}parse(e,t=this.workingPath){const n=this.packages,s=this.loadMeshCb,r=this.parseVisual,a=this.parseCollision,o=this.manager,l={},c={},u={};function h(C){if(!/^package:\/\//.test(C))return t?t+C:C;const[R,L]=C.replace(/^package:\/\//,"").split(/\/(.+)/);if(typeof n=="string")return n.endsWith(R)?n+"/"+L:n+"/"+R+"/"+L;if(n instanceof Function)return n(R)+"/"+L;if(typeof n=="object")return R in n?n[R]+"/"+L:(console.error(`URDFLoader : ${R} not found in provided package list.`),null)}function d(C){let R;C instanceof Document?R=[...C.children]:C instanceof Element?R=[C]:R=[...new DOMParser().parseFromString(C,"text/xml").children];const L=R.filter(D=>D.nodeName==="robot").pop();return p(L)}function p(C){const R=[...C.children],L=R.filter(N=>N.nodeName.toLowerCase()==="link"),D=R.filter(N=>N.nodeName.toLowerCase()==="joint"),A=R.filter(N=>N.nodeName.toLowerCase()==="material"),I=new $0;I.robotName=C.getAttribute("name"),I.urdfRobotNode=C,A.forEach(N=>{const O=N.getAttribute("name");u[O]=m(N)});const U={},M={};L.forEach(N=>{const O=N.getAttribute("name"),W=C.querySelector(`child[link="${O}"]`)===null;l[O]=v(N,U,M,W?I:null)}),D.forEach(N=>{const O=N.getAttribute("name");c[O]=_(N)}),I.joints=c,I.links=l,I.colliders=M,I.visual=U;const y=Object.values(c);return y.forEach(N=>{N instanceof $c&&c[N.mimicJoint].mimicJoints.push(N)}),y.forEach(N=>{const O=new Set,W=K=>{if(O.has(K))throw new Error("URDFLoader: Detected an infinite loop of mimic joints.");O.add(K),K.mimicJoints.forEach(Z=>{W(Z)})};W(N)}),I.frames={...M,...U,...l,...c},I}function _(C){const R=[...C.children],L=C.getAttribute("type");let D;const A=R.find(O=>O.nodeName.toLowerCase()==="mimic");A?(D=new $c,D.mimicJoint=A.getAttribute("joint"),D.multiplier=parseFloat(A.getAttribute("multiplier")||1),D.offset=parseFloat(A.getAttribute("offset")||0)):D=new zl,D.urdfNode=C,D.name=C.getAttribute("name"),D.urdfName=D.name,D.jointType=L;let I=null,U=null,M=[0,0,0],y=[0,0,0];R.forEach(O=>{const W=O.nodeName.toLowerCase();W==="origin"?(M=Fi(O.getAttribute("xyz")),y=Fi(O.getAttribute("rpy"))):W==="child"?U=l[O.getAttribute("link")]:W==="parent"?I=l[O.getAttribute("link")]:W==="limit"&&(D.limit.lower=parseFloat(O.getAttribute("lower")||D.limit.lower),D.limit.upper=parseFloat(O.getAttribute("upper")||D.limit.upper))}),I.add(D),D.add(U),Qc(D,y),D.position.set(M[0],M[1],M[2]);const N=R.filter(O=>O.nodeName.toLowerCase()==="axis")[0];if(N){const O=N.getAttribute("xyz").split(/\s+/g).map(W=>parseFloat(W));D.axis=new z(O[0],O[1],O[2]),D.axis.normalize()}return D}function v(C,R,L,D=null){D===null&&(D=new kl);const A=[...C.children];return D.name=C.getAttribute("name"),D.urdfName=D.name,D.urdfNode=C,r&&A.filter(U=>U.nodeName.toLowerCase()==="visual").forEach(U=>{const M=f(U,u);if(D.add(M),U.hasAttribute("name")){const y=U.getAttribute("name");M.name=y,M.urdfName=y,R[y]=M}}),a&&A.filter(U=>U.nodeName.toLowerCase()==="collision").forEach(U=>{const M=f(U);if(D.add(M),U.hasAttribute("name")){const y=U.getAttribute("name");M.name=y,M.urdfName=y,L[y]=M}}),D}function m(C){const R=[...C.children],L=new xs;return L.name=C.getAttribute("name")||"",R.forEach(D=>{const A=D.nodeName.toLowerCase();if(A==="color"){const I=D.getAttribute("rgba").split(/\s/g).map(U=>parseFloat(U));L.color.setRGB(I[0],I[1],I[2]),L.opacity=I[3],L.transparent=I[3]<1,L.depthWrite=!L.transparent}else if(A==="texture"){const I=D.getAttribute("filename");if(I){const U=new Al(o),M=h(I);L.map=U.load(M),L.map.colorSpace=It}}}),L}function f(C,R={}){const L=C.nodeName.toLowerCase()==="collision",D=[...C.children];let A=null;const I=D.filter(M=>M.nodeName.toLowerCase()==="material")[0];if(I){const M=I.getAttribute("name");M&&M in R?A=R[M]:A=m(I)}else A=new xs;const U=L?new K0:new J0;return U.urdfNode=C,D.forEach(M=>{const y=M.nodeName.toLowerCase();if(y==="geometry"){const N=M.children[0].nodeName.toLowerCase();if(N==="mesh"){const O=M.children[0].getAttribute("filename"),W=h(O);if(W!==null){const K=M.children[0].getAttribute("scale");if(K){const Z=Fi(K);U.scale.set(Z[0],Z[1],Z[2])}s(W,o,(Z,k)=>{k?console.error("URDFLoader: Error loading mesh.",k):Z&&(Z instanceof Xt&&(Z.material=A),Z.position.set(0,0,0),Z.quaternion.identity(),U.add(Z))})}}else if(N==="box"){const O=new Xt;O.geometry=new Ji(1,1,1),O.material=A;const W=Fi(M.children[0].getAttribute("size"));O.scale.set(W[0],W[1],W[2]),U.add(O)}else if(N==="sphere"){const O=new Xt;O.geometry=new Ao(1,30,30),O.material=A;const W=parseFloat(M.children[0].getAttribute("radius"))||0;O.scale.set(W,W,W),U.add(O)}else if(N==="cylinder"){const O=new Xt;O.geometry=new wo(1,1,1,30),O.material=A;const W=parseFloat(M.children[0].getAttribute("radius"))||0,K=parseFloat(M.children[0].getAttribute("length"))||0;O.scale.set(W,K,W),O.rotation.set(Math.PI/2,0,0),U.add(O)}}else if(y==="origin"){const N=Fi(M.getAttribute("xyz")),O=Fi(M.getAttribute("rpy"));U.position.set(N[0],N[1],N[2]),U.rotation.set(0,0,0),Qc(U,O)}}),U}return d(e)}defaultMeshLoader(e,t,n){/\.stl$/i.test(e)?new q0(t).load(e,r=>{const a=new Xt(r,new xs);n(a)}):/\.dae$/i.test(e)?new Y0(t).load(e,r=>n(r.scene)):console.warn(`URDFLoader: Could not load model at ${e}. -No loader available`)}}class Q0{constructor(e,t=null){this.scene=e,this.urdfLoader=new Z0,this.robotGroup=new pi,this.robotGroup.name="robot",this.scene.add(this.robotGroup),this.robot=null,this.joints=[],this.jointMap=new Map,this.kinematicsModule=t}async loadRobot(e="robot.urdf",t={}){try{this.urdfLoader.packages="assets/urdf",this.urdfLoader.workingPath=t.workingPath||"assets/urdf/",this.urdfLoader.parseVisual=!0,this.urdfLoader.parseCollision=!1;const n=this.urdfLoader.workingPath+e;if(this.robot=await this.urdfLoader.loadAsync(n),!this.robot)throw new Error("Failed to load robot from URDF");return this.robotGroup.add(this.robot),this.robotGroup.position.y=-.4,this.robotGroup.rotation.x=-Math.PI/2,this.buildJointMap(this.robot),this.extractJoints(),this.configureRobotMaterials(),this.robot}catch(n){throw console.error("Failed to load robot from URDF:",n),n}}buildJointMap(e,t=new Set){if(!(!e||t.has(e.uuid))&&(t.add(e.uuid),this.jointMap.set(e.name,e),e.children&&Array.isArray(e.children)))for(const n of e.children)this.buildJointMap(n,t)}extractJoints(){this.robot?.joints&&Object.values(this.robot.joints).forEach(e=>{const t=e.axis?[e.axis.x||0,e.axis.y||0,e.axis.z||0]:[0,0,1];this.joints.push({name:e.name,type:e.type,axis:t,limit:e.limit,jointObj:e})})}configureRobotMaterials(){this.robotGroup.traverse(e=>{e instanceof Xt&&(e.castShadow=!0,e.receiveShadow=!0,e.frustumCulled=!1,e.material||(e.material=new wh({color:8947848})))})}updateJointAngles(e,t=0,n=[0,0]){if(this.robot){for(let s=0;s<6&&so.name===`stewart_${s+1}`);r?.jointObj&&r.jointObj.setJointValue(e[s]);const a=this.joints.find(o=>o.name==="yaw_body");a?.jointObj&&a.jointObj.setJointValue(t)}if(this.joints.find(s=>s.name==="left_antenna")?.jointObj&&this.joints.find(r=>r.name==="left_antenna").jointObj.setJointValue(-n[1]),this.joints.find(s=>s.name==="right_antenna")?.jointObj&&this.joints.find(r=>r.name==="right_antenna").jointObj.setJointValue(-n[0]),this.kinematicsModule)try{const s=new Float64Array(e);let r=this.kinematicsModule.forwardKinematics(s,t);r.matrix[2][3]+=-.177;const a=this.kinematicsModule.calculatePassiveJoints(new Float64Array([t,...e]),r.matrix),o=this.joints.filter(l=>l.name.includes("passive"));for(let l=0;l{t.jointObj?.setJointValue&&t.jointObj.setJointValue(0)}),this.updateJointAngles([0,0,0,0,0,0],e,[0,0])}toggleWireframe(e=null){const t=e!==null?e:!this.showWireframe;this.robotGroup.traverse(n=>{n instanceof Xt&&n.material&&(n.material.wireframe=t)}),this.showWireframe=t}updateRobotPose(e,t=0,n=[0,0]){this.updateJointAngles(e,t,n)}}class ex{constructor(e,t){this.wasmModule=e,this.kinematicsData=t}getHomePosition(){return[0,0,0,0,0,0]}resetKinematics(){const e=new Float64Array([1,0,0,0,0,1,0,0,0,0,1,.177,0,0,0,1]);this.wasmModule.resetForwardKinematics(e)}forwardKinematics(e,t=0,n=5){try{const s=new Float64Array(e);for(let o=0;o.001?(r=Math.atan2(t[1][0],t[0][0]),s=Math.atan2(t[2][1],t[2][2])):(r=0,s=Math.atan2(-t[0][1],t[1][1])),[s,n,r]}clampJointAngles(e){return e.map((t,n)=>{const s=this.kinematicsData.motors[n];if(s&&s.limits){const[r,a]=s.limits;return Math.max(r,Math.min(a,t))}return t})}getJointLimits(e){const t=this.kinematicsData.motors[e];return t?t.limits:[-Math.PI,Math.PI]}getAllJointLimits(){return this.kinematicsData.motors.map(e=>e.limits||[-Math.PI,Math.PI])}}class tx{constructor(e,t){this.camera=e,this.renderer=t,this.mouse={x:0,y:0,down:!1,button:-1},this.previousMouse={x:0,y:0},this.initialPosition=this.camera.position.clone(),this.initialTarget=new z(1,.1,0),this.currentTarget=this.initialTarget.clone(),this.spherical=new jh,this.spherical.setFromVector3(this.camera.position.clone().sub(this.currentTarget)),this.minDistance=.1,this.maxDistance=3,this.autoRotate=!1,this.autoRotateSpeed=.002,this.panSensitivity=.001,this.setupEventListeners()}setupEventListeners(){const e=this.renderer.domElement;e.addEventListener("mousedown",t=>this.onMouseDown(t)),e.addEventListener("mousemove",t=>this.onMouseMove(t)),e.addEventListener("mouseup",t=>this.onMouseUp(t)),e.addEventListener("wheel",t=>this.onMouseWheel(t)),e.addEventListener("contextmenu",t=>t.preventDefault()),e.addEventListener("touchstart",t=>this.onTouchStart(t)),e.addEventListener("touchmove",t=>this.onTouchMove(t)),e.addEventListener("touchend",t=>this.onTouchEnd(t))}onMouseDown(e){this.mouse.down=!0,this.mouse.button=e.button,this.previousMouse.x=e.clientX,this.previousMouse.y=e.clientY}onMouseMove(e){if(this.mouse.x=e.clientX,this.mouse.y=e.clientY,this.mouse.down){const t=this.mouse.x-this.previousMouse.x,n=this.mouse.y-this.previousMouse.y;if(this.mouse.button===0)this.spherical.theta-=t*.005,this.spherical.phi-=n*.005,this.spherical.phi=Math.max(.1,Math.min(Math.PI-.1,this.spherical.phi));else if(this.mouse.button===2){const s=new z,r=new z;this.camera.getWorldDirection(s),s.cross(this.camera.up).normalize(),r.copy(this.camera.up).normalize();const a=s.multiplyScalar(-t*this.panSensitivity*this.spherical.radius),o=r.multiplyScalar(n*this.panSensitivity*this.spherical.radius);this.currentTarget.add(a).add(o)}}this.previousMouse.x=this.mouse.x,this.previousMouse.y=this.mouse.y}onMouseUp(e){this.mouse.down=!1,this.mouse.button=-1}onMouseWheel(e){e.preventDefault();const t=1.2;e.deltaY>0?this.spherical.radius*=t:this.spherical.radius/=t,this.spherical.radius=Math.max(this.minDistance,Math.min(this.maxDistance,this.spherical.radius))}onTouchStart(e){e.touches.length===1&&(this.mouse.down=!0,this.previousMouse.x=e.touches[0].clientX,this.previousMouse.y=e.touches[0].clientY)}onTouchMove(e){if(e.touches.length===1&&this.mouse.down){this.mouse.x=e.touches[0].clientX,this.mouse.y=e.touches[0].clientY;const t=this.mouse.x-this.previousMouse.x,n=this.mouse.y-this.previousMouse.y;this.spherical.theta-=t*.005,this.spherical.phi-=n*.005,this.spherical.phi=Math.max(.1,Math.min(Math.PI-.1,this.spherical.phi)),this.previousMouse.x=this.mouse.x,this.previousMouse.y=this.mouse.y}else if(e.touches.length===2){const t=e.touches[0],n=e.touches[1],s=Math.hypot(n.clientX-t.clientX,n.clientY-t.clientY);if(this.previousDistance){const r=s-this.previousDistance;this.spherical.radius*=Math.pow(.95,r/50),this.spherical.radius=Math.max(this.minDistance,Math.min(this.maxDistance,this.spherical.radius))}this.previousDistance=s}}onTouchEnd(e){e.touches.length===0&&(this.mouse.down=!1),this.previousDistance=null}update(){this.autoRotate&&!this.mouse.down&&(this.spherical.theta+=this.autoRotateSpeed);const e=new z;e.setFromSpherical(this.spherical),e.add(this.currentTarget),this.camera.position.copy(e),this.camera.lookAt(this.currentTarget)}reset(){this.spherical.setFromVector3(this.initialPosition.clone().sub(this.initialTarget)),this.currentTarget.copy(this.initialTarget)}setTarget(e){this.currentTarget.copy(e)}toggleAutoRotate(){this.autoRotate=!this.autoRotate}}class nx{constructor(){this.scene=null,this.camera=null,this.renderer=null,this.robotVisualizer=null,this.kinematicsController=null,this.cameraController=null,this.animationId=null,this.kinematicsData=null,this.wasmModule=null,this.ws=null,this.wsReconnectDelay=1e3,this.latestJointAngles=null,this.latestBodyYaw=0,this.latestAntennas=[0,0]}async initialize(){try{this.updateStatus("Initializing WASM...","info"),await Bl(),this.updateStatus("Loading kinematics data...","info");const e=await fetch("assets/kinematics_data.json");this.kinematicsData=await e.json();const t=JSON.stringify(this.kinematicsData);this.wasmModule=new V0(t),this.setupScene(),this.updateStatus("Setting up kinematics...","info"),this.kinematicsController=new ex(this.wasmModule,this.kinematicsData),this.cameraController=new tx(this.camera,this.renderer),this.updateStatus("Loading robot from URDF...","info"),this.robotVisualizer=new Q0(this.scene,this.kinematicsController),await this.robotVisualizer.loadRobot("robot.urdf"),this.fitCameraToRobot(),this.setupWebSocket(),this.animate(),this.updateStatus("Ready! Robot loaded from URDF","success")}catch(e){console.error("Initialization error:",e),this.updateStatus(`Error: ${e.message}`,"error")}}setupScene(){const e=document.getElementById("canvas"),t=window.innerWidth,n=window.innerHeight;this.scene=new vl,this.scene.background=new tt(16777215),this.scene.fog=new yo(16777215,5,20),this.camera=new jt(75,t/n,.1,1e3),this.camera.position.set(1.2,.2,0),this.camera.lookAt(0,0,0),this.renderer=new F0({canvas:e,antialias:!0,alpha:!1}),this.renderer.setSize(t,n),this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=void 0;const s=new Cl(16777215,.6);this.scene.add(s);const r=new Rl(16777215,.8);r.position.set(2,3,2),r.castShadow=!0,r.shadow.mapSize.width=2048,r.shadow.mapSize.height=2048,r.shadow.camera.far=10,r.shadow.camera.left=-2,r.shadow.camera.right=2,r.shadow.camera.top=2,r.shadow.camera.bottom=-2,this.scene.add(r),window.addEventListener("resize",()=>this.onWindowResize())}animate=()=>{this.animationId=requestAnimationFrame(this.animate),this.cameraController.update(),this.latestJointAngles&&this.robotVisualizer.updateJointAngles(this.latestJointAngles,this.latestBodyYaw,this.latestAntennas),this.renderer.render(this.scene,this.camera)};onWindowResize(){const e=window.innerWidth,t=window.innerHeight;this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t)}fitCameraToRobot(){if(!this.robotVisualizer||!this.robotVisualizer.robotGroup)return;new gi().setFromObject(this.robotVisualizer.robotGroup).getCenter(new z),this.camera.position.set(.4,0,0),this.camera.lookAt([0,0,0]),this.camera.updateProjectionMatrix(),this.cameraController.setTarget(new z(0,-.2,0)),this.cameraController.spherical.setFromVector3(this.camera.position.clone().sub(new z(0,0,0)))}updateStatus(e,t="info"){console.log(`[${t.toUpperCase()}] ${e}`)}getWebSocketUrl(){const t=new URLSearchParams(window.location.search).get("ws");return t||(window.REACHY_WS_URL?window.REACHY_WS_URL:`${window.location.protocol==="https:"?"wss":"ws"}://${window.location.host}/joint_states`)}setupWebSocket(){const e=this.getWebSocketUrl();this.updateStatus(`Connecting to joint state WebSocket: ${e}`,"info");try{this.ws=new WebSocket(e)}catch(t){this.updateStatus(`WebSocket error: ${t.message}`,"error"),this.scheduleReconnect();return}this.ws.addEventListener("open",()=>{this.updateStatus("WebSocket connected","success"),this.wsReconnectDelay=1e3}),this.ws.addEventListener("message",t=>{this.handleWsMessage(t.data)}),this.ws.addEventListener("close",()=>{this.updateStatus("WebSocket disconnected","error"),this.scheduleReconnect()}),this.ws.addEventListener("error",t=>{console.error("WebSocket error:",t)})}scheduleReconnect(){this.ws&&(this.ws.close(),this.ws=null);const e=this.wsReconnectDelay;this.wsReconnectDelay=Math.min(this.wsReconnectDelay*2,1e4),setTimeout(()=>this.setupWebSocket(),e)}async handleWsMessage(e){if(e instanceof ArrayBuffer){this.applyAnglesFromArray(new Float32Array(e));return}if(e instanceof Blob){const a=await e.arrayBuffer();this.applyAnglesFromArray(new Float32Array(a));return}if(typeof e!="string")return;let t=null;try{t=JSON.parse(e)}catch{const a=e.split(/[,\s]+/).filter(Boolean).map(Number);a.length>=6&&a.every(Number.isFinite)&&(t=a)}if(Array.isArray(t)){this.applyAnglesFromArray(t);return}if(!t||typeof t!="object")return;const n=this.parseBodyYaw(t),s=t.angles||t.joint_angles||t.joints||t.active_joints||t.stewart||t.stewart_angles||t.positions,r=this.parseAntennas(t);r&&(this.latestAntennas=r),Array.isArray(s)&&this.applyAnglesFromArray(s,n,r)}parseBodyYaw(e){const t=[e.body_yaw,e.bodyYaw,e.yaw_body,e.yawBody,e.yaw];for(const n of t)if(Number.isFinite(n))return n}parseAntennas(e){const t=[e.antennas,e.antenna,e.antenna_angles,e.antennaAngles,e.antenna_positions,e.antennaPositions];for(const r of t)if(Array.isArray(r)&&r.length>=2){const a=Number(r[0]),o=Number(r[1]);if(Number.isFinite(a)&&Number.isFinite(o))return[a,o]}const n=e.left_antenna??e.leftAntenna,s=e.right_antenna??e.rightAntenna;if(Number.isFinite(n)&&Number.isFinite(s))return[Number(n),Number(s)]}applyAnglesFromArray(e,t=void 0,n=void 0){const s=Array.from(e).map(Number).filter(Number.isFinite);if(s.length<6)return;let r=Number.isFinite(t)?t:this.latestBodyYaw,a=Array.isArray(n)?n:this.latestAntennas,o=s;s.length>=9?(Number.isFinite(t)||(r=s[0]),o=s.slice(1,7),a=s.slice(7,9)):s.length>=7?(Number.isFinite(t)||(r=s[0]),o=s.slice(1,7)):o=s.slice(0,6),o.length===6&&(this.latestJointAngles=o,Number.isFinite(r)&&(this.latestBodyYaw=r),Array.isArray(a)&&a.length>=2&&a.every(Number.isFinite)&&(this.latestAntennas=a.slice(0,2)))}}window.simulator=new nx;window.simulator.initialize().catch(console.error); diff --git a/remote_control_space/dist/assets/kinematics_data.json b/remote_control_space/dist/assets/kinematics_data.json deleted file mode 100644 index 1def260093a18bf647077b91245b873a831a57f3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/kinematics_data.json +++ /dev/null @@ -1,272 +0,0 @@ -{ - "motor_arm_length": 0.04000000000000001, - "rod_length": 0.08499999999999995, - "head_z_offset": 0.177, - "passive_joint_kinematics": { - "t_xl330_in_platform_frame": [ - [ 0.4822, -0.7068, -0.5177, 0.0206], - [ 0.1766, -0.5003, 0.8476, -0.0218], - [-0.8581, -0.5001, -0.1164, -0.0 ], - [ 0.0 , 0.0 , 0.0 , 1.0 ] - ], - "orientation_offset_in_servo_arm_frame": [ - [-0.13754,-0.0882156, 2.10349], - [-3.14159, 5.37396e-16, -3.14159], - [0.373569, 0.0882156, -1.0381], - [-0.0860846, 0.0882156, 1.0381], - [0.123977, 0.0882156, -1.0381], - [3.0613, 0.0882156, 1.0381], - [3.14159, 2.10388e-17, 4.15523e-17] - ], - "stewart_rod_direction_in_passive_frame":[ - [1, 0, 0], - [ 0.50606941, -0.85796418, -0.08826792], - [-1, 0, 0], - [-1, 0, 0], - [-1, 0, 0], - [-1, 0, 0] - ] - }, - "motors": [ - { - "name": "stewart_1", - "branch_frame": "closing_1_2", - "offset": 0, - "solution": 0, - "T_motor_world": [ - [ - 0.8660247915798898, - -0.5000010603626028, - -2.298079077119539e-06, - -0.009999848080267933 - ], - [ - 4.490195936008854e-06, - 3.1810770986818273e-06, - 0.999999999984859, - -0.07663346037245178 - ], - [ - -0.500001060347722, - -0.8660247915770963, - 4.999994360718464e-06, - 0.03666015757925319 - ], - [ - 0.0, - 0.0, - 0.0, - 1.0 - ] - ], - "branch_position": [ - 0.020648178337122566, - 0.021763723638894568, - 1.0345743467476964e-07 - ], - "limits": [ - -0.8377580409572196, 1.3962634015955222 - ] - }, - { - "name": "stewart_2", - "branch_frame": "closing_2_2", - "offset": 0, - "solution": 1, - "T_motor_world": [ - [ - -0.8660211183436269, - 0.5000074225224785, - 2.298069723064582e-06, - -0.01000055227585102 - ], - [ - -4.490219645842903e-06, - -3.181063409649239e-06, - -0.999999999984859, - 0.07663346037219607 - ], - [ - -0.5000074225075973, - -0.8660211183408337, - 5.00001124330122e-06, - 0.03666008712637943 - ], - [ - 0.0, - 0.0, - 0.0, - 1.0 - ] - ], - "branch_position": [ - 0.00852381571767217, - 0.028763668526131346, - 1.183437210727778e-07 - ], - "limits": [ - -1.396263401595614, 1.2217304763958803 - ] - }, - { - "name": "stewart_3", - "branch_frame": "closing_3_2", - "offset": 0, - "solution": 0, - "T_motor_world": [ - [ - 6.326794896519466e-06, - 0.9999999999799852, - -7.0550646912150425e-12, - -0.009999884140839245 - ], - [ - -1.0196153102346142e-06, - 1.3505961633338446e-11, - 0.9999999999994795, - -0.07663346037438698 - ], - [ - 0.9999999999794655, - -6.326794896940104e-06, - 1.0196153098685706e-06, - 0.036660683387545835 - ], - [ - 0.0, - 0.0, - 0.0, - 1.0 - ] - ], - "branch_position": [ - -0.029172011376922807, - 0.0069999429399361995, - 4.0290270064691214e-08 - ], - "limits": [ - -0.8377580409572173, 1.3962634015955244 - ] - }, - { - "name": "stewart_4", - "branch_frame": "closing_4_2", - "offset": 0, - "solution": 1, - "T_motor_world": [ - [ - -3.673205069955933e-06, - -0.9999999999932537, - -6.767968877969483e-14, - -0.010000000000897517 - ], - [ - 1.0196153102837198e-06, - -3.6775764393585005e-12, - -0.9999999999994795, - 0.0766334603742898 - ], - [ - 0.9999999999927336, - -3.673205070385213e-06, - 1.0196153102903487e-06, - 0.03666065685180194 - ], - [ - 0.0, - 0.0, - 0.0, - 1.0 - ] - ], - "branch_position": [ - -0.029172040355214434, - -0.0069999960097160766, - -3.1608172912367394e-08 - ], - "limits": [ - -1.3962634015953894, 0.8377580409573525 - ] - }, - { - "name": "stewart_5", - "branch_frame": "closing_5_2", - "offset": 0, - "solution": 0, - "T_motor_world": [ - [ - -0.8660284647694133, - -0.4999946981757419, - 2.298079429767357e-06, - -0.010000231529504576 - ], - [ - 4.490172883391843e-06, - -3.1811099293773187e-06, - 0.9999999999848591, - -0.07663346037246624 - ], - [ - -0.4999946981608617, - 0.8660284647666201, - 4.999994384073154e-06, - 0.03666016059492482 - ], - [ - 0.0, - 0.0, - 0.0, - 1.0 - ] - ], - "branch_position": [ - 0.008523809101930114, - -0.028763713010385224, - -1.4344916837716326e-07 - ], - "limits": [ - -1.2217304763962082, 1.396263401595286 - ] - }, - { - "name": "stewart_6", - "branch_frame": "passive_7_link_y", - "offset": 0, - "solution": 1, - "T_motor_world": [ - [ - 0.8660247915798897, - 0.5000010603626025, - -2.298069644866714e-06, - -0.009999527331574583 - ], - [ - -4.490196220318687e-06, - 3.1810964558725514e-06, - -0.9999999999848591, - 0.07663346037272492 - ], - [ - -0.500001060347722, - 0.8660247915770967, - 5.000011266610794e-06, - 0.036660231042625266 - ], - [ - 0.0, - 0.0, - 0.0, - 1.0 - ] - ], - "branch_position": [ - 0.020648186722822436, - -0.02176369606185343, - -8.957920105689965e-08 - ], - "limits": [ - -1.3962634015954123, 0.8377580409573296 - ] - } - ] -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/reachy_mini_rust_kinematics_bg-l105NonK.wasm b/remote_control_space/dist/assets/reachy_mini_rust_kinematics_bg-l105NonK.wasm deleted file mode 100644 index 9910fcf085cb236ac4a9b6c60d3e5bba7c9fa52a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/reachy_mini_rust_kinematics_bg-l105NonK.wasm +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9500f879ae25f03b6939bc3e689f6b9ff3e733fc603e7b84c6cf69e9f17f8b33 -size 209034 diff --git a/remote_control_space/dist/assets/urdf/assets/5w_speaker.part b/remote_control_space/dist/assets/urdf/assets/5w_speaker.part deleted file mode 100644 index 323829c404dac84610e29fae4f4079c973f4630e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/5w_speaker.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "48f0e86376312f8ca242a082", - "fullConfiguration": "default", - "id": "MUIOPFRAXdyRYA5/y", - "isStandardContent": false, - "name": "5W_SPEAKER <1>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/5w_speaker.stl b/remote_control_space/dist/assets/urdf/assets/5w_speaker.stl deleted file mode 100644 index 00a29236bdb8101ddee079de562870f3a5877e12..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/5w_speaker.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89c220ac5fa6dd559fcd2f3faccb7197904ab6b882ccf5d2ad04b17a09d58b98 -size 229884 diff --git a/remote_control_space/dist/assets/urdf/assets/antenna.part b/remote_control_space/dist/assets/urdf/assets/antenna.part deleted file mode 100644 index 3e6670e8d45549d1de88eff9330188d29998fd6f..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "d5df0bcac25cddb763b3a090", - "fullConfiguration": "default", - "id": "MT+KnYpqaZ58+3raS", - "isStandardContent": false, - "name": "antenna <2>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/antenna.stl b/remote_control_space/dist/assets/urdf/assets/antenna.stl deleted file mode 100644 index 1dee4a7c0fd16b225385d5ef7866a802ea4ee18e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebe995bfc23aa8f832e86065c364ddf5bf0c1341d6cd4da30790631c7e15a275 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_body_3dprint.part b/remote_control_space/dist/assets/urdf/assets/antenna_body_3dprint.part deleted file mode 100644 index 7b7ceb2108438e03d3e23bb4fd7e6bd75ffc9b68..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_body_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "M6OWFp5hfkfES9FmB", - "isStandardContent": false, - "name": "Antenna_body_3DPrint <2>", - "partId": "JF/", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_body_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/antenna_body_3dprint.stl deleted file mode 100644 index 57603870b064c815155ec0a14b722b374291a492..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_body_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f760ace60b1a368ba7c51bcd01a152a85e66a587fb24d55886cb9d9ffb9008f -size 241784 diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_holder_l_3dprint.part b/remote_control_space/dist/assets/urdf/assets/antenna_holder_l_3dprint.part deleted file mode 100644 index 01fa39d2ec059631dd9c404a337f35c189a554c1..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_holder_l_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MHVB1f7lyvjCWrFJe", - "isStandardContent": false, - "name": "Antenna_Holder-L_3DPrint <1>", - "partId": "KFDB", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_holder_l_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/antenna_holder_l_3dprint.stl deleted file mode 100644 index 661802d1420a882c69b935142c8bd2e6ad5b475b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_holder_l_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2163af81f112d0e1503f284213e831ff7692960cbcb7085ad6db8b63912fd466 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_holder_r_3dprint.part b/remote_control_space/dist/assets/urdf/assets/antenna_holder_r_3dprint.part deleted file mode 100644 index 047b5202be64618854767faa97c9547622e8e4af..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_holder_r_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MX6Uc6wQ4cFgySRks", - "isStandardContent": false, - "name": "Antenna_Holder-R_3DPrint <1>", - "partId": "JFv", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_holder_r_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/antenna_holder_r_3dprint.stl deleted file mode 100644 index 2a3548a26c818890c82527ed4fa6f1a448678e4e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_holder_r_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f516056c535ac6bc8ec94983e48945bfca75ccf17d058263bfe67c4883d8932 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_interface_3dprint.part b/remote_control_space/dist/assets/urdf/assets/antenna_interface_3dprint.part deleted file mode 100644 index 49e9dfb4a2f1f6ae62ded9bad7e1e89dafa13d46..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_interface_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MObKCzX1Fco0wvr0/", - "isStandardContent": false, - "name": "Antenna_interface_3DPrint <2>", - "partId": "JF7", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/antenna_interface_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/antenna_interface_3dprint.stl deleted file mode 100644 index 15b32f15011a3154fc5c832e7573d6dfac98b538..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/antenna_interface_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:662384ed2de2c37fff6d5bab1ba0ccb76ee03f5d1680043d255e33e879b481bb -size 179984 diff --git a/remote_control_space/dist/assets/urdf/assets/arducam.part b/remote_control_space/dist/assets/urdf/assets/arducam.part deleted file mode 100644 index 6268a27d56b5bc11c338dd4130330ea77e290c13..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/arducam.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "ae2c63bc6f578a46d35cd365", - "fullConfiguration": "default", - "id": "MDupaBfND/yK9FERm", - "isStandardContent": false, - "name": "Arducam <1>", - "partId": "JGD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/arducam.stl b/remote_control_space/dist/assets/urdf/assets/arducam.stl deleted file mode 100644 index 7badfd2fe38b5864a648f7736f64e70888077a9a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/arducam.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8916e1a5fe5ffd8c0c3eded5f173871be269a2c26a437db7f7039e6c8cc7a020 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/arm.part b/remote_control_space/dist/assets/urdf/assets/arm.part deleted file mode 100644 index 521486400deaaa9c9cbd828574baa9dcb29af98d..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/arm.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MHbJVGQ/2CguoKbZz", - "isStandardContent": false, - "name": "Arm <1>", - "partId": "JsD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/arm.stl b/remote_control_space/dist/assets/urdf/assets/arm.stl deleted file mode 100644 index b104f0ad630bec3de1516e6148b4bde7ec9c7e60..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/arm.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f1466fc2854bf4d3eb92b5f5f595e2c1a1dd90f8f9bbdcc581f88c541e72a47f -size 104784 diff --git a/remote_control_space/dist/assets/urdf/assets/b3b_eh.part b/remote_control_space/dist/assets/urdf/assets/b3b_eh.part deleted file mode 100644 index afa468c7e48ae9fbd21eab01a9541462794d9df4..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/b3b_eh.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "Md1pPF2974d9JOL2l", - "isStandardContent": false, - "name": "B3B-EH <1>", - "partId": "JFr", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/b3b_eh.stl b/remote_control_space/dist/assets/urdf/assets/b3b_eh.stl deleted file mode 100644 index 29565d9e384e88ae8aaaa9b10ff84fb12f89ba09..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/b3b_eh.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:388ed3ff01359dac77cad8f1a14c4babeb4e2b72b5c1c60333fa2682bf62ac17 -size 9884 diff --git a/remote_control_space/dist/assets/urdf/assets/b3b_eh_1.part b/remote_control_space/dist/assets/urdf/assets/b3b_eh_1.part deleted file mode 100644 index a30748b802c7941da860393d9a0dc99cf1297c09..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/b3b_eh_1.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MMuPyh0yjSzJko9Po", - "isStandardContent": false, - "name": "B3B-EH_1 <1>", - "partId": "JFT", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/b3b_eh_1.stl b/remote_control_space/dist/assets/urdf/assets/b3b_eh_1.stl deleted file mode 100644 index 268d4d96bd27d4134a27b0115589becd4a6e444b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/b3b_eh_1.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a741e87c71a9ff662a24ab5d6c7b8397afc6a7f7506910992814506d98d8e21f -size 9884 diff --git a/remote_control_space/dist/assets/urdf/assets/ball.part b/remote_control_space/dist/assets/urdf/assets/ball.part deleted file mode 100644 index cdeff374fef867c1c0be03f0c6b79ccead7fb1d3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/ball.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "0aa833fd983f27ea7fb43256", - "fullConfiguration": "default", - "id": "Msm1EC3X/D1/s/Uus", - "isStandardContent": false, - "name": "Ball <13>", - "partId": "JSD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/ball.stl b/remote_control_space/dist/assets/urdf/assets/ball.stl deleted file mode 100644 index 6261467e2f5ecd06c86600bdf01d22a1b4d70cab..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/ball.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa04fda74ce21c562e6ad5645c619c425ce2644f29463cef38ad791c3e98b1c7 -size 158484 diff --git a/remote_control_space/dist/assets/urdf/assets/bearing_85x110x13.part b/remote_control_space/dist/assets/urdf/assets/bearing_85x110x13.part deleted file mode 100644 index c80cc1b7772338e12004198fb2e655376f7c45ac..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/bearing_85x110x13.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "d5ff0fe74f14f26be2deb5d4", - "fullConfiguration": "default", - "id": "MYk5LvI8gIvlMtfS7", - "isStandardContent": false, - "name": "Bearing_85x110x13 <1>", - "partId": "JGD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/bearing_85x110x13.stl b/remote_control_space/dist/assets/urdf/assets/bearing_85x110x13.stl deleted file mode 100644 index 751ac994ab783ba08d731006ca50d2c789252307..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/bearing_85x110x13.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d6052d367e0a9f36063a3be16c77e34d8c5da3bb001346a317b75f19b9e60fe -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/big_lens.part b/remote_control_space/dist/assets/urdf/assets/big_lens.part deleted file mode 100644 index b5f2505e96232073a4b652b2eb2eddaa87272477..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/big_lens.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "MpioSzVOUQtkaeTVH", - "isStandardContent": false, - "name": "big_lens <1>", - "partId": "J0D", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/big_lens.stl b/remote_control_space/dist/assets/urdf/assets/big_lens.stl deleted file mode 100644 index 5528ca0d5bf74e8e3d48709d244d9187ab36aadf..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/big_lens.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28b05e56f4c9fcf6458ef7ae0a49b016251afbb463199095922eaac0d597bbe5 -size 266484 diff --git a/remote_control_space/dist/assets/urdf/assets/big_lens_d40.part b/remote_control_space/dist/assets/urdf/assets/big_lens_d40.part deleted file mode 100644 index d866fd19907b81ae2c610e1d13939d956425f95e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/big_lens_d40.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "f67f6ec9755019fa8d4cde38", - "fullConfiguration": "default", - "id": "M6vM68+58boAYt2AP", - "isStandardContent": false, - "name": "Big Lens D40 <1>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/big_lens_d40.stl b/remote_control_space/dist/assets/urdf/assets/big_lens_d40.stl deleted file mode 100644 index afa5536066cdf16c9d355babcf7782f4a2a4a54b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/big_lens_d40.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4df711c8e29a677f62622d57c5cac01257ae9a44f46adb67fefb54b8fe52a6eb -size 151284 diff --git a/remote_control_space/dist/assets/urdf/assets/body_down_3dprint.part b/remote_control_space/dist/assets/urdf/assets/body_down_3dprint.part deleted file mode 100644 index a35e3a2946f5fc2046131caa52616c4a53643654..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_down_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "M40W4a7sQuI8QEDbK", - "isStandardContent": false, - "name": "BODY-DOWN_3DPrint <1>", - "partId": "JFP", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/body_down_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/body_down_3dprint.stl deleted file mode 100644 index 172d7baaebbd65b5cc0ca39e8f3a467201fde9e1..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_down_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3d46f953d49182f85fa818a5d3935c688afffdf4d7a0119aa58f9292a8e3707 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/body_foot_3dprint.part b/remote_control_space/dist/assets/urdf/assets/body_foot_3dprint.part deleted file mode 100644 index 07ac3aaa9b1993246e54ba9b5cdc8ac3ceb77db2..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_foot_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MFPx9mgqcSNR4iAYO", - "isStandardContent": false, - "name": "BODY-FOOT_3DPrint <1>", - "partId": "JFH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/body_foot_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/body_foot_3dprint.stl deleted file mode 100644 index 5f68209f5f49b37804f6f6bec23a243e5c4ece24..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_foot_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eab9440d4d6745c99445dba3887f4668b48780e8a10aa1efc05e3f9481b40caf -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/body_top_3dprint.part b/remote_control_space/dist/assets/urdf/assets/body_top_3dprint.part deleted file mode 100644 index 17722be87830aed010dab466fc4555df2ba6847c..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_top_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MfqCGZgMWtuWpureN", - "isStandardContent": false, - "name": "BODY_TOP_3DPrint <1>", - "partId": "JFb", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/body_top_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/body_top_3dprint.stl deleted file mode 100644 index 067b40f1f47f0bc3e905e17de3f529f3f3e4a6a3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_top_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b985a9288abfc9894335c609bf24943551ae185e855f40c9a9f89c6a7c0eb831 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/body_turning_3dprint.part b/remote_control_space/dist/assets/urdf/assets/body_turning_3dprint.part deleted file mode 100644 index a967bb56a6d35d19dd106c2ecd4a0520416444a8..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_turning_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MttvYsoT0rlrLKDwS", - "isStandardContent": false, - "name": "BODY-TURNING_3DPrint <1>", - "partId": "JFL", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/body_turning_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/body_turning_3dprint.stl deleted file mode 100644 index 0cd5f031f9086ea2d9661fb89e2e3a4064a279d3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/body_turning_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c9757573938050cb1c0a4c7fdf37d8bbb3f9cf28dc19444c3487c1c5765d264 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/bottom_body.part b/remote_control_space/dist/assets/urdf/assets/bottom_body.part deleted file mode 100644 index 001ff6567e8a116aafd456c3ecc575d61718947a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/bottom_body.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MgqLgbONW+9OAHLGG", - "isStandardContent": false, - "name": "bottom_body <1>", - "partId": "RcDD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/bottom_body.stl b/remote_control_space/dist/assets/urdf/assets/bottom_body.stl deleted file mode 100644 index 32350dd01a46e79c514d71bc8828e84f6729e3ed..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/bottom_body.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7b36963b7ae1cf06cc50aba61d5024df7f006274006671f378a0a52e29065eb -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/bts2_m2_6x8.part b/remote_control_space/dist/assets/urdf/assets/bts2_m2_6x8.part deleted file mode 100644 index afd31549097f79cdc80dd406346fa098fd3d5720..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/bts2_m2_6x8.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MHzA6RZ/kEAMV93SN", - "isStandardContent": false, - "name": "BTS2_M2_6X8 <1>", - "partId": "JFL", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/bts2_m2_6x8.stl b/remote_control_space/dist/assets/urdf/assets/bts2_m2_6x8.stl deleted file mode 100644 index c9d6877ca329f3ed698cc3fbc48bda60958d1304..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/bts2_m2_6x8.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:303a706276ef0a3dcf8b6deeabf73969d2c48cb6628209bf0fed825b622deccb -size 269184 diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_b_dummy.part b/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_b_dummy.part deleted file mode 100644 index 420f5df50f4a772a4de847dc44aff9acc747e308..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_b_dummy.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "M0s224h4t0HqzV/u4", - "isStandardContent": false, - "name": "DC15_A01_CASE_B_DUMMY <1>", - "partId": "JFf", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_b_dummy.stl b/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_b_dummy.stl deleted file mode 100644 index be16e3d867aeec0cd64d95ff10324f7b57d0da17..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_b_dummy.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b108f9390168a9052b408b292e316112f28e11d5ca51e28a374f29ce9ef2790 -size 248884 diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_f_dummy.part b/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_f_dummy.part deleted file mode 100644 index 95fecb125aa4742c5d8b229958d10121baa801bc..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_f_dummy.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MJyRwhvvOMia59Q6o", - "isStandardContent": false, - "name": "DC15_A01_CASE_F_DUMMY <1>", - "partId": "JFj", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_f_dummy.stl b/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_f_dummy.stl deleted file mode 100644 index 366b36df275c4b23ffa21d18f7d21e3364059056..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_f_dummy.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6de99b6af2361d2fdb751bcb78768e7565bc5b40fbdd6cda3e2c92f277135d33 -size 314484 diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_m_dummy.part b/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_m_dummy.part deleted file mode 100644 index c3f473599d4d0994ac8386e21336af3d76a7e60b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_m_dummy.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "M6qXbiravwBh/M2FZ", - "isStandardContent": false, - "name": "DC15_A01_CASE_M_DUMMY <1>", - "partId": "JFn", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_m_dummy.stl b/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_m_dummy.stl deleted file mode 100644 index 409e7a8400b24fa00e323e2c9f73c22d78129a95..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_case_m_dummy.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:716c7f05cb780b5eb1dc7e614b8376e587683f2922fcb386d0b8152a73b5af68 -size 162184 diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_horn_dummy.part b/remote_control_space/dist/assets/urdf/assets/dc15_a01_horn_dummy.part deleted file mode 100644 index 5e29396352f910c9971633c0a317ebdaa3c1b4f3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_horn_dummy.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "M/hbODfuW0gbGU1TK", - "isStandardContent": false, - "name": "DC15_A01_HORN_DUMMY <9>", - "partId": "JFX", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_horn_dummy.stl b/remote_control_space/dist/assets/urdf/assets/dc15_a01_horn_dummy.stl deleted file mode 100644 index bee160568e7c9b9c01f7632a6807a5fd8aee982d..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_horn_dummy.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f1fb77ee29fb48c09c125ae3a3cd4641673a08f513d3a5002f1453580a41c4cb -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_led_cap2_dummy.part b/remote_control_space/dist/assets/urdf/assets/dc15_a01_led_cap2_dummy.part deleted file mode 100644 index 76e2a26f2606b2474ade0b1c632c6fb11e02fd4f..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_led_cap2_dummy.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MFvbXu4svYiIz5iLO", - "isStandardContent": false, - "name": "DC15_A01_LED_CAP2_DUMMY <1>", - "partId": "JFv", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/dc15_a01_led_cap2_dummy.stl b/remote_control_space/dist/assets/urdf/assets/dc15_a01_led_cap2_dummy.stl deleted file mode 100644 index b8ff0e55b8b8160e539b5756e3f6bd82e62be0e9..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/dc15_a01_led_cap2_dummy.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c8ea014b723e253c28fa3bf5062c794b18470cd7b5d6b33e723a9638d974f25 -size 1684 diff --git a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_default.part b/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_default.part deleted file mode 100644 index c1c9d50416f6a11d24ed211237730d83d5bfb574..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_default.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Default", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "9cbc0f0673222989756dc3bd", - "documentVersion": "ab0d611cff58eb03c4b43922", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Default", - "id": "MQEuvqp2Q/VgvHc2b", - "isStandardContent": false, - "name": "drive_palonier <1>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_default.stl b/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_default.stl deleted file mode 100644 index 655a93f74785a9815052b77e84598c7c67e47965..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_default.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:161932a6a7d146aaa0e1c469154f8d9ee40bca2ba32356c1646f67a2ec47bcd7 -size 102584 diff --git a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_simple_axe.part b/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_simple_axe.part deleted file mode 100644 index fd4edf4fc3970c295370cdb595e0ba27176e6bff..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_simple_axe.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Simple_Axe", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "562fbad41f5c94b4e8929753", - "documentVersion": "b2b50e6fca74f541285598d2", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Simple_Axe", - "id": "MBlf2CAGFrM+vvrAc", - "isStandardContent": false, - "name": "drive_palonier <1>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_simple_axe.stl b/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_simple_axe.stl deleted file mode 100644 index 655a93f74785a9815052b77e84598c7c67e47965..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/drive_palonier__configuration_simple_axe.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:161932a6a7d146aaa0e1c469154f8d9ee40bca2ba32356c1646f67a2ec47bcd7 -size 102584 diff --git a/remote_control_space/dist/assets/urdf/assets/eye_support.part b/remote_control_space/dist/assets/urdf/assets/eye_support.part deleted file mode 100644 index 12d313dd432d12d02611c71afb432833cc8292b8..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/eye_support.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "MiwRHVEzZiAIrPHOH", - "isStandardContent": false, - "name": "eye_support <1>", - "partId": "JXD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/eye_support.stl b/remote_control_space/dist/assets/urdf/assets/eye_support.stl deleted file mode 100644 index 2e3afdd84ad308bfa756e466dfd04145b0fbb220..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/eye_support.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:532e98b07d4b276853ce92806e65f9c4a3fbe2d792e962316f2ed60f687417f0 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/foot.part b/remote_control_space/dist/assets/urdf/assets/foot.part deleted file mode 100644 index 79308404fa471c38713cbb0c878c2665d1069fa6..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/foot.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MtAQxXNWlY7iX7UeA", - "isStandardContent": false, - "name": "Foot <1>", - "partId": "RICD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/foot.stl b/remote_control_space/dist/assets/urdf/assets/foot.stl deleted file mode 100644 index cec7d18f440553e24839cb52eeff292455594487..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/foot.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:764a08b710160df9e80eb56cde1a68d93627e776a504e8089b8bbc4e46834c9d -size 104784 diff --git a/remote_control_space/dist/assets/urdf/assets/glasses_dolder_3dprint.part b/remote_control_space/dist/assets/urdf/assets/glasses_dolder_3dprint.part deleted file mode 100644 index a5ca077d93b7b4394c1571a63d602b3cc8fdbb53..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/glasses_dolder_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MsCmmfoZrFsTVz4Vs", - "isStandardContent": false, - "name": "GLASSES-DOLDER_3DPrint <1>", - "partId": "JFf", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/glasses_dolder_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/glasses_dolder_3dprint.stl deleted file mode 100644 index 66835911c2bc4fb5718399ca3faca5965ac7c845..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/glasses_dolder_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:77786d52ead05d3f8c181d0b1bfbe3eaa8f42e0ae81e31847129bb031cbfe6c5 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/head_back_3dprint.part b/remote_control_space/dist/assets/urdf/assets/head_back_3dprint.part deleted file mode 100644 index d48bd915e6455adc54a9530abcc8c82c94fcd90f..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_back_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MDdoiC6yCX9ILARl+", - "isStandardContent": false, - "name": "HEAD-BACK_3DPrint <1>", - "partId": "JFr", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/head_back_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/head_back_3dprint.stl deleted file mode 100644 index fac35aaa3fa9f4797eee7212959b4a4443ad9897..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_back_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e6e60fd980a2a48209471a0ddaac905b5d95c7081646e29c5af15cf3f1a681f -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/head_front_3dprint.part b/remote_control_space/dist/assets/urdf/assets/head_front_3dprint.part deleted file mode 100644 index e23c54fe13c525a19ddd0f292445b8d6912babf4..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_front_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MsTE6+BbSl0w4pt9R", - "isStandardContent": false, - "name": "HEAD-FRONT_3DPrint <1>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/head_front_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/head_front_3dprint.stl deleted file mode 100644 index 2189569d0796578b42bab48195aa246933950ee6..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_front_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3474bd1025c6b037e42d6d51428a1370ef88674b9a3988cd6b34e0be0d0049c2 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/head_head_back.part b/remote_control_space/dist/assets/urdf/assets/head_head_back.part deleted file mode 100644 index aed7780b5abda9ed7923ab691da9a6036f6c88e2..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_head_back.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "M9OOCqJWvxnZHaK2L", - "isStandardContent": false, - "name": "head_head_back <1>", - "partId": "JsH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/head_head_back.stl b/remote_control_space/dist/assets/urdf/assets/head_head_back.stl deleted file mode 100644 index 7acf9ec2f4fc6695531c8ce3020ea7e1a95a89b6..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_head_back.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:106ab6a5983028815da362f680c050606277704e167c1840939ba69af2817fa7 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/head_interface.part b/remote_control_space/dist/assets/urdf/assets/head_interface.part deleted file mode 100644 index 77a97bea047d5c778a67fb2d3f26d05a0ad83e8e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_interface.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "Men72YbmKf99vvpY3", - "isStandardContent": false, - "name": "head_interface <1>", - "partId": "R/ED", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/head_interface.stl b/remote_control_space/dist/assets/urdf/assets/head_interface.stl deleted file mode 100644 index c7afd7b911673120cd44c9ee77c6ad7ffd592286..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_interface.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:463bfc9c01aa004dd4519919c315d06bb2eff75e54fe47ba93d30cc61637a548 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/head_mic_3dprint.part b/remote_control_space/dist/assets/urdf/assets/head_mic_3dprint.part deleted file mode 100644 index 29d998933e499638ac6e39bd0ecfb84dd411ee45..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_mic_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MuZC9z8GQmMdOw95U", - "isStandardContent": false, - "name": "HEAD-MIC_3DPrint <1>", - "partId": "JFj", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/head_mic_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/head_mic_3dprint.stl deleted file mode 100644 index 1c74e83391471f48e040a9b54a115aaced5b3f6b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_mic_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ea18530c4b9305199577d5301583e73f8c8f42694c6e8c50c8103f147da1be8 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/head_shell_front.part b/remote_control_space/dist/assets/urdf/assets/head_shell_front.part deleted file mode 100644 index fbf68c3c2fddb5fd97aaaa16de52890fc18967ab..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_shell_front.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "M326QNbEXm/j3BFCs", - "isStandardContent": false, - "name": "head_shell_front <1>", - "partId": "JsD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/head_shell_front.stl b/remote_control_space/dist/assets/urdf/assets/head_shell_front.stl deleted file mode 100644 index 765e9cb34ee98f6cd600fbc13e2fff11505f4ecc..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/head_shell_front.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d99b397fea112fc6893f5ae4b49fa886595c692e61d533b80eddf40de7bfc477 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/lens_cap_d30_3dprint.part b/remote_control_space/dist/assets/urdf/assets/lens_cap_d30_3dprint.part deleted file mode 100644 index 0c203f785318385d2e482018b335c2cf12c8aa1e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/lens_cap_d30_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MJpFg+P4UMBokBVex", - "isStandardContent": false, - "name": "LENS-CAP-D30_3DPrint <1>", - "partId": "JFn", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/lens_cap_d30_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/lens_cap_d30_3dprint.stl deleted file mode 100644 index bc190353185d9502e6f671a5cda9e0c58032d572..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/lens_cap_d30_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:564787bc9073bc68c1598b4674ce751e7a7ed883d305a5cb947d3398360d3737 -size 94284 diff --git a/remote_control_space/dist/assets/urdf/assets/lens_cap_d40_3dprint.part b/remote_control_space/dist/assets/urdf/assets/lens_cap_d40_3dprint.part deleted file mode 100644 index 072d2e7861c20c77d66616b95c2be13376a18b41..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/lens_cap_d40_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "MVC/sOmzNQLy4mD6b", - "isStandardContent": false, - "name": "LENS-CAP-D40_3DPrint <1>", - "partId": "JF3", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/lens_cap_d40_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/lens_cap_d40_3dprint.stl deleted file mode 100644 index d7cb1d4d52fb366632e58609b8b97eca254c81cb..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/lens_cap_d40_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5a6364fba94a5a82d8a6512a7e042ccc78a0766756b190af055b0f08ef56471 -size 93684 diff --git a/remote_control_space/dist/assets/urdf/assets/m12_fisheye_lens_1_8mm.part b/remote_control_space/dist/assets/urdf/assets/m12_fisheye_lens_1_8mm.part deleted file mode 100644 index 0b8ca9e141c664383be1c7b4e5738027600456a5..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/m12_fisheye_lens_1_8mm.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "05dc7ef344fe4c18be495b6e", - "fullConfiguration": "default", - "id": "MvKFrBJz+CmxF4Ta4", - "isStandardContent": false, - "name": "M12 fisheye lens 1.8mm <2>", - "partId": "JGD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/m12_fisheye_lens_1_8mm.stl b/remote_control_space/dist/assets/urdf/assets/m12_fisheye_lens_1_8mm.stl deleted file mode 100644 index 4ee95bc2115804d7426f64d015b8ab1eeb86858a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/m12_fisheye_lens_1_8mm.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf2e973bd164cd66b747f16e0ad6c4aafc9492e0b053fd40c283f4beba1b6015 -size 259284 diff --git a/remote_control_space/dist/assets/urdf/assets/m12_lens.part b/remote_control_space/dist/assets/urdf/assets/m12_lens.part deleted file mode 100644 index eb39b918145dc9a79ff57c92655dbcf582e511a3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/m12_lens.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "M8ZONSAd4C6sMYKK/", - "isStandardContent": false, - "name": "M12_lens <1>", - "partId": "RZBD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/m12_lens.stl b/remote_control_space/dist/assets/urdf/assets/m12_lens.stl deleted file mode 100644 index dd67d13ea74c44329f3c19fb277741bd9df709f8..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/m12_lens.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0225297313cb77de3d8d0efc2b83499fdab9448e479174a5ca83bef24479b85 -size 93684 diff --git a/remote_control_space/dist/assets/urdf/assets/main_plate.part b/remote_control_space/dist/assets/urdf/assets/main_plate.part deleted file mode 100644 index 37ecea4cb6d1ce978b06ac40a6b22c4d9267f05b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/main_plate.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "M0rtL1h+tUfVmZG6t", - "isStandardContent": false, - "name": "Main Plate <1>", - "partId": "RjBD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/main_plate.stl b/remote_control_space/dist/assets/urdf/assets/main_plate.stl deleted file mode 100644 index 648c6df7f68bcdc1bf0910ad51097a899575d9b2..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/main_plate.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a900cdb05046319e1d6821350c785e2bc5a35f83a5392a01876b4cc90a9279eb -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/mid_plate.part b/remote_control_space/dist/assets/urdf/assets/mid_plate.part deleted file mode 100644 index 77cba6ea341cf82f6c09a7b04cdaf81e9eca5c10..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/mid_plate.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "Mxq3x/8HYdblICsdh", - "isStandardContent": false, - "name": "Mid Plate <1>", - "partId": "R9BD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/mid_plate.stl b/remote_control_space/dist/assets/urdf/assets/mid_plate.stl deleted file mode 100644 index 17bcdb034acff48e5028b069e83e0f36a4dd4134..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/mid_plate.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf5afed640fabcd2093f495a1a5d2c71c421b253fb1d22a282d38b866ed3d0c6 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/mp01062_stewart_arm_3.part b/remote_control_space/dist/assets/urdf/assets/mp01062_stewart_arm_3.part deleted file mode 100644 index ac721a20bbe4d363d9a76aaf7fa61f135a0cc482..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/mp01062_stewart_arm_3.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "Mw5N9cfkbCC/CpCKR", - "isStandardContent": false, - "name": "MP01062_STEWART_ARM_3 <1>", - "partId": "KFHB", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/mp01062_stewart_arm_3.stl b/remote_control_space/dist/assets/urdf/assets/mp01062_stewart_arm_3.stl deleted file mode 100644 index 4fd08b227327003a45bf104d95377eb3c24602ac..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/mp01062_stewart_arm_3.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b64f2de2a35b6feb9ed8ef728219f1a9600dfe6fcb70256a2e555cd6c49401e -size 155584 diff --git a/remote_control_space/dist/assets/urdf/assets/neck_reference_3dprint.part b/remote_control_space/dist/assets/urdf/assets/neck_reference_3dprint.part deleted file mode 100644 index 16ce78dc2c61e1f70c7edeeb2a85841d152b7f98..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/neck_reference_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "M7r6qwCMs4B7OGi6t", - "isStandardContent": false, - "name": "NECK_REFERENCE_3DPrint <1>", - "partId": "JFz", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/neck_reference_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/neck_reference_3dprint.stl deleted file mode 100644 index fb2153b59a4f2e6b86642618500f39632333e233..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/neck_reference_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8de811dedf772b757b9b414f3af15154c97267050a84c21cd6be3e355fc23eb8 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10.part b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10.part deleted file mode 100644 index 4034f3f6cad83d93c618705bbe191216bfd55432..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MydIXO1yH59xsOSOQ", - "isStandardContent": false, - "name": "PHS_1_7X20_5_DC10 <1>", - "partId": "JFP", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10.stl b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10.stl deleted file mode 100644 index a0f51417e2d4e782a557a9d604bb4698a14e129b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3e9d4bddfe4a99c206feba0fe648c1e5caf0aefca6347c7a91ff8f425b58d35 -size 253184 diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_1.part b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_1.part deleted file mode 100644 index 04f5f1900e08385acbda7b363535343d9c0fb927..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_1.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MyXqeYka8V5tcbv+v", - "isStandardContent": false, - "name": "PHS_1_7X20_5_DC10_1 <1>", - "partId": "JFb", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_1.stl b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_1.stl deleted file mode 100644 index f58ca0991a755c8e6960a392c0c5dcf151207344..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_1.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9cd84a44f18b39aae56220bfcdfdbf8e39a809c57e4d07c3d7a718c7ab5669e -size 253184 diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_2.part b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_2.part deleted file mode 100644 index c4fbc1e88f68eab945d05ad4fc6334cdb996ab6a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_2.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "M0HCg1i79OnE6gOgz", - "isStandardContent": false, - "name": "PHS_1_7X20_5_DC10_2 <1>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_2.stl b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_2.stl deleted file mode 100644 index 9a284934b4a1faf77ea41e7d4581f7776624a515..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_2.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ceba1b5c64923e7b29c5a686d753748b8a99496890ebe850694cba50d306d690 -size 253184 diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_3.part b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_3.part deleted file mode 100644 index 8c06bdd03deaf955f57e8922c85cfe325257d0ed..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_3.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "2cfe27202252cfce42ed7ee4", - "fullConfiguration": "default", - "id": "MwHtRhbbnn9zJhJOY", - "isStandardContent": false, - "name": "PHS_1_7X20_5_DC10_3 <1>", - "partId": "JFH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_3.stl b/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_3.stl deleted file mode 100644 index e6535203c2c91a6b4920769a140c428760629940..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/phs_1_7x20_5_dc10_3.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b446022c08e14a7d7e18ddfc5a5e979347abe1f3165d7d161b630f107964b26 -size 253184 diff --git a/remote_control_space/dist/assets/urdf/assets/plateform.part b/remote_control_space/dist/assets/urdf/assets/plateform.part deleted file mode 100644 index f85a0306ce25ade315501a3aecbf79f892f197f4..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/plateform.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MwlYHRbOjWaQ7Zawb", - "isStandardContent": false, - "name": "Plateform <1>", - "partId": "J4D", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/plateform.stl b/remote_control_space/dist/assets/urdf/assets/plateform.stl deleted file mode 100644 index 939d8dc9d7b223eed0817fbd6be09d81b140ac71..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/plateform.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:470e7d22f7218cd5e71866947887e2793d52b6301276e005e313e30a875637f7 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/pp00xxx_stewart_rod.part b/remote_control_space/dist/assets/urdf/assets/pp00xxx_stewart_rod.part deleted file mode 100644 index f882825b8a1628740ffc7aa73466318ab9ba6353..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp00xxx_stewart_rod.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MO1xdetqkz/QRPtZr", - "isStandardContent": false, - "name": "PP00XXX_Stewart Rod <6>", - "partId": "RcCD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp00xxx_stewart_rod.stl b/remote_control_space/dist/assets/urdf/assets/pp00xxx_stewart_rod.stl deleted file mode 100644 index 06bde5f4a1879cd3f19dd06b0adafec970f25a7e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp00xxx_stewart_rod.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:411e6736ad0961062f5bea0283762f654bb728fef310d0993f9f7634c8b5449f -size 28884 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01062_stewart_arm.part b/remote_control_space/dist/assets/urdf/assets/pp01062_stewart_arm.part deleted file mode 100644 index c469af37e2d0078acf71e9716f6ed8bed4947419..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01062_stewart_arm.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "M9NEGUdCOXFxFyRZI", - "isStandardContent": false, - "name": "PP01062_Stewart Arm <5>", - "partId": "JpD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01062_stewart_arm.stl b/remote_control_space/dist/assets/urdf/assets/pp01062_stewart_arm.stl deleted file mode 100644 index 3afe074da185977ec1f12a7e98e36d7674b458c8..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01062_stewart_arm.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1ca4060f4c178a84d4ef862270aa95c40646f2fc77913ac38e1bed40fc1d883c -size 125184 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01063_stewart_plateform.part b/remote_control_space/dist/assets/urdf/assets/pp01063_stewart_plateform.part deleted file mode 100644 index 7e0cd0650bca5e81cee765cdfd78aad42d3620bc..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01063_stewart_plateform.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MdkzMSXOA7GnM40pG", - "isStandardContent": false, - "name": "PP01063_Stewart Plateform <1>", - "partId": "J2D", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01063_stewart_plateform.stl b/remote_control_space/dist/assets/urdf/assets/pp01063_stewart_plateform.stl deleted file mode 100644 index e27cf3db9d3bb0fe6b49bb668462f79f18822eb3..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01063_stewart_plateform.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0de1f6657863b4f31f0f2492efc158fddc720272f4a4e38af17f2c10642ffbca -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01064_stewart_main_plate.part b/remote_control_space/dist/assets/urdf/assets/pp01064_stewart_main_plate.part deleted file mode 100644 index 4d7a2a307c71a17ea6ada95bd2bde3a79222ea36..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01064_stewart_main_plate.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MwQmuwlK0NX0T4TgA", - "isStandardContent": false, - "name": "PP01064_Stewart Main Plate <1>", - "partId": "RBCD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01064_stewart_main_plate.stl b/remote_control_space/dist/assets/urdf/assets/pp01064_stewart_main_plate.stl deleted file mode 100644 index 328e8ca592e84394d2921b60a29b34c6546cee41..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01064_stewart_main_plate.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63b53dfef166197bc6c1f4b9d797b9009672fb963b9a5b6e65acc9f16e1b6219 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01065_stewart_side_plate.part b/remote_control_space/dist/assets/urdf/assets/pp01065_stewart_side_plate.part deleted file mode 100644 index 270b9c1937a7e503ad992715b06511ee1a53f9ed..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01065_stewart_side_plate.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MzgaD5MojzhSvLjc9", - "isStandardContent": false, - "name": "PP01065_Stewart Side Plate <2>", - "partId": "RgBD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01065_stewart_side_plate.stl b/remote_control_space/dist/assets/urdf/assets/pp01065_stewart_side_plate.stl deleted file mode 100644 index bee55789e54cda969a531ae7db6a0340163e4e7a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01065_stewart_side_plate.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:999d01af4da296fa318009982fb2354c5d51eb7810737aef5affca8f3d83daca -size 293584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01066_stewart_mid_plate.part b/remote_control_space/dist/assets/urdf/assets/pp01066_stewart_mid_plate.part deleted file mode 100644 index dae987e01bf508c8410b443d2ff654b71b0e1566..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01066_stewart_mid_plate.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "Mj2rCiqdYnLvw/uK1", - "isStandardContent": false, - "name": "PP01066_Stewart Mid Plate <1>", - "partId": "RgCD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01066_stewart_mid_plate.stl b/remote_control_space/dist/assets/urdf/assets/pp01066_stewart_mid_plate.stl deleted file mode 100644 index 4a18b059711e1c5fc3196c6addabf201a669d65a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01066_stewart_mid_plate.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:486214efae3c0d3b72460ba09f0088d33a7ad841c10180b54108427278780789 -size 176784 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01067_bottom_body.part b/remote_control_space/dist/assets/urdf/assets/pp01067_bottom_body.part deleted file mode 100644 index 15c8dbc294b98be512d0c8fcb9b4cb9ba8e8894a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01067_bottom_body.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "M1iw9QOQmsFr6efSd", - "isStandardContent": false, - "name": "PP01067_bottom_body <1>", - "partId": "RjDD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01067_bottom_body.stl b/remote_control_space/dist/assets/urdf/assets/pp01067_bottom_body.stl deleted file mode 100644 index 8ba8324b88df98dcdd465e3652dc1831af745adb..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01067_bottom_body.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca83667a9ff45433ca41b5e20edaabd38cb99f97d19a99576dfece8edf92d78c -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01068_top_body.part b/remote_control_space/dist/assets/urdf/assets/pp01068_top_body.part deleted file mode 100644 index 93b4d715885817b5503d7a6123e2d621d46d758a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01068_top_body.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MLhpIAfnvnDl50gJ1", - "isStandardContent": false, - "name": "PP01068_top_body <1>", - "partId": "RjDH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01068_top_body.stl b/remote_control_space/dist/assets/urdf/assets/pp01068_top_body.stl deleted file mode 100644 index 9e230bdd3aeb428a2897edcf7ab94dd8d066344b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01068_top_body.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:701c4ee80d16aa5257e706fa9cc0b8bbae2dd26138a6fd7860b99c7455ae3af7 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01069_head_shell_front.part b/remote_control_space/dist/assets/urdf/assets/pp01069_head_shell_front.part deleted file mode 100644 index eb09cbb58b7728ff272868beba06450637f77362..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01069_head_shell_front.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MbnmqHXEBd3bXe5NJ", - "isStandardContent": false, - "name": "PP01069_head_shell_front <1>", - "partId": "JsD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01069_head_shell_front.stl b/remote_control_space/dist/assets/urdf/assets/pp01069_head_shell_front.stl deleted file mode 100644 index 70ee36704a2e9869c5410d3120fbdffd2bab3aa6..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01069_head_shell_front.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19ceb0df3c6655315ea012d4cb2622245d28eb302cbb690c859170ebd4b07425 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01070_head_head_back.part b/remote_control_space/dist/assets/urdf/assets/pp01070_head_head_back.part deleted file mode 100644 index 7a9bfa9fea6b2a888bf4e8f16cb5335eb85a034c..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01070_head_head_back.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MJZxED2VVtdkQeJoM", - "isStandardContent": false, - "name": "PP01070_head_head_back <1>", - "partId": "JsH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01070_head_head_back.stl b/remote_control_space/dist/assets/urdf/assets/pp01070_head_head_back.stl deleted file mode 100644 index 21b85657fc86cd8d0aed9dfb4bc363735c19ff3b..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01070_head_head_back.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:27a4689edc4380df51b18ec336a80755b66a9b2cb7b4653f205d96d026a5a612 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01071_turning_bowl.part b/remote_control_space/dist/assets/urdf/assets/pp01071_turning_bowl.part deleted file mode 100644 index 4969c1b39a66743411e6c2d1d0a167d7c2d2e120..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01071_turning_bowl.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MK6xlP0iZUknxGJ1B", - "isStandardContent": false, - "name": "PP01071_Turning bowl <1>", - "partId": "R1DD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01071_turning_bowl.stl b/remote_control_space/dist/assets/urdf/assets/pp01071_turning_bowl.stl deleted file mode 100644 index 864d7f877f3234fac9056ce915d64dd899bb0bee..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01071_turning_bowl.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b146eebeeaac1be6fe652808db20f524e729011d3b8f82dc1a8cdc34922a2deb -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01072_turning_end.part b/remote_control_space/dist/assets/urdf/assets/pp01072_turning_end.part deleted file mode 100644 index 4c48ab98e7540deb8a41bf445b7a80b5e27f4082..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01072_turning_end.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MmSemALQTmY3L94+u", - "isStandardContent": false, - "name": "PP01072_Turning End <1>", - "partId": "RlFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01072_turning_end.stl b/remote_control_space/dist/assets/urdf/assets/pp01072_turning_end.stl deleted file mode 100644 index 0e13f4bc5d3382938df9d2396f404e9032e189f5..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01072_turning_end.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c5a7353f73938b1023ca3dbbb4ad8a01faf5e144405ed342f535df16b004b418 -size 314484 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01078_glasses.part b/remote_control_space/dist/assets/urdf/assets/pp01078_glasses.part deleted file mode 100644 index 247efb33851e5e31ef47b1bee7bd0b0f804ac041..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01078_glasses.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "Mc2vPy/hERQOFTVCl", - "isStandardContent": false, - "name": "PP01078_glasses <1>", - "partId": "JXD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01078_glasses.stl b/remote_control_space/dist/assets/urdf/assets/pp01078_glasses.stl deleted file mode 100644 index 1408f21c089be3d0264c476e257b79ca1541e5f4..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01078_glasses.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a4b8b4ac202d582be3b2c3f4f9728ba582514625c3e27572262bbd7a2704b40 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01079_back_big_eye.part b/remote_control_space/dist/assets/urdf/assets/pp01079_back_big_eye.part deleted file mode 100644 index b66e78d8b3f5e72e5e129f6ee322b9e02f3f4302..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01079_back_big_eye.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "MZ30fBArLgpdr3sZr", - "isStandardContent": false, - "name": "PP01079_back_big_eye <1>", - "partId": "RJBD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01079_back_big_eye.stl b/remote_control_space/dist/assets/urdf/assets/pp01079_back_big_eye.stl deleted file mode 100644 index 7343b044e7938d61761001e9b41866f949d67343..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01079_back_big_eye.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4081dc49bd47072d7cb11d725cb26a72d49af70a3fc0fc09d8b711bdbb1c98d1 -size 93684 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01080_back_small_eye.part b/remote_control_space/dist/assets/urdf/assets/pp01080_back_small_eye.part deleted file mode 100644 index d2386d8e648cf63b3fae83a2755b7a7ba8e8c4c0..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01080_back_small_eye.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "M5wrNragj9mzp/cuf", - "isStandardContent": false, - "name": "PP01080_back_small_eye <1>", - "partId": "RNBD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01080_back_small_eye.stl b/remote_control_space/dist/assets/urdf/assets/pp01080_back_small_eye.stl deleted file mode 100644 index 7ce1913c31c92e6fa3fb95dce3978143030f0c71..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01080_back_small_eye.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:734c337c5da05b7b1966fbc5b1a2daa64f5e8ddb885ecfae94dd0cf041ca2925 -size 50484 diff --git a/remote_control_space/dist/assets/urdf/assets/pp01102_arducam_carter.part b/remote_control_space/dist/assets/urdf/assets/pp01102_arducam_carter.part deleted file mode 100644 index 0e49bdf2be8c70676127fbf5389c5dda42753860..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01102_arducam_carter.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "ME3Sp1txkoCjeAr4W", - "isStandardContent": false, - "name": "PP01102_ArduCam_Carter <1>", - "partId": "KFLB", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/pp01102_arducam_carter.stl b/remote_control_space/dist/assets/urdf/assets/pp01102_arducam_carter.stl deleted file mode 100644 index 866f890e8e519bdc0f08e10fe5d9f1a76e580522..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/pp01102_arducam_carter.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:edc115b09647cafaf2fd023cd940817b54c33ce04496e586fe9031bd7582c5c6 -size 109484 diff --git a/remote_control_space/dist/assets/urdf/assets/rod.part b/remote_control_space/dist/assets/urdf/assets/rod.part deleted file mode 100644 index 03ff71e00212296f511feda97e8cca73babaa5b0..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/rod.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MdJ+UkyUvvt4o0cNw", - "isStandardContent": false, - "name": "Rod <6>", - "partId": "R5BD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/rod.stl b/remote_control_space/dist/assets/urdf/assets/rod.stl deleted file mode 100644 index 77d6b21aab89df33bd2a5eb442f1d9d7f3e77de0..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/rod.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b1d0060be86f76bb7481fe3f9d6a02bf61386617ade8fb56cd8b5c449708be7 -size 28884 diff --git a/remote_control_space/dist/assets/urdf/assets/shape.part b/remote_control_space/dist/assets/urdf/assets/shape.part deleted file mode 100644 index 81f2babe27f3286bf15f9b717d7b6e539fe75725..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/shape.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "0aa833fd983f27ea7fb43256", - "fullConfiguration": "default", - "id": "M53IEP0FWpyN7VrPP", - "isStandardContent": false, - "name": "Shape <12>", - "partId": "JHD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/shape.stl b/remote_control_space/dist/assets/urdf/assets/shape.stl deleted file mode 100644 index 104739a309cb7e9da3f3022fff94584ef4893cf5..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/shape.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d24f09564c2713b74b392536023b4e055c013af91ee21252a8109ccd1327f8a -size 286284 diff --git a/remote_control_space/dist/assets/urdf/assets/side_plate.part b/remote_control_space/dist/assets/urdf/assets/side_plate.part deleted file mode 100644 index 11b71e68f3f345aa54435765fca4b18117149b75..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/side_plate.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "f05b326e391ef37011cd1007", - "fullConfiguration": "default", - "id": "MZ6XefFx77VRcACDn", - "isStandardContent": false, - "name": "Side Plate <1>", - "partId": "RUBD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/side_plate.stl b/remote_control_space/dist/assets/urdf/assets/side_plate.stl deleted file mode 100644 index 09b2c1b45ddf2c451b1e95e7bdd4f588139a7faa..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/side_plate.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:52878966da6e718df392da535a8d0b5a03b99b242e4e44d9b2303ddce969f7c9 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/small_lens.part b/remote_control_space/dist/assets/urdf/assets/small_lens.part deleted file mode 100644 index 6d8029c1ac9decf8459f1016f4daa8fbbded13cc..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/small_lens.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "1aa49f5cc5d823754d8b1fec", - "fullConfiguration": "default", - "id": "M+k761oFhfeIyvr/G", - "isStandardContent": false, - "name": "small_lens <1>", - "partId": "J1D", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/small_lens.stl b/remote_control_space/dist/assets/urdf/assets/small_lens.stl deleted file mode 100644 index 02df87e15a2ccfbbbb25da45eac50df2e7e8c0eb..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/small_lens.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d284a1f2f79d7df815bcac24427b7167d0fba81bb125c00c7e451215047f71e -size 158484 diff --git a/remote_control_space/dist/assets/urdf/assets/small_lens_d30.part b/remote_control_space/dist/assets/urdf/assets/small_lens_d30.part deleted file mode 100644 index 3d88ba9f73298b3d974f455671f78b836df1be85..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/small_lens_d30.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "f67f6ec9755019fa8d4cde38", - "fullConfiguration": "default", - "id": "MeOBTO0SVYe+Ls79P", - "isStandardContent": false, - "name": "Small Lens D30 <1>", - "partId": "JFH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/small_lens_d30.stl b/remote_control_space/dist/assets/urdf/assets/small_lens_d30.stl deleted file mode 100644 index 8094f7e32450ded9ed331ccd7bbb17c5e4a806b0..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/small_lens_d30.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3f62174bc76b85b39e7835fc9e005fabde685677576c6c1e40753417fa922ec -size 158484 diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball.part b/remote_control_space/dist/assets/urdf/assets/stewart_link_ball.part deleted file mode 100644 index d08be9b47acf91ee5d22bccd38e8c1fe8284a087..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "0c90fa98e702b6ba866efe06", - "fullConfiguration": "default", - "id": "MLAaNJd+l2AB7zwWF", - "isStandardContent": false, - "name": "stewart_link_ball <7>", - "partId": "JFD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball.stl b/remote_control_space/dist/assets/urdf/assets/stewart_link_ball.stl deleted file mode 100644 index 1a9a1ea300afff8876d32f887b84d0d6784c54b6..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d24b6357fe780b9f54a550278fded8886524b732e2ec7765eeed1a8eee0e94bd -size 194484 diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball__2.part b/remote_control_space/dist/assets/urdf/assets/stewart_link_ball__2.part deleted file mode 100644 index f6c45dff65f1e1ee06039c76d2a3bb0b6bf897b7..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball__2.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "0c90fa98e702b6ba866efe06", - "fullConfiguration": "default", - "id": "Mzs67Fs/V5a1ifM8W", - "isStandardContent": false, - "name": "stewart_link_ball <10>", - "partId": "JGD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball__2.stl b/remote_control_space/dist/assets/urdf/assets/stewart_link_ball__2.stl deleted file mode 100644 index 24023fd4e3c3ca9000ffbb92ce8b56021836b330..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_link_ball__2.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25041196fb7b87a0118d1b283e97bcd56a961aafd08527f1408cc23077e77285 -size 194484 diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_link_rod.part b/remote_control_space/dist/assets/urdf/assets/stewart_link_rod.part deleted file mode 100644 index e64de22e38d2d2ce466a6de4370365f6e33808d8..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_link_rod.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "0c90fa98e702b6ba866efe06", - "fullConfiguration": "default", - "id": "MHKZQKk3gjSPuG0gI", - "isStandardContent": false, - "name": "stewart_link_rod <6>", - "partId": "JFH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_link_rod.stl b/remote_control_space/dist/assets/urdf/assets/stewart_link_rod.stl deleted file mode 100644 index cea3397c14840081030e71bdd1935572930344fe..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_link_rod.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ecacaefa0d9407ee902fcddac86927a27b09a352c4539347dbe8dfcd827af986 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_main_plate_3dprint.part b/remote_control_space/dist/assets/urdf/assets/stewart_main_plate_3dprint.part deleted file mode 100644 index 08c274a4c5cd80ec13af03f40db911086b0db3bf..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_main_plate_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "Mi3j82DWKTUoiYXon", - "isStandardContent": false, - "name": "STEWART_MAIN_PLATE_3DPrint <1>", - "partId": "JFT", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_main_plate_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/stewart_main_plate_3dprint.stl deleted file mode 100644 index f90d29504f1883cdb6bc5b71366e1d0068638c87..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_main_plate_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9577be3c17eeb3447e5bb7e3a2ffab3f40d951b2b341ca25e06e74c35997780d -size 314484 diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_tricap_3dprint.part b/remote_control_space/dist/assets/urdf/assets/stewart_tricap_3dprint.part deleted file mode 100644 index b5c08005958d4e04162360d109fa55660e0fa8d8..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_tricap_3dprint.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "7836ed39be931c6ece17e007", - "documentMicroversion": "22df16c0b36fccefd62a3ccb", - "elementId": "41e19b342cf83e0d866fde9b", - "fullConfiguration": "default", - "id": "M8OX4JdBklJa3ZAV2", - "isStandardContent": false, - "name": "STEWART_TRICAP_3DPrint <1>", - "partId": "JFX", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/stewart_tricap_3dprint.stl b/remote_control_space/dist/assets/urdf/assets/stewart_tricap_3dprint.stl deleted file mode 100644 index 73766e4d18e34c5ccc941c369f9ba1a3949c3dce..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/stewart_tricap_3dprint.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44c9acd2445753459253e6a1a8cd8b5036e8d9d98becde750cdeb950a01500d4 -size 314484 diff --git a/remote_control_space/dist/assets/urdf/assets/test_antenna.part b/remote_control_space/dist/assets/urdf/assets/test_antenna.part deleted file mode 100644 index 74857f2a9cc26c8648436c06107dd3b9198b06d1..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/test_antenna.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MoUkZchlIKO7O02cZ", - "isStandardContent": false, - "name": "test_antenna <1>", - "partId": "RMCD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/test_antenna.stl b/remote_control_space/dist/assets/urdf/assets/test_antenna.stl deleted file mode 100644 index a16be17aeed6b22f7554c2ccd95623f805fcfdc4..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/test_antenna.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2f1f31344e0b21ad6b433953b86713d3834e54c87e23e4f626e77e390bce6da -size 266484 diff --git a/remote_control_space/dist/assets/urdf/assets/test_antenna_body.part b/remote_control_space/dist/assets/urdf/assets/test_antenna_body.part deleted file mode 100644 index 1ae8057428dff553b6b01d44638629bb882a5eab..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/test_antenna_body.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "MrCYnP6eA71aF9l+x", - "isStandardContent": false, - "name": "test_antenna_body <1>", - "partId": "RFCD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/test_antenna_body.stl b/remote_control_space/dist/assets/urdf/assets/test_antenna_body.stl deleted file mode 100644 index 648959fd43206ee42bdc504730e2bbb6d3718c57..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/test_antenna_body.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f9dd0adbe7a9243b2a527d4c5cc0d960ae2e15148d3ab8882b8a2389864094d -size 314484 diff --git a/remote_control_space/dist/assets/urdf/assets/top_body.part b/remote_control_space/dist/assets/urdf/assets/top_body.part deleted file mode 100644 index 09d9a2c6d294b3ae46402001f84fab987429a9bd..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/top_body.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "Ma4FMD0Z/1T41GJcv", - "isStandardContent": false, - "name": "top_body <1>", - "partId": "RcDH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/top_body.stl b/remote_control_space/dist/assets/urdf/assets/top_body.stl deleted file mode 100644 index c8aeab9b0186ff0fec4b0fafea041297fc58b326..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/top_body.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5c560740256a73f6dd3adeae424380fbf75acfe7056fdc1858a100cb7806fb1 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/turning_bowl.part b/remote_control_space/dist/assets/urdf/assets/turning_bowl.part deleted file mode 100644 index a3e694b52b3a8e66e9404230e5cbd5ea4d2a8ac7..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/turning_bowl.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "7031fc46a026e2d553617dca", - "elementId": "63ac215c84389096e60ba3ce", - "fullConfiguration": "default", - "id": "M8Ekuan84MeJgvaNm", - "isStandardContent": false, - "name": "Turning bowl <1>", - "partId": "RuDD", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/turning_bowl.stl b/remote_control_space/dist/assets/urdf/assets/turning_bowl.stl deleted file mode 100644 index 9521ffb779dbc83c142c213851ba8e22bb5fadbd..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/turning_bowl.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8af1cf9e3fb58111f59b95404a4b6e9f5edcc4cd23d0e5a3e74ad82bcce574c8 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/uc_a37_rev_a_step.part b/remote_control_space/dist/assets/urdf/assets/uc_a37_rev_a_step.part deleted file mode 100644 index ecc0cc1664bd4dcda7fe4bc50f79285a03517c1e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/uc_a37_rev_a_step.part +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configuration": "default", - "documentId": "e305b26a84339af20c593973", - "documentMicroversion": "4913859d0d2ce0a13b3adb26", - "elementId": "022097d02976f241add4ce3a", - "fullConfiguration": "default", - "id": "MHLMmdBzC0KnRb5Hr", - "isStandardContent": false, - "name": "UC-A37_Rev.A.step <1>", - "partId": "KF7D", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/uc_a37_rev_a_step.stl b/remote_control_space/dist/assets/urdf/assets/uc_a37_rev_a_step.stl deleted file mode 100644 index 47120af1c31a770be1c070c44baeffcf9f66e749..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/uc_a37_rev_a_step.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f77f8ca32283c4d1953510273776dd7fdc2d3ae817be8f82750023e68a9cd3df -size 68784 diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_default.part b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_default.part deleted file mode 100644 index a27769e55e1a621c39401c9aa2189a2c94fcb542..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_default.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Default", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "9cbc0f0673222989756dc3bd", - "documentVersion": "ab0d611cff58eb03c4b43922", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Default", - "id": "MICc+zB1tkivCW+Y6", - "isStandardContent": false, - "name": "WJ-WK00-0122TOPCABINETCASE_95 <1>", - "partId": "JFT", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_default.stl b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_default.stl deleted file mode 100644 index f3c50e4212a61ab269622111df8fa7a69199cb81..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_default.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a28441cb86868c45f3910d7e88a583b9b561f7abd061e4c1064abe8b18523513 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_simple_axe.part b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_simple_axe.part deleted file mode 100644 index b0a107caf01cdca78e1e2f28beed5c28d088b0e4..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_simple_axe.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Simple_Axe", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "562fbad41f5c94b4e8929753", - "documentVersion": "b2b50e6fca74f541285598d2", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Simple_Axe", - "id": "McPFfHZbW2/EPDp0S", - "isStandardContent": false, - "name": "WJ-WK00-0122TOPCABINETCASE_95 <1>", - "partId": "JFT", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_simple_axe.stl b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_simple_axe.stl deleted file mode 100644 index 2ee91f3dc788cbe6172d83f5ade0539245d84eed..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0122topcabinetcase_95__configuration_simple_axe.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8eb77f6be288d16c44f0869824e53124b0fc05d70acf84f257ae0e91aa81bd04 -size 104884 diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_default.part b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_default.part deleted file mode 100644 index 3c02cc5621688412646c78aa68a0c8eb360b71f9..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_default.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Default", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "9cbc0f0673222989756dc3bd", - "documentVersion": "ab0d611cff58eb03c4b43922", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Default", - "id": "MX9cSWxeY0rpuKITc", - "isStandardContent": false, - "name": "WJ-WK00-0123MIDDLECASE_56 <1>", - "partId": "JFP", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_default.stl b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_default.stl deleted file mode 100644 index eaaf8c5b50f7d96251041f901745f6ef8b761058..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_default.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4d233ef0122e27951d21461d8c30e90285708ede5672962e0340fe0185fc0ac -size 49684 diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_simple_axe.part b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_simple_axe.part deleted file mode 100644 index bfdf0e9889107b6794bfaf91639ad28b772f3e21..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_simple_axe.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Simple_Axe", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "562fbad41f5c94b4e8929753", - "documentVersion": "b2b50e6fca74f541285598d2", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Simple_Axe", - "id": "MJpNLRylDLT4+V3p5", - "isStandardContent": false, - "name": "WJ-WK00-0123MIDDLECASE_56 <1>", - "partId": "JFP", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_simple_axe.stl b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_simple_axe.stl deleted file mode 100644 index 4dce18fb456b8b3be8907532c1ac0f8442447b5d..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0123middlecase_56__configuration_simple_axe.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c459b2adcabec2a270ceec40a983cb9c640f01a9736992f276f8487f0d4ffb8 -size 49684 diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_default.part b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_default.part deleted file mode 100644 index e03ef9ac01beddcec14720ed83198b121a23a7d0..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_default.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Default", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "9cbc0f0673222989756dc3bd", - "documentVersion": "ab0d611cff58eb03c4b43922", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Default", - "id": "Mp+b1niKgywMWznYQ", - "isStandardContent": false, - "name": "WJ-WK00-0124BOTTOMCASE_45 <1>", - "partId": "JFH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_default.stl b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_default.stl deleted file mode 100644 index 2d0274d116f81dd6b0ba2f764a2327e6e785ea6f..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_default.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:651f10e580d0390ab84c1fbd3de339eabad094d5da678d4d62465abce8431178 -size 314584 diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_simple_axe.part b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_simple_axe.part deleted file mode 100644 index dc46c65e95a8bd150c8ef6903a39c6a7be5da89a..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_simple_axe.part +++ /dev/null @@ -1,14 +0,0 @@ -{ - "configuration": "List_RLLNj5hPLm22K3=Simple_Axe", - "documentId": "4e2472e743f2deb9dbfd3f29", - "documentMicroversion": "562fbad41f5c94b4e8929753", - "documentVersion": "b2b50e6fca74f541285598d2", - "elementId": "cb09afde2287e85126e219d6", - "fullConfiguration": "List_RLLNj5hPLm22K3=Simple_Axe", - "id": "MGhQLzn6iUDbdNEjQ", - "isStandardContent": false, - "name": "WJ-WK00-0124BOTTOMCASE_45 <1>", - "partId": "JFH", - "suppressed": false, - "type": "Part" -} \ No newline at end of file diff --git a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_simple_axe.stl b/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_simple_axe.stl deleted file mode 100644 index 2709632d96b4eeab9d6192666be9a32e45f9e066..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/assets/wj_wk00_0124bottomcase_45__configuration_simple_axe.stl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f3b671571125f05c7069b1497e2c1b3f7db9ab579000e7c105b8f0a4b36808fe -size 104884 diff --git a/remote_control_space/dist/assets/urdf/config.json b/remote_control_space/dist/assets/urdf/config.json deleted file mode 100644 index 10016f3b942b411477a38c0b2e81c94015eff08e..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/config.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "url": "https://cad.onshape.com/documents/7836ed39be931c6ece17e007/w/39d557f31a0ba179c9e7bd5b/e/c82436d68c7d00e142abc581", - "outputFormat": "urdf", - "robot_name": "robot", - "output_filename": "robot", - "ball_to_euler": true, - "ball_to_euler_order": "xyz", - "simplify_stls": true, - "max_stl_size": 0.3, - "joint_properties": { - "*": { - "max_velocity": 8 - }, - "passive*": { - "max_velocity": 1e8 - } - } -} diff --git a/remote_control_space/dist/assets/urdf/robot.urdf b/remote_control_space/dist/assets/urdf/robot.urdf deleted file mode 100644 index f141d8a4cc88feabc83536567620235346edb0b1..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/assets/urdf/robot.urdf +++ /dev/null @@ -1,3281 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/remote_control_space/dist/index.html b/remote_control_space/dist/index.html deleted file mode 100644 index 8be82c776020f53851e5a133b67ad3159e0a4f80..0000000000000000000000000000000000000000 --- a/remote_control_space/dist/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Reachy Mini 3D Simulator - - - - - - - -