PageSourceSearch

https://balloon99-kj7qgchv.manus.space/assets/standardMaterial-C93UVSXE.js

js balloon99-kj7qgchv.manus.space collected 2026-10-03 05:00:39 UTC 83,591 bytes, 12 lines download raw bytes

vendor: 7,998 bytes, lines 1-4
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default.vertex-BURUCtXZ.js","assets/fileTools.pure-O3hflNMy.js","assets/logDepthDeclaration-NkckDCxs.js","assets/helperFunctions-B6Ks6Htg.js","assets/clipPlaneVertex-B5KC89fQ.js","assets/vertexColorMixing-7o77qkoJ.js","assets/morphTargetsVertex-VF2XVHUB.js","assets/default.fragment-DJ4bxHlx.js","assets/imageProcessingFunctions-D9sedsmd.js","assets/clipPlaneFragment-DpbE3SOa.js","assets/fogFragment-CnqgmQRM.js","assets/tier3-babylon-z6xMXPxH.js","assets/index-DY6XcbtQ.js","assets/index-DK3k_-YE.css","assets/smartArray-B7wVGkJ5.js","assets/tools.pure-PAKPbutq.js","assets/thinEngine-DI9LWTqR.js","assets/helperFunctions-D7-zXdUR.js"])))=>i.map(i=>d[i]);
2import{_ as ce}from"./index-DY6XcbtQ.js";import{p as ba,ab as Ua,_ as s,S as ae,j as o,k as A,l as T,m as x,w as H,o as E,M as Ma,ac as Ba,a as ee,d as za,i as wa,y as Va,n as de,ad as ie}from"./fileTools.pure-O3hflNMy.js";import{S as Ha,V as me}from"./smartArray-B7wVGkJ5.js";import{a as Ca,b as Ga,I as Te}from"./scene.pure--hyippSf.js";import{M as pe,G as I,H as Y,I as Z,J as Wa,K as Xa,O as ja,Q as Ya,R as Za,S as $a,T as qa,V as Ka,W as Qa,X as Ja,Y as er,Z as tr,_ as sr,$ as ir,a0 as ar,a1 as rr,A as lr,a2 as nr,c as or,a3 as ur,d as fr,a4 as hr,f as _r,g as cr,e as dr}from"./tier3-babylon-z6xMXPxH.js";import{a as mr,B as pr,P as gr}from"./vertexPullingHelper.functions-C384XxIb.js";import{E as Tr}from"./effectFallbacks-DqrlKF7n.js";import"./tools.pure-PAKPbutq.js";import"./deviceInputEvents-BYmA4r4v.js";import"./perfCounter-BXP6OJRQ.js";import"./thinEngine-DI9LWTqR.js";import"./helperFunctions-D7-zXdUR.js";class La{constructor(){this.previousWorldMatrices={},this.previousBones={}}static AddUniforms(a){a.push("previousWorld","previousViewProjection","mPreviousBones")}static AddSamplers(a){}bindForSubMesh(a,n,l,u,S){if(n.prePassRenderer&&n.prePassRenderer.enabled&&n.prePassRenderer.currentRTisSceneRT&&(n.prePassRenderer.getIndex(2)!==-1||n.prePassRenderer.getIndex(11)!==-1)){this.previousWorldMatrices[l.uniqueId]||(this.previousWorldMatrices[l.uniqueId]=u.clone()),this.previousViewProjection||(this.previousViewProjection=n.getTransformMatrix().clone(),this.currentViewProjection=n.getTransformMatrix().clone());const d=n.getEngine();this.currentViewProjection.updateFlag!==n.getTransformMatrix().updateFlag?(this._lastUpdateFrameId=d.frameId,this.previousViewProjection.copyFrom(this.currentViewProjection),this.currentViewProjection.copyFrom(n.getTransformMatrix())):this._lastUpdateFrameId!==d.frameId&&(this._lastUpdateFrameId=d.frameId,this.previousViewProjection.copyFrom(this.currentViewProjection)),a.setMatrix("previousWorld",this.previousWorldMatrices[l.uniqueId]),a.setMatrix("previousViewProjection",this.previousViewProjection),this.previousWorldMatrices[l.uniqueId]=u.clone()}}}class Oa{constructor(a){if(this.VERTEXOUTPUT_INVARIANT=!1,this._keys=[],this._isDirty=!0,this._areLightsDirty=!0,this._areLightsDisposed=!1,this._areAttributesDirty=!0,this._areTexturesDirty=!0,this._areFresnelDirty=!0,this._areMiscDirty=!0,this._arePrePassDirty=!0,this._areImageProcessingDirty=!0,this._normals=!1,this._uvs=!1,this._needNormals=!1,this._needUVs=!1,this._externalProperties=a,a)for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&this._setDefaultValue(n)}get isDirty(){return this._isDirty}markAsProcessed(){this._isDirty=!1,this._areAttributesDirty=!1,this._areTexturesDirty=!1,this._areFresnelDirty=!1,this._areLightsDirty=!1,this._areLightsDisposed=!1,this._areMiscDirty=!1,this._arePrePassDirty=!1,this._areImageProcessingDirty=!1}markAsUnprocessed(){this._isDirty=!0}markAllAsDirty(){this._areTexturesDirty=!0,this._areAttributesDirty=!0,this._areLightsDirty=!0,this._areFresnelDirty=!0,this._areMiscDirty=!0,this._arePrePassDirty=!0,this._areImageProcessingDirty=!0,this._isDirty=!0}markAsImageProcessingDirty(){this._areImageProcessingDirty=!0,this._isDirty=!0}markAsLightDirty(a=!1){this._areLightsDirty=!0,this._areLightsDisposed=this._areLightsDisposed||a,this._isDirty=!0}markAsAttributesDirty(){this._areAttributesDirty=!0,this._isDirty=!0}markAsTexturesDirty(){this._areTexturesDirty=!0,this._isDirty=!0}markAsFresnelDirty(){this._areFresnelDirty=!0,this._isDirty=!0}markAsMiscDirty(){this._areMiscDirty=!0,this._isDirty=!0}markAsPrePassDirty(){this._arePrePassDirty=!0,this._isDirty=!0}rebuild(){this._keys.length=0;for(const a of Object.keys(this))a[0]!=="_"&&this._keys.push(a);if(this._externalProperties)for(const a in this._externalProperties)this._keys.indexOf(a)===-1&&this._keys.push(a)}isEqual(a){if(this._keys.length!==a._keys.length)return!1;for(let n=0;n<this._keys.length;n++){const l=this._keys[n];if(this[l]!==a[l])return!1}return!0}cloneTo(a){this._keys.length!==a._keys.length&&(a._keys=this._keys.slice(0));for(let n=0;n<this._keys.length;n++){const l=this._keys[n];a[l]=this[l]}}reset(){for(const a of this._keys)this._setDefaultValue(a)}_setDefaultValue(a){const n=this._externalProperties?.[a]?.type??typeof this[a],l=this._externalProperties?.[a]?.default;switch(n){case"number":this[a]=l??0;break;case"string":this[a]=l??"";break;default:this[a]=l??!1;break}}toString(){let a="";for(let n=0;n<this._keys.length;n++){const l=this._keys[n],u=this[l];switch(typeof u){case"number":case"string":a+="#define "+l+" "+u+`
3`;break;default:u&&(a+="#define "+l+`
4`);break}}return a}}function xr(r){return class extends r{constructor(){super(...arguments),this.IMAGEPROCESSING=!1,this.VIGNETTE=!1,this.VIGNETTEBLENDMODEMULTIPLY=!1,this.VIGNETTEBLENDMODEOPAQUE=!1,this.TONEMAPPING=0,this.CONTRAST=!1,this.COLORCURVES=!1,this.COLORGRADING=!1,this.COLORGRADING3D=!1,this.SAMPLER3DGREENDEPTH=!1,this.SAMPLER3DBGRMAP=!1,this.DITHER=!1,this.IMAGEPROCESSINGPOSTPROCESS=!1,this.SKIPFINALCOLORCLAMP=!1,this.EXPOSURE=!1}}}const Er=new RegExp("^([gimus]+)!");class ${constructor(a){this._plugins=[],this._activePlugins=[],this._activePluginsForExtraEvents=[],this._material=a,this._scene=a.getScene(),this._engine=this._scene.getEngine()}_addPlugin(a){for(let u=0;u<this._plugins.length;++u)if(this._plugins[u].name===a.name)return!1;if(this._material._uniformBufferLayoutBuilt&&(this._material.resetDrawCache(),this._material._createUniformBuffer()),!a.isCompatible(this._material.shaderLanguage))throw`The plugin "${a.name}" can't be added to the material "${this._material.name}" because the plugin is not compatible with the shader language of the material.`;const n=a.getClassName();$._MaterialPluginClassToMainDefine[n]||($._MaterialPluginClassToMainDefine[n]="MATERIALPLUGIN_"+ ++$._MaterialPluginCounter),this._material._callbackPluginEventGeneric=(u,S)=>this._handlePluginEvent(u,S),this._plugins.push(a),this._plugins.sort((u,S)=>u.priority-S.priority),this._codeInjectionPoints={};const l={};l[$._MaterialPluginClassToMainDefine[n]]={type:"boolean",default:!0};for(const u of this._plugins)u.collectDefines(l),this._collectPointNames("vertex",u.getCustomCode("vertex",this._material.shaderLanguage)),this._collectPointNames("fragment",u.getCustomCode("fragment",this._material.shaderLanguage));return this._defineNamesFromPlugins=l,!0}_activatePlugin(a){this._activePlugins.indexOf(a)===-1&&(this._activePlugins.push(a),this._activePlugins.sort((n,l)=>n.priority-l.priority),this._material._callbackPluginEventIsReadyForSubMesh=this._handlePluginEventIsReadyForSubMesh.bind(this),this._material._callbackPluginEventPrepareDefinesBeforeAttributes=this._handlePluginEventPrepareDefinesBeforeAttributes.bind(this),this._material._callbackPluginEventPrepareDefines=this._handlePluginEventPrepareDefines.bind(this),this._material._callbackPluginEventBindForSubMesh=this._handlePluginEventBindForSubMesh.bind(this),a.registerForExtraEvents&&(this._activePluginsForExtraEvents.push(a),this._activePluginsForExtraEvents.sort((n,l)=>n.priority-l.priority),this._material._callbackPluginEventHasRenderTargetTextures=this._handlePluginEventHasRenderTargetTextures.bind(this),this._material._callbackPluginEventFillRen
4derTargetTextures=this._handlePluginEventFillRenderTargetTextures.bind(this),this._material._callbackPluginEventHardBindForSubMesh=this._handlePluginEventHardBindForSubMesh.bind(this)))}getPlugin(a){for(let n=0;n<this._plugins.length;++n)if(this._plugins[n].name===a)return this._plugins[n];return null}_handlePluginEventIsReadyForSubMesh(a){let n=!0;for(const l of this._activePlugins)n=n&&l.isReadyForSubMesh(a.defines,this._scene,this._engine,a.subMesh);a.isReadyForSubMesh=n}_handlePluginEventPrepareDefinesBeforeAttributes(a){for(const n of this._activePlugins)n.prepareDefinesBeforeAttributes(a.defines,this._scene,a.mesh)}_handlePluginEventPrepareDefines(a){for(const n of this._activePlugins)n.prepareDefines(a.defines,this._scene,a.mesh)}_handlePluginEventHardBindForSubMesh(a){for(const n of this._activePluginsForExtraEvents)n.hardBindForSubMesh(this._material._uniformBuffer,this._scene,this._engine,a.subMesh)}_handlePluginEventBindForSubMesh(a){for(const n of this._activePlugins)n.bindForSubMesh(this._material._uniformBuffer,this._scene,this._engine,a.subMesh)}_handlePluginEventHasRenderTargetTextures(a){let n=!1;for(const l of this._activePluginsForExtraEvents)if(n=l.hasRenderTargetTextures(),n)break;a.hasRenderTargetTextures=n}_handlePluginEventFillRenderTargetTextures(a){for(const n of this._activePluginsForExtraEvents)n.fillRenderTargetTextures(a.renderTargets)}_handlePluginEvent(a,n){switch(a){case 512:{const l=n;for(const u of this._activePlugins)u.getActiveTextures(l.activeTextures);break}case 256:{const l=n;for(const u of this._activePlugins)u.getAnimatables(l.animatables);break}case 1024:{const l=n;let u=!1;for(const S of this._activePlugins)if(u=S.hasTexture(l.texture),u)break;l.hasTexture=u;break}case 2:{const l=n;for(const u of this._plugins)u.dispose(l.forceDisposeTextures);break}case 4:{const l=n;l.defineNames=this._defineNamesFromPlugins;break}case 128:{const l=n;for(const u of this._activePlugins)l.fallbackRank=u.addFallbacks(l.defines,l.fallbacks,l.fallbackRank),u.getAttributes(l.attributes,this._scene,l.mesh);this._uniformList.length>0&&l.uniforms.push(...this._uniformList),this._samplerList.length>0&&l.samplers.push(...this._samplerList),this._uboList.length>0&&l.uniformBuffersNames.push(...this._uboList),l.customCode=this._injectCustomCode(l,l.customCode);break}case 8:{const l=n;this._uboDeclaration="",this._vertexDeclaration="",this._fragmentDeclaration="",this._uniformList=[],this._samplerList=[],this._uboList=[];const u=this._material.shaderLanguage===1;for(const S of this._plugins){const d=S.getUniforms(this._material.shaderLanguage);if(d){if(d.ubo)for(const m of d.ubo){if(m.size&&m.type){const v=m.arraySize??0;if(l.ubo.addUniform(m.name,m.size,v),u){let p;switch(m.type){case"mat4":p="mat4x4f";break;case"float":p="f32";break;default:p=`${m.type}f`;break}v>0?this._uboDeclaration+=`uniform ${m.name}: array<${p}, ${v}>;
5`:this._uboDeclaration+=`uniform ${m.name}: ${p};
6`}else this._uboDeclaration+=`${m.type} ${m.name}${v>0?`[${v}]`:""};
7`}this._uniformList.push(m.name)}d.vertex&&(this._vertexDeclaration+=d.vertex+`
8`),d.fragment&&(this._fragmentDeclaration+=d.fragment+`
9`),d.externalUniforms&&this._uniformList.push(...d.externalUniforms)}S.getSamplers(this._samplerList),S.getUniformBuffersNames(this._uboList)}break}}}_collectPointNames(a,n){if(n)for(const l in n)this._codeInjectionPoints[a]||(this._codeInjectionPoints[a]={}),this._codeInjectionPoints[a][l]=!0}_injectCustomCode(a,n){return(l,u)=>{n&&(u=n(l,u)),this._uboDeclaration&&(u=u.replace("#define ADDITIONAL_UBO_DECLARATION",this._uboDeclaration)),this._vertexDeclaration&&(u=u.replace("#define ADDITIONAL_VERTEX_DECLARATION",this._vertexDeclaration)),this._fragmentDeclaration&&(u=u.replace("#define ADDITIONAL_FRAGMENT_DECLARATION",this._fragmentDeclaration));const S=this._codeInjectionPoints?.[l];if(!S)return u;let d=null;for(let m in S){let v="";for(const p of this._activePlugins){const b=this._material.shaderLanguage;let F=p.getCustomCode(l,b)?.[m];F&&(p.resolveIncludes&&(d===null&&(d={defines:[],indexParameters:a.indexParameters,isFragment:!1,shouldUseHighPrecisionShader:this._engine._shouldUseHighPrecisionShader,processor:void 0,supportsUniformBuffers:this._engine.supportsUniformBuffers,shadersRepository:ba.GetShadersRepository(b),includesShadersStore:ba.GetIncludesShadersStore(b),version:void 0,platformName:this._engine.shaderPlatformName,processingContext:void 0,isNDCHalfZRange:this._engine.isNDCHalfZRange,useReverseDepthBuffer:this._engine.useReverseDepthBuffer,processCodeAfterIncludes:void 0}),d.isFragment=l==="fragment",Ua(F,d,D=>F=D)),v+=F+`
10`)}if(v.length>0)if(m.charAt(0)==="!"){m=m.substring(1);let p="g";if(m.charAt(0)==="!")p="",m=m.substring(1);else{const D=Er.exec(m);D&&D.length>=2&&(p=D[1],m=m.substring(p.length+1))}p.indexOf("g")<0&&(p+="g");const b=new RegExp(m,p);let F=b.exec(u);for(;F!==null;){const{index:D}=F,O=Pr(v,F);u=u.substring(0,D)+O+u.substring(D+F[0].length),b.lastIndex=D+O.length,F=b.exec(u)}}else{const p="#define "+m;u=u.replace(p,`
11`+v+`
12`+p)}}return u}}}$._MaterialPluginClassToMainDefine={};$._MaterialPluginCounter=0;function Pr(r,a){return r.replace(/\$(\d+)/g,(n,l)=>{const u=Number(l);return u<a.length?a[u]:""})}let Ar=(()=>{var r;let a,n=[],l=[],u,S=[],d=[],m,v=[],p=[],b,F=[],D=[];return r=class{isCompatible(_){switch(_){case 0:return!0;default:return!1}}_enable(_){_&&this._pluginManager._activatePlugin(this)}constructor(_,P,L,U,G=!0,W=!1,X=!1){this.name=s(this,n,void 0),this.priority=(s(this,l),s(this,S,500)),this.resolveIncludes=(s(this,d),s(this,v,!1)),this.registerForExtraEvents=(s(this,p),s(this,F,!1)),this.doNotSerialize=(s(this,D),!1),this._material=_,this.name=P,this.priority=L,this.resolveIncludes=X,_.pluginManager||(_.pluginManager=new $(_),_.onDisposeObservable.add(()=>{_.pluginManager=void 0})),this._pluginDefineNames=U,this._pluginManager=_.pluginManager,G&&this._pluginManager._addPlugin(this),W&&this._enable(!0),this.markAllDefinesAsDirty=_._dirtyCallbacks[127]}getClassName(){return"MaterialPluginBase"}isReadyForSubMesh(_,P,L,U){return!0}hardBindForSubMesh(_,P,L,U){}bindForSubMesh(_,P,L,U){}dispose(_){}getCustomCode(_,P=0){return null}collectDefines(_){if(this._pluginDefineNames)for(const P of Object.keys(this._pluginDefineNames)){if(P[0]==="_")continue;const L=typeof this._pluginDefineNames[P];_[P]={type:L==="number"?"number":L==="string"?"string":L==="boolean"?"boolean":"object",default:this._pluginDefineNames[P]}}}prepareDefinesBeforeAttributes(_,P,L){}
12prepareDefines(_,P,L){}hasTexture(_){return!1}hasRenderTargetTextures(){return!1}fillRenderTargetTextures(_){}getActiveTextures(_){}getAnimatables(_){}addFallbacks(_,P,L){return L}getSamplers(_){}getAttributes(_,P,L){}getUniformBuffersNames(_){}getUniforms(_=0){return{}}copyTo(_){ae.Clone(()=>_,this)}serialize(){return ae.Serialize(this)}parse(_,P,L){ae.Parse(()=>this,_,P,L)}},(()=>{const O=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;a=[A()],u=[A()],m=[A()],b=[A()],o(null,null,a,{kind:"field",name:"name",static:!1,private:!1,access:{has:_=>"name"in _,get:_=>_.name,set:(_,P)=>{_.name=P}},metadata:O},n,l),o(null,null,u,{kind:"field",name:"priority",static:!1,private:!1,access:{has:_=>"priority"in _,get:_=>_.priority,set:(_,P)=>{_.priority=P}},metadata:O},S,d),o(null,null,m,{kind:"field",name:"resolveIncludes",static:!1,private:!1,access:{has:_=>"resolveIncludes"in _,get:_=>_.resolveIncludes,set:(_,P)=>{_.resolveIncludes=P}},metadata:O},v,p),o(null,null,b,{kind:"field",name:"registerForExtraEvents",static:!1,private:!1,access:{has:_=>"registerForExtraEvents"in _,get:_=>_.registerForExtraEvents,set:(_,P)=>{_.registerForExtraEvents=P}},metadata:O},F,D),O&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:O})})(),r})();class Sr extends Oa{constructor(){super(...arguments),this.DETAIL=!1,this.DETAILDIRECTUV=0,this.DETAIL_NORMALBLENDMETHOD=0}}let vr=(()=>{var r,a,n,l;let u=Ar,S,d=[],m=[],v,p=[],b=[],F,D=[],O=[],_,P=[],L=[],U,G=[],W=[],X,q=[],K=[];return r=class extends u{get texture(){return T(this,a,"f")}set texture(h){x(this,a,h,"f")}get normalBlendMethod(){return T(this,n,"f")}set normalBlendMethod(h){x(this,n,h,"f")}get isEnabled(){return T(this,l,"f")}set isEnabled(h){x(this,l,h,"f")}_markAllSubMeshesAsTexturesDirty(){this._enable(this._isEnabled),this._internalMarkAllSubMeshesAsTexturesDirty()}isCompatible(){return!0}constructor(h,M=!0){super(h,"DetailMap",140,new Sr,M),this._texture=null,a.set(this,s(this,d,void 0)),this.diffuseBlendLevel=(s(this,m),s(this,p,1)),this.roughnessBlendLevel=(s(this,b),s(this,D,1)),this.bumpLevel=(s(this,O),s(this,P,1)),this._normalBlendMethod=(s(this,L),pe.MATERIAL_NORMALBLENDMETHOD_WHITEOUT),n.set(this,s(this,G,void 0)),this._isEnabled=(s(this,W),!1),l.set(this,s(this,q,!1)),this._internalMarkAllSubMeshesAsTexturesDirty=s(this,K),this._internalMarkAllSubMeshesAsTexturesDirty=h._dirtyCallbacks[1]}isReadyForSubMesh(h,M,z){return this._isEnabled?!(h._areTexturesDirty&&M.texturesEnabled&&z.getCaps().standardDerivatives&&this._texture&&I.DetailTextureEnabled&&!this._texture.isReady()):!0}prepareDefines(h,M){if(this._isEnabled){h.DETAIL_NORMALBLENDMETHOD=this._normalBlendMethod;const z=M.getEngine();h._areTexturesDirty&&(z.getCaps().standardDerivatives&&this._texture&&I.DetailTextureEnabled&&this._isEnabled?(Y(this._texture,h,"DETAIL"),h.DETAIL_NORMALBLENDMETHOD=this._normalBlendMethod):h.DETAIL=!1)}else h.DETAIL=!1}bindForSubMesh(h,M){if(!this._isEnabled)return;const z=this._material.isFrozen;(!h.useUbo||!z||!h.isSync)&&this._texture&&I.DetailTextureEnabled&&(h.updateFloat4("vDetailInfos",this._texture.coordinatesIndex,this.diffuseBlendLevel,this.bumpLevel,this.roughnessBlendLevel),Z(this._texture,h,"detail")),M.texturesEnabled&&this._texture&&I.DetailTextureEnabled&&h.setTexture("detailSampler",this._texture)}hasTexture(h){return this._texture===h}getActiveTextures(h){this._texture&&h.push(this._texture)}getAnimatables(h){this._texture&&this._texture.animations&&this._texture.animations.length>0&&h.push(this._texture)}dispose(h){h&&this._texture?.dispose()}getClassName(){return"DetailMapConfiguration"}getSamplers(h){h.push("detailSampler")}getUniforms(){return{ubo:[{name:"vDetailInfos",size:4,type:"vec4"},{name:"detailMatrix",size:16,type:"mat4"}]}}},a=new WeakMap,n=new WeakMap,l=new WeakMap,(()=>{const y=typeof Symbol=="function"&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;S=[H("detailTexture"),E("_markAllSubMeshesAsTexturesDirty")],v=[A()],F=[A()],_=[A()],U=[A(),E("_markAllSubMeshesAsTexturesDirty")],X=[A(),E("_markAllSubMeshesAsTexturesDirty")],o(r,null,S,{kind:"accessor",name:"texture",static:!1,private:!1,access:{has:h=>"texture"in h,get:h=>h.texture,set:(h,M)=>{h.texture=M}},metadata:y},d,m),o(r,null,U,{kind:"accessor",name:"normalBlendMethod",static:!1,private:!1,access:{has:h=>"normalBlendMethod"in h,get:h=>
12h.normalBlendMethod,set:(h,M)=>{h.normalBlendMethod=M}},metadata:y},G,W),o(r,null,X,{kind:"accessor",name:"isEnabled",static:!1,private:!1,access:{has:h=>"isEnabled"in h,get:h=>h.isEnabled,set:(h,M)=>{h.isEnabled=M}},metadata:y},q,K),o(null,null,v,{kind:"field",name:"diffuseBlendLevel",static:!1,private:!1,access:{has:h=>"diffuseBlendLevel"in h,get:h=>h.diffuseBlendLevel,set:(h,M)=>{h.diffuseBlendLevel=M}},metadata:y},p,b),o(null,null,F,{kind:"field",name:"roughnessBlendLevel",static:!1,private:!1,access:{has:h=>"roughnessBlendLevel"in h,get:h=>h.roughnessBlendLevel,set:(h,M)=>{h.roughnessBlendLevel=M}},metadata:y},D,O),o(null,null,_,{kind:"field",name:"bumpLevel",static:!1,private:!1,access:{has:h=>"bumpLevel"in h,get:h=>h.bumpLevel,set:(h,M)=>{h.bumpLevel=M}},metadata:y},P,L),y&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:y})})(),r})();var Fa;(function(r){r[r.Zero=0]="Zero",r[r.One=1]="One",r[r.MaxViewZ=2]="MaxViewZ",r[r.NoClear=3]="NoClear"})(Fa||(Fa={}));class k{static CreateConfiguration(a){return k._Configurations[a]={defines:{},previousWorldMatrices:{},previousViewProjection:Ma.Zero(),currentViewProjection:Ma.Zero(),previousBones:{},lastUpdateFrameId:-1,excludedSkinnedMesh:[],reverseCulling:!1},k._Configurations[a]}static DeleteConfiguration(a){delete k._Configurations[a]}static GetConfiguration(a){return k._Configurations[a]}static AddUniformsAndSamplers(a,n){a.push("previousWorld","previousViewProjection","mPreviousBones")}static MarkAsDirty(a,n){for(const l of n)if(l.subMeshes)for(const u of l.subMeshes)u._removeDrawWrapper(a)}static PrepareDefines(a,n,l){if(!l._arePrePassDirty)return;const u=k._Configurations[a];if(!u)return;l.PREPASS=!0;let S=0;for(let d=0;d<k.GeometryTextureDescriptions.length;d++){const m=k.GeometryTextureDescriptions[d],v=m.define,p=m.defineIndex,b=u.defines[p];b!==void 0?(l[v]=!0,l[p]=b,S++):(l[v]=!1,delete l[p])}l.SCENE_MRT_COUNT=S,l.BONES_VELOCITY_ENABLED=n.useBones&&n.computeBonesUsingShaders&&n.skeleton&&!n.skeleton.isUsingTextureForMatrices&&u.excludedSkinnedMesh.indexOf(n)===-1}static Bind(a,n,l,u,S){const d=k._Configurations[a];if(!d)return;const m=l.getScene(),v=m.getEngine();if(d.reverseCulling&&v.setStateCullFaceType(m._mirroredCameraPosition?S.cullBackFaces:!S.cullBackFaces),(d.defines.PREPASS_VELOCITY_INDEX!==void 0||d.defines.PREPASS_VELOCITY_LINEAR_INDEX!==void 0)&&(d.previousWorldMatrices[l.uniqueId]||(d.previousWorldMatrices[l.uniqueId]=u.clone()),d.previousViewProjection||(d.previousViewProjection=m.getTransformMatrix().clone(),d.currentViewProjection=m.getTransformMatrix().clone()),d.currentViewProjection.updateFlag!==m.getTransformMatrix().updateFlag?(d.lastUpdateFrameId=v.frameId,d.previousViewProjection.copyFrom(d.currentViewProjection),d.currentViewProjection.copyFrom(m.getTransformMatrix())):d.lastUpdateFrameId!==v.frameId&&(d.lastUpdateFrameId=v.frameId,d.previousViewProjection.copyFrom(d.currentViewProjection)),n.setMatrix("previousWorld",d.previousWorldMatrices[l.uniqueId]),n.setMatrix("previousViewProjection",d.previousViewProjection),d.previousWorldMatrices[l.uniqueId]=u.clone(),l.useBones&&l.computeBonesUsingShaders&&l.skeleton)){const p=l.skeleton;if(!p.isUsingTextureForMatrices||n.getUniformIndex("boneTextureInfo")===-1){const b=p.getTransformMatrices(l);b&&(d.previousBones[l.uniqueId]||(d.previousBones[l.uniqueId]=b.slice()),n.setMatrices("mPreviousBones",d.previousBones[l.uniqueId]),d.previousBones[l.uniqueId].set(b))}}}}k.GeometryTextureDescriptions=[{type:0,name:"IrradianceLegacy",clearType:0,define:"PREPASS_IRRADIANCE_LEGACY",defineIndex:"PREPASS_IRRADIANCE_LEGACY_INDEX"},{type:1,name:"WorldPosition",clearType:0,define:"PREPASS_POSITION",defineIndex:"PREPASS_POSITION_INDEX"},{type:2,name:"Velocity",clearType:0,define:"PREPASS_VELOCITY",defineIndex:"PREPASS_VELOCITY_INDEX"},{type:3,name:"Reflectivity",clearType:0,define:"PREPASS_REFLECTIVITY",defineIndex:"PREPASS_REFLECTIVITY_INDEX"},{type:5,name:"ViewDepth",clearType:2,define:"PREPASS_DEPTH",defineIndex:"PREPASS_DEPTH_INDEX"},{type:6,name:"ViewNormal",clearType:0,define:"PREPASS_NORMAL",defineIndex:"PREPASS_NORMAL_INDEX"},{type:7,name:"AlbedoSqrt",clearType:0,define:"PREPASS_ALBEDO_SQRT",defineIndex:"PREPASS_ALBEDO_SQRT_INDEX"},{type:8,name:"WorldNormal",clearType:0,define:"PREPASS_WORLD_NORMAL",defineIndex:"PREPASS_WORLD_NORMAL_INDEX"},{type:9,name:"LocalPosition",clearType:0,define:"PREPASS_LOCAL_POSITION",defineIndex:"PREPASS_LOCAL_POSITION_INDEX"},{type:10,name:"ScreenDepth",clearType:1,define:"PREPASS_SCREENSPACE_DEPTH",defineIndex:"PREPASS_SCREENSPACE_DEPTH_INDEX"},{type:11,name:"LinearVelocity",clearType:0,define:"PREPASS_VELOCITY_LINEAR",defineIndex:"PREPASS_VELOCITY_LINEAR_INDEX"},{type:12,name:"Albedo",clearType:0,define:"PREPASS_ALBEDO",defineIndex:"PREPASS_ALBEDO_INDEX"}
12,{type:13,name:"NormalizedViewDepth",clearType:1,define:"PREPASS_NORMALIZED_VIEW_DEPTH",defineIndex:"PREPASS_NORMALIZED_VIEW_DEPTH_INDEX"},{type:4,name:"Color",clearType:3,define:"PREPASS_COLOR",defineIndex:"PREPASS_COLOR_INDEX"},{type:14,name:"Irradiance",clearType:0,define:"PREPASS_IRRADIANCE",defineIndex:"PREPASS_IRRADIANCE_INDEX"}];k._Configurations={};function Ir(r){return class extends r{constructor(){super(...arguments),this.MAINUV1=!1,this.MAINUV2=!1,this.MAINUV3=!1,this.MAINUV4=!1,this.MAINUV5=!1,this.MAINUV6=!1,this.UV1=!1,this.UV2=!1,this.UV3=!1,this.UV4=!1,this.UV5=!1,this.UV6=!1}}}function Rr(r){return class extends r{constructor(){super(...arguments),this.PREPASS=!1,this.PREPASS_COLOR=!1,this.PREPASS_COLOR_INDEX=-1,this.PREPASS_IRRADIANCE_LEGACY=!1,this.PREPASS_IRRADIANCE_LEGACY_INDEX=-1,this.PREPASS_IRRADIANCE=!1,this.PREPASS_IRRADIANCE_INDEX=-1,this.PREPASS_ALBEDO=!1,this.PREPASS_ALBEDO_INDEX=-1,this.PREPASS_ALBEDO_SQRT=!1,this.PREPASS_ALBEDO_SQRT_INDEX=-1,this.PREPASS_DEPTH=!1,this.PREPASS_DEPTH_INDEX=-1,this.PREPASS_SCREENSPACE_DEPTH=!1,this.PREPASS_SCREENSPACE_DEPTH_INDEX=-1,this.PREPASS_NORMALIZED_VIEW_DEPTH=!1,this.PREPASS_NORMALIZED_VIEW_DEPTH_INDEX=-1,this.PREPASS_NORMAL=!1,this.PREPASS_NORMAL_INDEX=-1,this.PREPASS_NORMAL_WORLDSPACE=!1,this.PREPASS_WORLD_NORMAL=!1,this.PREPASS_WORLD_NORMAL_INDEX=-1,this.PREPASS_POSITION=!1,this.PREPASS_POSITION_INDEX=-1,this.PREPASS_LOCAL_POSITION=!1,this.PREPASS_LOCAL_POSITION_INDEX=-1,this.PREPASS_VELOCITY=!1,this.PREPASS_VELOCITY_INDEX=-1,this.PREPASS_VELOCITY_LINEAR=!1,this.PREPASS_VELOCITY_LINEAR_INDEX=-1,this.PREPASS_REFLECTIVITY=!1,this.PREPASS_REFLECTIVITY_INDEX=-1,this.SCENE_MRT_COUNT=0}}}function br(r){return class extends r{constructor(...a){super(...a);const n=new.target;if(!n[Symbol.metadata]){const u=Object.getPrototypeOf(n)?.[Symbol.metadata];n[Symbol.metadata]=u?Object.create(u):{}}const l=Ba(n[Symbol.metadata]);l._imageProcessingConfiguration||(l._imageProcessingConfiguration={type:9,sourceName:void 0})}get imageProcessingConfiguration(){return this._imageProcessingConfiguration}set imageProcessingConfiguration(a){this._attachImageProcessingConfiguration(a),this._markAllSubMeshesAsImageProcessingDirty&&this._markAllSubMeshesAsImageProcessingDirty()}_attachImageProcessingConfiguration(a){a!==this._imageProcessingConfiguration&&(this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),
12!a&&this.getScene?this._imageProcessingConfiguration=this.getScene().imageProcessingConfiguration:a&&(this._imageProcessingConfiguration=a),this._imageProcessingConfiguration&&(this._imageProcessingObserver=this._imageProcessingConfiguration.onUpdateParameters.add(()=>{this._markAllSubMeshesAsImageProcessingDirty&&this._markAllSubMeshesAsImageProcessingDirty()})))}get cameraColorCurvesEnabled(){return this.imageProcessingConfiguration.colorCurvesEnabled}set cameraColorCurvesEnabled(a){this.imageProcessingConfiguration.colorCurvesEnabled=a}get cameraColorGradingEnabled(){return this.imageProcessingConfiguration.colorGradingEnabled}set cameraColorGradingEnabled(a){this.imageProcessingConfiguration.colorGradingEnabled=a}get cameraToneMappingEnabled(){return this._imageProcessingConfiguration.toneMappingEnabled}set cameraToneMappingEnabled(a){this._imageProcessingConfiguration.toneMappingEnabled=a}get cameraExposure(){return this._imageProcessingConfiguration.exposure}set cameraExposure(a){this._imageProcessingConfiguration.exposure=a}get cameraContrast(){return this._imageProcessingConfiguration.contrast}set cameraContrast(a){this._imageProcessingConfiguration.contrast=a}get cameraColorGradingTexture(){return this._imageProcessingConfiguration.colorGradingTexture}set cameraColorGradingTexture(a){this._imageProcessingConfiguration.colorGradingTexture=a}get cameraColorCurves(){return this._imageProcessingConfiguration.colorCurves}set cameraColorCurves(a){this._imageProcessingConfiguration.colorCurves=a}}}const xe={effect:null,subMesh:null};class Mr extends Rr(Ir(Oa)){}class Lr extends xr(Mr){constructor(a){super(a),this.DIFFUSE=!1,this.DIFFUSEDIRECTUV=0,this.BAKED_VERTEX_ANIMATION_TEXTURE=!1,this.AMBIENT=!1,this.AMBIENTDIRECTUV=0,this.OPACITY=!1,this.OPACITYDIRECTUV=0,this.OPACITYRGB=!1,this.REFLECTION=!1,this.EMISSIVE=!1,this.EMISSIVEDIRECTUV=0,this.SPECULAR=!1,this.SPECULARDIRECTUV=0,this.BUMP=!1,this.BUMPDIRECTUV=0,this.PARALLAX=!1,this.PARALLAX_RHS=!1,this.PARALLAXOCCLUSION=!1,this.SPECULAROVERALPHA=!1,this.CLIPPLANE=!1,this.CLIPPLANE2=!1,this.CLIPPLANE3=!1,this.CLIPPLANE4=!1,this.CLIPPLANE5=!1,this.CLIPPLANE6=!1,this.ALPHATEST=!1,this.DEPTHPREPASS=!1,this.ALPHAFROMDIFFUSE=!1,this.POINTSIZE=!1,this.FOG=!1,this.SPECULARTERM=!1,this.DIFFUSEFRESNEL=!1,this.OPACITYFRESNEL=!1,this.REFLECTIONFRESNEL=!1,this.REFRACTIONFRESNEL=!1,this.EMISSIVEFRESNEL=!1,this.FRESNEL=!1,this.NORMAL=!1,this.TANGENT=!1,this.VERTEXCOLOR=!1,this.VERTEXALPHA=!1,this.NUM_BONE_INFLUENCERS=0,this.BonesPerMesh=0,this.BONETEXTURE=!1,this.BONES_VELOCITY_ENABLED=!1,this.INSTANCES=!1,this.THIN_INSTANCES=!1,this.INSTANCESCOLOR=!1,this.GLOSSINESS=!1,this.ROUGHNESS=!1,this.EMISSIVEASILLUMINATION=!1,this.LINKEMISSIVEWITHDIFFUSE=!1,this.REFLECTIONFRESNELFROMSPECULAR=!1,this.LIGHTMAP=!1,this.LIGHTMAPDIRECTUV=0,this.OBJECTSPACE_NORMALMAP=!1,this.USELIGHTMAPASSHADOWMAP=!1,this.REFLECTIONMAP_3D=!1,this.REFLECTIONMAP_SPHERICAL=!1,this.REFLECTIONMAP_PLANAR=!1,this.REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFLECTIONMAP_CUBIC=!1,this.USE_LOCAL_REFRACTIONMAP_CUBIC=!1,this.REFLECTIONMAP_PROJECTION=!1,this.REFLECTIONMAP_SKYBOX=!1,this.REFLECTIONMAP_EXPLICIT=!1,this.REFLECTIONMAP_EQUIRECTANGULAR=!1,this.REFLECTIONMAP_EQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED=!1,this.REFLECTIONMAP_OPPOSITEZ=!1,this.INVERTCUBICMAP=!1,this.LOGARITHMICDEPTH=!1,this.REFRACTION=!1,this.REFRACTIONMAP_3D=!1,this.REFLECTIONOVERALPHA=!1,this.TWOSIDEDLIGHTING=!1,this.SHADOWFLOAT=!1,this.MORPHTARGETS=!1,this.MORPHTARGETS_POSITION=!1,this.MORPHTARGETS_NORMAL=!1,this.MORPHTARGETS_TANGENT=!1,this.MORPHTARGETS_UV=!1,this.MORPHTARGETS_UV2=!1,this.MORPHTARGETS_COLOR=!1,this.MORPHTARGETTEXTURE_HASPOSITIONS=!1,this.MORPHTARGETTEXTURE_HASNORMALS=!1,this.MORPHTARGETTEXTURE_HASTANGENTS=!1,this.MORPHTARGETTEXTURE_HASUVS=!1,this.MORPHTARGETTEXTURE_HASUV2S=!1,this.MORPHTARGETTEXTURE_HASCOLORS=!1,this.NUM_MORPH_INFLUENCERS=0,this.MORPHTARGETS_TEXTURE=!1,this.NONUNIFORMSCALING=!1,this.PREMULTIPLYALPHA=!1,this.ALPHATEST_AFTERALLALPHACOMPUTATIONS=!1,this.ALPHABLEND=!0,this.RGBDLIGHTMAP=!1,this.RGBDREFLECTION=!1,this.RGBDREFRACTION=!1,this.MULTIVIEW=!1,this.ORDER_INDEPENDENT_TRANSPARENCY=!1,this.ORDER_INDEPENDENT_TRANSPARENCY_16BITS=!1,this.CAMERA_ORTHOGRAPHIC=!1,this.CAMERA_PERSPECTIVE=!1,this.AREALIGHTSUPPORTED=!0,this.USE_VERTEX_PULLING=!1,this.VERTEX_PULLING_USE_INDEX_BUFFER=!1,this.VERTEX_PULLING_INDEX_BUFFER_32BITS=!1,this.RIGHT_HANDED=!1,this.CLUSTLIGHT_SLICES=0,this.CLUSTLIGHT_BATCH=0,this.IS_REFLECTION_LINEAR=!1,this.IS_REFRACTION_LINEAR=!1,this.DECAL_AFTER_DETAIL=!1,this.TEXTURE_REPETITION_MODE=0,this.rebuild()}}class Fr extends br(gr){}let ge=(()=>{var r,a,n,l,u,S,d,m,v,p,b,F,D,O,_,P,L,U,G,W,X,q,K,y,h,M,z,re,le,ne,oe,ue,fe;let Ee=Fr,Pe,Ae=[],Se=[],ve,Ie=[],Re=[],be,Me=[],Le=[],Fe,De=[],Ce=[],Oe,Ne=[],ye=[],ke,Ue=[],Be=[],ze,we=[],Ve=[],He,Ge=[],We=[],Xe,je=[],Ye=[],Ze,$e=[],qe=[],Ke,Qe=[],Je=[],et,tt=[],st=[],it,at=[],rt=[],lt,nt=[],ot=[],ut,ft=[],ht=[],_t,ct=[],dt=[],mt,pt=[],gt=[],Tt,xt=[],Et=[],Pt,At=[],St=[],vt,It=[],Rt=[],bt,Mt=[],Lt=[],Ft,Dt=[],Ct=[],Ot,Nt=[],yt=[],kt,Ut=[],Bt=[],zt,wt=[],Vt=[],Ht,Gt=[],Wt=[],Xt,jt=[],Yt=[],Zt,$t=[],qt=[],Kt,Qt=[],Jt=[],es,ts=[],ss=[],is,as=[],rs=[],ls,ns=[],os=[],us,fs=[],hs=[],_s,cs=[],ds=[],ms,ps=[],gs=[],Ts,xs=[],Es=[],Ps,As=[],Ss=[],vs,Is=[],Rs=[],bs,Ms=[],Ls=[],Fs,Ds=[],Cs=[],Os,Ns=[],ys=[],ks,Us=[],Bs=[],zs,ws=[],Vs=[],Hs,Gs=[],Ws=[],Xs,js=[],Ys=[],Zs,$s=[],qs=[],Ks,Qs=[],Js=[],ei,ti=[],si=[],ii,ai=[],ri=[],li,ni=[],oi=[],ui,fi=[],hi=[],_i,ci=[],di=[],mi,pi=[],gi=[],Ti,xi=[],Ei=[],Pi,Ai=[],Si=[],vi,Ii=[],Ri=[],bi,Mi=[],Li=[],Fi,Di=[],Ci=[],Oi,Ni=[],yi=[],ki,Ui=[],Bi=[],zi,wi=[],Vi=[],Hi,Gi=[],Wi=[],Xi,ji=[],Yi=[],Zi,$i=[],qi=[],Ki,Qi=[],Ji=[],ea,ta=[],sa=[],ia,aa=[],ra=[],la,na=[],oa=[],ua,fa=[],ha=[],_a,ca=[],da=[],ma,pa=[],ga=[],Ta,xa=[],Ea=[],Pa,Aa=[],Sa=[];
vendor: 7,424 bytes, line 12
12return r=class extends Ee{get diffuseTexture(){return T(this,a,"f")}set diffuseTexture(e){x(this,a,e,"f")}get ambientTexture(){return T(this,n,"f")}set ambientTexture(e){x(this,n,e,"f")}get opacityTexture(){return T(this,l,"f")}set opacityTexture(e){x(this,l,e,"f")}get reflectionTexture(){return T(this,u,"f")}set reflectionTexture(e){x(this,u,e,"f")}get emissiveTexture(){return T(this,S,"f")}set emissiveTexture(e){x(this,S,e,"f")}get specularTexture(){return T(this,d,"f")}set specularTexture(e){x(this,d,e,"f")}get bumpTexture(){return T(this,m,"f")}set bumpTexture(e){x(this,m,e,"f")}get lightmapTexture(){return T(this,v,"f")}set lightmapTexture(e){x(this,v,e,"f")}get refractionTexture(){return T(this,p,"f")}set refractionTexture(e){x(this,p,e,"f")}get useAlphaFromDiffuseTexture(){return T(this,b,"f")}set useAlphaFromDiffuseTexture(e){x(this,b,e,"f")}get useEmissiveAsIllumination(){return T(this,F,"f")}set useEmissiveAsIllumination(e){x(this,F,e,"f")}get linkEmissiveWithDiffuse(){return T(this,D,"f")}set linkEmissiveWithDiffuse(e){x(this,D,e,"f")}get useSpecularOverAlpha(){return T(this,O,"f")}set useSpecularOverAlpha(e){x(this,O,e,"f")}get useReflectionOverAlpha(){return T(this,_,"f")}set useReflectionOverAlpha(e){x(this,_,e,"f")}get disableLighting(){return T(this,P,"f")}set disableLighting(e){x(this,P,e,"f")}get useObjectSpaceNormalMap(){return T(this,L,"f")}set useObjectSpaceNormalMap(e){x(this,L,e,"f")}get useParallax(){return T(this,U,"f")}set useParallax(e){x(this,U,e,"f")}get useParallaxOcclusion(){return T(this,G,"f")}set useParallaxOcclusion(e){x(this,G,e,"f")}get roughness(){return T(this,W,"f")}set roughness(e){x(this,W,e,"f")}get useLightmapAsShadowmap(){return T(this,X,"f")}set useLightmapAsShadowmap(e){x(this,X,e,"f")}get diffuseFresnelParameters(){return T(this,q,"f")}set diffuseFresnelParameters(e){x(this,q,e,"f")}get opacityFresnelParameters(){return T(this,K,"f")}set opacityFresnelParameters(e){x(this,K,e,"f")}get reflectionFresnelParameters(){return T(this,y,"f")}set reflectionFresnelParameters(e){x(this,y,e,"f")}get refractionFresnelParameters(){return T(this,h,"f")}set refractionFresnelParameters(e){x(this,h,e,"f")}get emissiveFresnelParameters(){return T(this,M,"f")}set emissiveFresnelParameters(e){x(this,M,e,"f")}get useReflectionFresnelFromSpecular(){return T(this,z,"f")}set useReflectionFresnelFromSpecular(e){x(this,z,e,"f")}get useGlossinessFromSpecularMapAlpha(){return T(this,re,"f")}set useGlossinessFromSpecularMapAlpha(e){x(this,re,e,"f")}get maxSimultaneousLights(){return T(this,le,"f")}set maxSimultaneousLights(e){x(this,le,e,"f")}get invertNormalMapX(){return T(this,ne,"f")}set invertNormalMapX(e){x(this,ne,e,"f")}get invertNormalMapY(){return T(this,oe,"f")}set invertNormalMapY(e){x(this,oe,e,"f")}get twoSidedLighting(){return T(this,ue,"f")}set twoSidedLighting(e){x(this,ue,e,"f")}get applyDecalMapAfterDetailMap(){return T(this,fe,"f")}set applyDecalMapAfterDetailMap(e){x(this,fe,e,"f")}get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(e,t,C=!1){super(e,t,void 0,C||r.ForceGLSL),this._diffuseTexture=s(this,Ae,null),a.set(this,(s(this,Se),s(this,Ie,void 0))),this._ambientTexture=(s(this,Re),s(this,Me,null)),n.set(this,(s(this,Le),s(this,De,void 0))),this._opacityTexture=(s(this,Ce),s(this,Ne,null)),l.set(this,(s(this,ye),s(this,Ue,void 0))),this._reflectionTexture=(s(this,Be),s(this,we,null)),u.set(this,(s(this,Ve),s(this,Ge,void 0))),this._emissiveTexture=(s(this,We),s(this,je,null)),S.set(this,(s(this,Ye),s(this,$e,void 0))),this._specularTexture=(s(this,qe),s(this,Qe,null)),d.set(this,(s(this,Je),s(this,tt,void 0))),this._bumpTexture=(s(this,st),s(this,at,null)),m.set(this,(s(this,rt),s(this,nt,void 0))),this._lightmapTexture=(s(this,ot),s(this,ft,null)),v.set(this,(s(this,ht),s(this,ct,void 0))),this._refractionTexture=(s(this,dt),s(this,pt,null)),p.set(this,(s(this,gt),s(this,xt,void 0))),this.ambientColor=(s(this,Et),s(this,At,new ee(0,0,0))),this.diffuseColor=(s(this,St),s(this,It,new ee(1,1,1))),this.specularColor=(s(this,Rt),s(this,Mt,new ee(1,1,1))),this.emissiveColor=(s(this,Lt),s(this,Dt,new ee(0,0,0))),this.specularPower=(s(this,Ct),s(this,Nt,64)),this._useAlphaFromDiffuseTexture=(s(this,yt),s(this,Ut,!1)),b.set(this,(s(this,Bt),s(this,wt,void 0))),this._useEmissiveAsIllumination=(s(this,Vt),s(this,Gt,!1)),F.set(this,(s(this,Wt),s(this,jt,void 0))),this._linkEmissiveWithDiffuse=(s(this,Yt),s(this,$t,!1)),D.set(this,(s(this,qt),s(this,Qt,void 0))),this._useSpecularOverAlpha=(s(this,Jt),s(this,ts,!1)),O.set(this,(s(this,ss),s(this,as,void 0))),this._useReflectionOverAlpha=(s(this,rs),s(this,ns,!1)),_.set(this,(s(this,os),s(this,fs,void 0))),this._disableLighting=(s(this,hs),s(this,cs,!1)),P.set(this,(s(this,ds),s(this,ps,void 0))),this._useObjectSpaceNormalMap=(s(this,gs),s(this,xs,!1)),L.set(this,(s(this,Es),s(this,As,void 0))),this._useParallax=(s(this,Ss),s(this,Is,!1)),U.set(this,(s(this,Rs),s(this,Ms,void 0))),this._useParallaxOcclusion=(s(this,Ls),s(this,Ds,!1)),G.set(this,(s(this,Cs),s(this,Ns,void 0))),this.parallaxScaleBias=(s(this,ys),s(this,Us,.05)),this._roughness=(s(this,Bs),s(this,ws,0)),W.set(this,(s(this,Vs),s(this,Gs,void 0))),this.indexOfRefraction=(s(this,Ws),s(this,js,.98)),this.invertRefractionY=(s(this,Ys),s(this,$s,!0)),this.alphaCutOff=(s(this,qs),s(this,Qs,.4)),this._useLightmapAsShadowmap=(s(this,Js),s(this,ti,!1)),X.set(this,(s(this,si),s(this,ai,void 0))),this._diffuseFresnelParameters=(s(this,ri),s(this,ni,void 0)),q.set(this,(s(this,oi),s(this,fi,void 0))),this._opacityFresnelParameters=(s(this,hi),s(this,ci,void 0)),K.set(this,(s(this,di),s(this,pi,void 0))),this._reflectionFresnelParameters=(s(this,gi),s(this,xi,void 0)),y.set(this,(s(this,Ei),s(this,Ai,void 0))),this._refractionFresnelParameters=(s(this,Si),s(this,Ii,void 0)),h.set(this,(s(this,Ri),s(this,Mi,void 0))),this._emissiveFresnelParameters=(s(this,Li),s(this,Di,void 0)),M.set(this,(s(this,Ci),s(this,Ni,void 0))),this._useReflectionFresnelFromSpecular=(s(this,yi),s(this,Ui,!1)),z.set(this,(s(this,Bi),s(this,wi,void 0))),this._useGlossinessFromSpecularMapAlpha=(s(this,Vi),s(this,Gi,!1)),re.set(this,(s(this,Wi),s(this,ji,void 0))),this._maxSimultaneousLights=(s(this,Yi),s(this,$i,4)),le.set(this,(s(this,qi),s(this,Qi,void 0))),this._invertNormalMapX=(s(this,Ji),s(this,ta,!1)),ne.set(this,(s(this,sa),s(this,aa,void 0))),this._invertNormalMapY=(s(this,ra),s(this,na,!1)),oe.set(this,(s(this,oa),s(this,fa,void 0))),this._twoSidedLighting=(s(this,ha),s(this,ca,!1)),ue.set(this,(s(this,da),s(this,pa,void 0))),this._applyDecalMapAfterDetailMap=(s(this,ga),s(this,xa,!1)),fe.set(this,(s(this,Ea),s(this,Aa,void 0))),this._shadersLoaded=(s(this,Sa),!1),this._vertexPullingMetadata=null,this._renderTargets=new Ha(16),this._globalAmbientColor=new ee(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new vr(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new La,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),r.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),r.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRen
12derTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return r.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget||r.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget?!0:this._cacheHasRenderTargetTextures}getClassName(){return"StandardMaterial"}needAlphaBlending(){return this._hasTransparencyMode?this._transparencyModeIsBlend:this._disableAlphaBlending?!1:this.alpha<1||this._opacityTexture!=null||this._shouldUseAlphaFromDiffuseTexture()||this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled}needAlphaTesting(){return this._hasTransparencyMode?this._transparencyModeIsTest:this._hasAlphaChannel()&&(this._transparencyMode==null||this._transparencyMode===pe.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return this._diffuseTexture!=null&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==pe.MATERIAL_OPAQUE}_hasAlphaChannel(){return this._diffuseTexture!=null&&this._diffuseTexture.hasAlpha||this._opacityTexture!=null}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(e,t,C=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();const g=t._drawWrapper;if(g.effect&&this.isFrozen&&g._wasPreviouslyReady&&g._wasPreviouslyUsingInstances===C)return!0;t.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),t.materialDefines=new Lr(this._eventInfo.defineNames));const R=this.getScene(),i=t.materialDefines;if(this._isReadyForSubMesh(t))return!0;const j=R.getEngine();if(i._needNormals=Wa(R,e,i,!0,this._maxSimultaneousLights,this._disableLighting),!Xa(R,e,this._maxSimultaneousLights,this._disableLighting))return!1;ja(R,i);const Q=this.needAlphaBlendingForMesh(e)&&this.getScene().useOrderIndependentTransparency;if(Ya(R,i,this.canRenderToMRT&&!Q),Za(R,i,Q),k.PrepareDefines(j.currentRenderPassId,e,i),i._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,i._needUVs=!1;for(let B=1;B<=6;++B)i["MAINUV"+B]=!1;if(R.texturesEnabled){if(i.DIFFUSEDIRECTUV=0,i.BUMPDIRECTUV=0,i.AMBIENTDIRECTUV=0,i.OPACITYDIRECTUV=0,i.EMISSIVEDIRECTUV=0,i.SPECULARDIRECTUV=0,i.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&r.DiffuseTextureEnabled)if(this._diffuseTexture.isReadyOrNotBlocking())Y(this._diffuseTexture,i,"DIFFUSE");else return!1;else i.DIFFUSE=!1;if(this._ambientTexture&&r.AmbientTextureEnabled)if(this._ambientTexture.isReadyOrNotBlocking())Y(this._ambientTexture,i,"AMBIENT");else return!1;else i.AMBIENT=!1;if(this._opacityTexture&&r.OpacityTextureEnabled)if(this._opacityTexture.isReadyOrNotBlocking())Y(this._opacityTexture,i,"OPACITY"),i.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else return!1;else i.OPACITY=!1;if(this._reflectionTexture&&r.ReflectionTextureEnabled?(i.ROUGHNESS=this._roughness>0,i.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(i.ROUGHNESS=!1,i.REFLECTIONOVERALPHA=!1),!$a(R,this._reflectionTexture,i))return!1;if(this._emissiveTexture&&r.EmissiveTextureEnabled)if(this._emissiveTexture.isReadyOrNotBlocking())Y(this._emissiveTexture,i,"EMISSIVE");else return!1;else i.EMISSIVE=!1;if(this._lightmapTexture&&r.LightmapTextureEnabled)if(this._lightmapTexture.isReadyOrNotBlocking())Y(this._lightmapTexture,i,"LIGHTMAP"),i.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,i.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else return!1;else i.LIGHTMAP=!1;if(this._specularTexture&&r.SpecularTextureEnabled)if(this._specularTexture.isReadyOrNotBlocking())Y(this._specularTexture,i,"SPECULAR"),i.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else return!1;else i.SPECULAR=!1;if(R.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&r.BumpTextureEnabled){if(this._bumpTexture.isReady())Y(this._bumpTexture,i,"BUMP"),i.PARALLAX=this._useParallax,i.PARALLAX_RHS=R.useRightHandedSystem,i.PARALLAXOCCLUSION=this._useParallaxOcclusion;else return!1;i.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else i.BUMP=!1,i.PARALLAX=!1,i.PARALLAX_RHS=!1,i.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&r.RefractionTextureEnabled)if(this._refractionTexture.isReadyOrNotBlocking())i._needUVs=!0,i.REFRACTION=!0,i.REFRACTIONMAP_3D=this._refractionTexture.isCube,i.RGBDREFRACTION=this._refractionTexture.isRGBD,i.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else return!1;else i.REFRACTION=!1;i.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else i.DIFFUSE=!1,i.AMBIENT=!1,i.OPACITY=!1,i.REFLECTION=!1,i.EMISSIVE=!1,i.LIGHTMAP=!1,i.BUMP=!1,i.REFRACTION=!1;i.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),i.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,i.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,i.SPECULAROVERALPHA=this._useSpecularOverAlpha,i.PREMULTIPLYALPHA=this.alphaMode===7||this.alphaMode===8,i.ALPHATEST_AFTERALLALPHACOMPUTATIONS=this.transparencyMode!==null,i.ALPHABLEND=this.transparencyMode===null||this.needAlphaBlendingForMesh(e),i.TEXTURE_REPETITION_MODE=j.version>1||j.isWebGPU?this.textureRepetitionMode:0}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=i,this._eventInfo.subMesh=t,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(i._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(i),i.IS_REFLECTION_LINEAR=this.reflectionTexture!=null&&!this.reflectionTexture.gammaSpace,i.IS_REFRACTION_LINEAR=this.refractionTexture!=null&&!this.refractionTexture.gammaSpace}if(i._areFresnelDirty&&(r.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(i.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,i.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,i.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,i.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,i.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,i.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,i._needNormals=!0,i.FRESNEL=!0):i.FRESNEL=!1),i.AREALIGHTUSED||i.CLUSTLIGHT_BATCH){for(let B=0;B<e.lightSources.length;B++)if(!e.lightSources[B]._isReady())return!1}qa(e,R,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(e),i,this._applyDecalMapAfterDetailMap,this._useVertexPulling,t.getRenderingMesh(),this._isVertexOutputInvariant),Ka(R,j,this,i,C,null,t.getRenderingMesh().hasThinInstances),this._eventInfo.defines=i,this._eventInfo.mesh=e,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),Qa(e,i,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let te=!1;if(i.isDirty){const B=i._areLightsDisposed;i.markAsProcessed();const c=new Tr;i.REFLECTION&&c.addFallback(0,"REFLECTION"),i.SPECULAR&&c.addFallback(0,"SPECULAR"),i.BUMP&&c.addFallback(0,"BUMP"),i.PARALLAX&&c.addFallback(1,"PARALLAX"),i.PARALLAX_RHS&&
12c.addFallback(1,"PARALLAX_RHS"),i.PARALLAXOCCLUSION&&c.addFallback(0,"PARALLAXOCCLUSION"),i.SPECULAROVERALPHA&&c.addFallback(0,"SPECULAROVERALPHA"),i.FOG&&c.addFallback(1,"FOG"),i.POINTSIZE&&c.addFallback(0,"POINTSIZE"),i.LOGARITHMICDEPTH&&c.addFallback(0,"LOGARITHMICDEPTH"),Ja(i,c,this._maxSimultaneousLights),i.SPECULARTERM&&c.addFallback(0,"SPECULARTERM"),i.DIFFUSEFRESNEL&&c.addFallback(1,"DIFFUSEFRESNEL"),i.OPACITYFRESNEL&&c.addFallback(2,"OPACITYFRESNEL"),i.REFLECTIONFRESNEL&&c.addFallback(3,"REFLECTIONFRESNEL"),i.EMISSIVEFRESNEL&&c.addFallback(4,"EMISSIVEFRESNEL"),i.FRESNEL&&c.addFallback(4,"FRESNEL"),i.MULTIVIEW&&c.addFallback(0,"MULTIVIEW");const N=[me.PositionKind];i.NORMAL&&N.push(me.NormalKind),i.TANGENT&&N.push(me.TangentKind);for(let V=1;V<=6;++V)i["UV"+V]&&N.push(`uv${V===1?"":V}`);i.VERTEXCOLOR&&N.push(me.ColorKind),er(N,e,i,c),tr(N,i),sr(N,e,i),ir(N,e,i);let se="default";const w=["world","view","viewProjection","vEyePosition","vLightsType","vAmbientColor","vDiffuseColor","vSpecularColor","vEmissiveColor","visibility","vFogInfos","vFogColor","pointSize","vDiffuseInfos","vAmbientInfos","vOpacityInfos","vEmissiveInfos","vSpecularInfos","vBumpInfos","vLightmapInfos","vRefractionInfos","mBones","diffuseMatrix","ambientMatrix","opacityMatrix","emissiveMatrix","specularMatrix","bumpMatrix","normalMatrix","lightmapMatrix","refractionMatrix","diffuseLeftColor","diffuseRightColor","opacityParts","reflectionLeftColor","reflectionRightColor","emissiveLeftColor","emissiveRightColor","refractionLeftColor","refractionRightColor","vRefractionPosition","vRefractionSize","logarithmicDepthConstant","vTangentSpaceParams","alphaCutOff","boneTextureInfo","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo","vTextureRepetitionHexTilingParams"],J=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];ar(w,J);const he=["Material","Scene","Mesh"],va={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:i.NUM_MORPH_INFLUENCERS};if(this._eventInfo.fallbacks=c,this._eventInfo.fallbackRank=0,this._eventInfo.defines=i,this._eventInfo.uniforms=w,this._eventInfo.attributes=N,this._eventInfo.samplers=J,this._eventInfo.uniformBuffersNames=he,this._eventInfo.customCode=void 0,this._eventInfo.mesh=e,this._eventInfo.indexParameters=va,this._callbackPluginEventGeneric(128,this._eventInfo),k.AddUniformsAndSamplers(w,J),La.AddUniforms(w),Te&&(Te.PrepareUniforms(w,i),Te.PrepareSamplers(J,i)),rr({uniformsNames:w,uniformBuffersNames:he,samplers:J,defines:i,maxSimultaneousLights:this._maxSimultaneousLights,shaderLanguage:this._shaderLanguage}),lr(w),this._useVertexPulling){const Ra=t.getRenderingMesh()?.geometry;Ra&&(this._vertexPullingMetadata=mr(Ra),this._vertexPullingMetadata&&this._vertexPullingMetadata.forEach((Cr,ka)=>{w.push(`vp_${ka}_info`)}))}else this._vertexPullingMetadata=null;const Ia={};this.customShaderNameResolve&&(se=this.customShaderNameResolve(se,w,he,J,i,N,Ia));const Na=i.toString(),ya=t.effect,_e=R.getEngine().createEffect(se,{attributes:N,uniformsNames:w,uniformBuffersNames:he,samplers:J,defines:Na,fallbacks:c,onCompiled:this.onCompiled,onError:this.onError,indexParameters:va,processFinalCode:Ia.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:i.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{this._shaderLanguage===1?await Promise.all([ce(()=>import("./default.vertex-BURUCtXZ.js"),__vite__mapDeps([0,1,2,3,4,5,6])),ce(()=>import("./default.fragment-DJ4bxHlx.js"),__vite__mapDeps([7,1,2,3,8,9,10]))]):await Promise.all([ce(()=>import("./tier3-babylon-z6xMXPxH.js").then(V=>V.ai),__vite__mapDeps([11,12,13,1,14,15,16,17])),ce(()=>import("./tier3-babylon-z6xMXPxH.js").then(V=>V.aj),__vite__mapDeps([11,12,13,1,14,15,16,17]))]),this._shadersLoaded=!0}},j);if(this._eventInfo.customCode=void 0,_e)if(this._onEffectCreatedObservable&&(xe.effect=_e,xe.subMesh=t,this._onEffectCreatedObservable.notifyObservers(xe)),this.allowShaderHotSwapping&&ya&&!_e.isReady()){if
vendor: 8,420 bytes, line 12
12(i.markAsUnprocessed(),te=this.isFrozen,B)return i._areLightsDisposed=!0,!1}else R.resetCachedMaterial(),t.setEffect(_e,i,this._materialContext)}return!t.effect||!t.effect.isReady()?!1:(i._renderId=R.getRenderId(),g._wasPreviouslyReady=!te,g._wasPreviouslyUsingInstances=C,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){const e=this._uniformBuffer;e.addUniform("diffuseLeftColor",4),e.addUniform("diffuseRightColor",4),e.addUniform("opacityParts",4),e.addUniform("reflectionLeftColor",4),e.addUniform("reflectionRightColor",4),e.addUniform("refractionLeftColor",4),e.addUniform("refractionRightColor",4),e.addUniform("emissiveLeftColor",4),e.addUniform("emissiveRightColor",4),e.addUniform("vDiffuseInfos",2),e.addUniform("vAmbientInfos",2),e.addUniform("vOpacityInfos",2),e.addUniform("vEmissiveInfos",2),e.addUniform("vLightmapInfos",2),e.addUniform("vSpecularInfos",2),e.addUniform("vBumpInfos",3),e.addUniform("diffuseMatrix",16),e.addUniform("ambientMatrix",16),e.addUniform("opacityMatrix",16),e.addUniform("emissiveMatrix",16),e.addUniform("lightmapMatrix",16),e.addUniform("specularMatrix",16),e.addUniform("bumpMatrix",16),e.addUniform("vTangentSpaceParams",2),e.addUniform("pointSize",1),e.addUniform("alphaCutOff",1),e.addUniform("refractionMatrix",16),e.addUniform("vRefractionInfos",4),e.addUniform("vRefractionPosition",3),e.addUniform("vRefractionSize",3),e.addUniform("vSpecularColor",4),e.addUniform("vEmissiveColor",3),e.addUniform("vDiffuseColor",4),e.addUniform("vAmbientColor",3),e.addUniform("cameraInfo",4),e.addUniform("vTextureRepetitionHexTilingParams",4),nr(e,!1,!0),super.buildUniformLayout()}bindForSubMesh(e,t,C){const g=this.getScene(),R=C.materialDefines;if(!R)return;const i=C.effect;if(!i)return;this._activeEffect=i,t.getMeshUniformBuffer().bindToEffect(i,"Mesh"),t.transferToEffect(e),this._uniformBuffer.bindToEffect(i,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,g,t,e,this.isFrozen),k.Bind(g.getEngine().currentRenderPassId,this._activeEffect,t,e,this);const j=g.activeCamera;j?this._uniformBuffer.updateFloat4("cameraInfo",j.minZ,j.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0);const Q=this.textureRepetitionHexTilingParams;this._uniformBuffer.updateFloat4("vTextureRepetitionHexTilingParams",Q[0],Q[1],Q[2],Q[3]),this._eventInfo.subMesh=C,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),R.OBJECTSPACE_NORMALMAP&&(e.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));const te=this._mustRebind(g,i,C,t.visibility),B=g.getEngine()._features.needToAlwaysBindUniformBuffers;or(t,i),this._vertexPullingMetadata&&pr(i,this._vertexPullingMetadata);const c=this._uniformBuffer;if(te){if(this.bindViewProjection(i),!c.useUbo||!this.isFrozen||!c.isSync||C._drawWrapper._forceRebindOnNextCall){if(r.FresnelEnabled&&R.FRESNEL){if(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(c.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),c.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled){const N=za.Color3[0];N.set(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),c.updateColor4("opacityParts",N,this.opacityFresnelParameters.power)}this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(c.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),c.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(c.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),c.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(c.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),c.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))}if(g.texturesEnabled&&(this._diffuseTexture&&r.DiffuseTextureEnabled&&(c.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),Z(this._diffuseTexture,c,"diffuse")),this._ambientTexture&&r.AmbientTextureEnabled&&(c.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),Z(this._ambientTexture,c,"ambient")),this._opacityTexture&&r.OpacityTextureEnabled&&(c.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),Z(this._opacityTexture,c,"opacity")),this._hasAlphaChannel()&&c.updateFloat("alphaCutOff",this.alphaCutOff),ur(g,R,c,ee.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),(!this._reflectionTexture||!r.ReflectionTextureEnabled)&&c.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&r.EmissiveTextureEnabled&&(c.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),Z(this._emissiveTexture,c,"emissive")),this._lightmapTexture&&r.LightmapTextureEnabled&&(c.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),Z(this._lightmapTexture,c,"lightmap")),this._specularTexture&&r.SpecularTextureEnabled&&(c.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),Z(this._specularTexture,c,"specular")),this._bumpTexture&&g.getEngine().getCaps().standardDerivatives&&r.BumpTextureEnabled&&(c.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),Z(this._bumpTexture,c,"bump"),g._mirroredCameraPosition?c.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):c.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&r.RefractionTextureEnabled)){let N=1;if(this._refractionTexture.isCube||(c.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(N=this._refractionTexture.depth)),c.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,N,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){const se=this._refractionTexture;c.updateVector3("vRefractionPosition",se.boundingBoxPosition),c.updateVector3("vRefractionSize",se.boundingBoxSize)}}this.pointsCloud&&c.updateFloat("pointSize",this.pointSize),c.updateColor4("vSpecularColor",this.specularColor,this.specularPower),c.updateColor3("vEmissiveColor",r.EmissiveTextureEnabled?this.emissiveColor:ee.BlackReadOnly),c.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),g.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),c.updateColor3("vAmbientColor",this._globalAmbientColor)}g.texturesEnabled&&(this._diffuseTexture&&r.DiffuseTextureEnabled&&i.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&r.AmbientTextureEnabled&&i.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&r.OpacityTextureEnabled&&i.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&r.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?i.setTexture("reflectionCubeSampler",this._reflectionTexture):i.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&r.EmissiveTextureEnabled&&i.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&r.LightmapTextureEnabled&&i.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&r.SpecularTextureEnabled&&i.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&g.getEngine().getCaps().standardDerivatives&&r.BumpTextureEnabled&&i.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&r.RefractionTextureEnabled&&(this._refractionTexture.isCube?i.setTexture("refractionCubeSampler",this._refractionTexture):i.setTexture("refraction2DSampler",this._refractionTexture))),this.get
12Scene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(t)&&this.getScene().depthPeelingRenderer.bind(i),this._eventInfo.subMesh=C,this._callbackPluginEventBindForSubMesh(this._eventInfo),fr(i,this,g),this.bindEyePosition(i)}else B&&(this._needToBindSceneUbo=!0);(te||!this.isFrozen||B)&&g.lightsEnabled&&!this._disableLighting&&hr(g,t,i,R,this._maxSimultaneousLights),(te||!this.isFrozen)&&((g.fogEnabled&&t.applyFog&&g.fogMode!==Ca.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||t.receiveShadows||R.PREPASS||R.CLUSTLIGHT_BATCH)&&this.bindView(i),_r(g,t,i),R.NUM_MORPH_INFLUENCERS&&cr(t,i),R.BAKED_VERTEX_ANIMATION_TEXTURE&&t.bakedVertexAnimationManager?.bind(i,R.INSTANCES),this.useLogarithmicDepth&&dr(R,i,g),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(t,this._activeEffect,C),c.update()}getAnimatables(){const e=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&e.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&e.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&e.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&e.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&e.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&e.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&e.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&e.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&e.push(this._refractionTexture),e}getActiveTextures(){const e=super.getActiveTextures();return this._diffuseTexture&&e.push(this._diffuseTexture),this._ambientTexture&&e.push(this._ambientTexture),this._opacityTexture&&e.push(this._opacityTexture),this._reflectionTexture&&e.push(this._reflectionTexture),this._emissiveTexture&&e.push(this._emissiveTexture),this._specularTexture&&e.push(this._specularTexture),this._bumpTexture&&e.push(this._bumpTexture),this._lightmapTexture&&e.push(this._lightmapTexture),this._refractionTexture&&e.push(this._refractionTexture),e}hasTexture(e){return!!(super.hasTexture(e)||this._diffuseTexture===e||this._ambientTexture===e||this._opacityTexture===e||this._reflectionTexture===e||this._emissiveTexture===e||this._specularTexture===e||this._bumpTexture===e||this._lightmapTexture===e||this._refractionTexture===e)}dispose(e,t){t&&(this._diffuseTexture?.dispose(),this._ambientTexture?.dispose(),this._opacityTexture?.dispose(),this._reflectionTexture?.dispose(),this._emissiveTexture?.dispose(),this._specularTexture?.dispose(),this._bumpTexture?.dispose(),this._lightmapTexture?.dispose(),this._refractionTexture?.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(e,t)}clone(e,t=!0,C=""){const g=ae.Clone(()=>new r(e,this.getScene()),this,{cloneTexturesOnlyOnce:t});return g.name=e,g.id=e,this.stencil.copyTo(g.stencil),this._clonePlugins(g,C),g}static Parse(e,t,C){const g=ae.Parse(()=>new r(e.name,t),e,t,C);return e.stencil&&g.stencil.parse(e.stencil,t,C),pe._ParsePlugins(e,g,t,C),g}static get DiffuseTextureEnabled(){return I.DiffuseTextureEnabled}static set DiffuseTextureEnabled(e){I.DiffuseTextureEnabled=e}static get DetailTextureEnabled(){return I.DetailTextureEnabled}static set DetailTextureEnabled(e){I.DetailTextureEnabled=e}static get AmbientTextureEnabled(){return I.AmbientTextureEnabled}static set AmbientTextureEnabled(e){I.AmbientTextureEnabled=e}static get OpacityTextureEnabled(){return I.OpacityTextureEnabled}static set OpacityTextureEnabled(e){I.OpacityTextureEnabled=e}static get ReflectionTextureEnabled(){return I.ReflectionTextureEnabled}static set ReflectionTextureEnabled(e){I.ReflectionTextureEnabled=e}static get EmissiveTextureEnabled(){return I.EmissiveTextureEnabled}static set EmissiveTextureEnabled(e){I.EmissiveTextureEnabled=e}static get SpecularTextureEnabled(){return I.SpecularTextureEnabled}static set SpecularTextureEnabled(e){I.SpecularTextureEnabled=e}static get BumpTextureEnabled(){return I.BumpTextureEnabled}static set BumpTextureEnabled(e){I.BumpTextureEnabled=e}static get LightmapTextureEnabled(){return I.LightmapTextureEnabled}static set LightmapTextureEnabled(e){I.LightmapTextureEnabled=e}static get RefractionTextureEnabled(){return I.RefractionTextureEnabled}static set RefractionTextureEnabled(e){I.RefractionTextureEnabled=e}static get ColorGradingTextureEnabled(){return I.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(e){I.ColorGradingTextureEnabled=e}static get FresnelEnabled(){return I.FresnelEnabled}static set FresnelEnabled(e){I.FresnelEnabled=e}},a=new WeakMap,n=new WeakMap,l=new WeakMap,u=new WeakMap,S=new WeakMap,d=new WeakMap,m=new WeakMap,v=new WeakMap,p=new WeakMap,b=new WeakMap,F=new WeakMap,D=new WeakMap,O=new WeakMap,_=new WeakMap,P=new WeakMap,L=new WeakMap,U=new WeakMap,G=new WeakMap,W=new WeakMap,X=new WeakMap,q=new WeakMap,K=new WeakMap,y=new WeakMap,h=new WeakMap,M=new WeakMap,z=new WeakMap,re=new WeakMap,le=new WeakMap,ne=new WeakMap,oe=new WeakMap,ue=new WeakMap,fe=new WeakMap,(()=>{const f=typeof Symbol=="function"&&Symbol.metadata?Object.create(Ee[Symbol.metadata]??null):void 0;Pe=[H("diffuseTexture")],ve=[E("_markAllSubMeshesAsTexturesAndMiscDirty")],be=[H("ambientTexture")],Fe=[E("_markAllSubMeshesAsTexturesDirty")],Oe=[H("opacityTexture")],ke=[E("_markAllSubMeshesAsTexturesAndMiscDirty")],ze=[H("reflectionTexture")],He=[E("_markAllSubMeshesAsTexturesDirty")],Xe=[H("emissiveTexture")],Ze=[E("_markAllSubMeshesAsTexturesDirty")],Ke=[H("specularTexture")],et=[E("_markAllSubMeshesAsTexturesDirty")],it=[H("bumpTexture")],lt=[E("_markAllSubMeshesAsTexturesDirty")],ut=[H("lightmapTexture")],_t=[E("_markAllSubMeshesAsTexturesDirty")],mt=[H("refractionTexture")],Tt=[E("_markAllSubMeshesAsTexturesDirty")],Pt=[de("ambient")],vt=[de("diffuse")],bt=[de("specular")],Ft=[de("emissive")],Ot=[A()],kt=[A("useAlphaFromDiffuseTexture")],zt=[E("_markAllSubMeshesAsTexturesAndMiscDirty")],Ht=[A("useEmissiveAsIllumination")],Xt=[E("_markAllSubMeshesAsTexturesDirty")],Zt=[A("linkEmissiveWithDiffuse")],Kt=[E("_markAllSubMeshesAsTexturesDirty")],es=[A("useSpecularOverAlpha")],is=[E("_markAllSubMeshesAsTexturesDirty")],ls=[A("useReflectionOverAlpha")],us=[E("_markAllSubMeshesAsTexturesDirty")],_s=[A("disableLighting")],ms=[E("_markAllSubMeshesAsLightsDirt
12y")],Ts=[A("useObjectSpaceNormalMap")],Ps=[E("_markAllSubMeshesAsTexturesDirty")],vs=[A("useParallax")],bs=[E("_markAllSubMeshesAsTexturesDirty")],Fs=[A("useParallaxOcclusion")],Os=[E("_markAllSubMeshesAsTexturesDirty")],ks=[A()],zs=[A("roughness")],Hs=[E("_markAllSubMeshesAsTexturesDirty")],Xs=[A()],Zs=[A()],Ks=[A()],ei=[A("useLightmapAsShadowmap")],ii=[E("_markAllSubMeshesAsTexturesDirty")],li=[ie("diffuseFresnelParameters")],ui=[E("_markAllSubMeshesAsFresnelDirty")],_i=[ie("opacityFresnelParameters")],mi=[E("_markAllSubMeshesAsFresnelAndMiscDirty")],Ti=[ie("reflectionFresnelParameters")],Pi=[E("_markAllSubMeshesAsFresnelDirty")],vi=[ie("refractionFresnelParameters")],bi=[E("_markAllSubMeshesAsFresnelDirty")],Fi=[ie("emissiveFresnelParameters")],Oi=[E("_markAllSubMeshesAsFresnelDirty")],ki=[A("useReflectionFresnelFromSpecular")],zi=[E("_markAllSubMeshesAsFresnelDirty")],Hi=[A("useGlossinessFromSpecularMapAlpha")],Xi=[E("_markAllSubMeshesAsTexturesDirty")],Zi=[A("maxSimultaneousLights")],Ki=[E("_markAllSubMeshesAsLightsDirty")],ea=[A("invertNormalMapX")],ia=[E("_markAllSubMeshesAsTexturesDirty")],la=[A("invertNormalMapY")],ua=[E("_markAllSubMeshesAsTexturesDirty")],_a=[A("twoSidedLighting")],ma=[E("_markAllSubMeshesAsTexturesDirty")],Ta=[A("applyDecalMapAfterDetailMap")],Pa=[E("_markAllSubMeshesAsMiscDirty")],o(r,null,ve,{kind:"accessor",name:"diffuseTexture",static:!1,private:!1,access:{has:e=>"diffuseTexture"in e,get:e=>e.diffuseTexture,set:(e,t)=>{e.diffuseTexture=t}},metadata:f},Ie,Re),o(r,null,Fe,{kind:"accessor",name:"ambientTexture",static:!1,private:!1,access:{has:e=>"ambientTexture"in e,get:e=>e.ambientTexture,set:(e,t)=>{e.ambientTexture=t}},metadata:f},De,Ce),o(r,null,ke,{kind:"accessor",name:"opacityTexture",static:!1,private:!1,access:{has:e=>"opacityTexture"in e,get:e=>e.opacityTexture,set:(e,t)=>{e.opacityTexture=t}},metadata:f},Ue,Be),o(r,null,He,{kind:"accessor",name:"reflectionTexture",static:!1,private:!1,access:{has:e=>"reflectionTexture"in e,get:e=>e.reflectionTexture,set:(e,t)=>{e.reflectionTexture=t}},metadata:f},Ge,We),o(r,null,Ze,{kind:"accessor",name:"emissiveTexture",static:!1,private:!1,access:{has:e=>"emissiveTexture"in e,get:e=>e.emissiveTexture,set:(e,t)=>{e.emissiveTexture=t}},metadata:f},$e,qe),o(r,null,et,{kind:"accessor",name:"specularTexture",static:!1,private:!1,access:{has:e=>"specularTexture"in e,get:e=>e.specularTexture,set:(e,t)=>{e.specularTexture=t}},metadata:f},tt,st),o(r,null,lt,{kind:"accessor",name:"bumpTexture",static:!1,private:!1,access:{has:e=>"bumpTexture"in e,get:e=>e.bumpTexture,set:(e,t)=>{e.bumpTexture=t}},metadata:f},nt,ot),o(r,null,_t,{kind:"accessor",name:"lightmapTexture",static:!1,private:!1,access:{has:e=>"lightmapTexture"in e,get:e=>e.lightmapTexture,set:(e,t)=>{e.lightmapTexture=t}},metadata:f},ct,dt),o(r,null,Tt,{kind:"accessor",name:"refractionTexture",static:!1,private:!1,access:{has:e=>"refractionTexture"in e,get:e=>e.refractionTexture,set:(e,t)=>{e.refractionTexture=t}},metadata:f},xt,Et),o(r,null,zt,{kind:"accessor",name:"useAlphaFromDiffuseTexture",static:!1,private:!1,access:{has:e=>"useAlphaFromDiffuseTexture"in e,get:e=>e.useAlphaFromDiffuseTexture,set:(e,t)=>{e.useAlphaFromDiffuseTexture=t}},metadata:f},wt,Vt),o(r,null,Xt,{kind:"accessor",name:"useEmissiveAsIllumination",static:!1,private:!1,access:{has:e=>"useEmissiveAsIllumination"in e,get:e=>e.useEmissiveAsIllumination,set:(e,t)=>{e.useEmissiveAsIllumination=t}},metadata:f},jt,Yt),o(r,null,Kt,{kind:"accessor",name:"linkEmissiveWithDiffuse",static:!1,private:!1,access:{has:e=>"linkEmissiveWithDiffuse"in e,get:e=>e.linkEmissiveWithDiffuse,set:(e,t)=>{e.linkEmissiveWithDiffuse=t}},metadata:f},Qt,Jt),o(r,null,is,{kind:"accessor",name:"useSpecularOverAlpha",static:!1,private:!1,access:{has:e=>"useSpecularOverAlpha"in e,get:e=>e.useSpecularOverAlpha,set:(e,t)=>{e.useSpecularOverAlpha=t}},metadata:f},as,rs),o(r,null,us,{kind:"accessor",name:"useReflectionOverAlpha",static:!1,private:!1,access:{has:e=>"useReflectionOverAlpha"in e,get:e=>e.useReflectionOverAlpha,set:(e,t)=>{e.useReflectionOverAlpha=t}},metadata:f},fs,hs),o(r,null,ms,{kind:"accessor",name:"disableLighting",static:!1,private:!1,access:{has:e=>"disableLighting"in e,get:e=>e.disableLighting,set:(e,t)=>{e.disableLighting=t}},metadata:f},ps,gs),o(r,null,Ps,{kind:"accessor",name:"useObjectSpaceNormalMap",static:!1,private:!1,access:{has:e=>"useObjectSpaceNormalMap"in e,get:e=>e.useObjectSpaceNormalMap,set:(e,t)=>{e.useObjectSpaceNormalMap=t}},metadata:f},As,Ss),o(r,null,bs,{kind:"accessor",name:"useParallax",static:!1,private:!1,access:{has:e=>"useParallax"in e,get:e=>e.useParallax,set:(e,t)=>{e.useParallax=t}},metadata:f},Ms,Ls),o(r,null,Os,{kind:"accessor",name:"useParallaxOcclusion",static:!1,private:!1,access:{has:e=>"useParallaxOcclusion"in e,get:e=>e.useParallaxOcclusion,set:(e,t)=>{e.useParallaxOcclusion=t}},metadata:f},Ns,ys),o(r,null,Hs,{kind:"accessor",name:"roughness",static:!1,private:!1,access:{has:e=>"roughness"in e,get:e=>e.roughness,set:(e,t)=>{e.roughness=t}},metadata:f},Gs,Ws),o(r,null,ii,{kind:"accessor",name:"useLightmapAsShadowmap",static:!1,private:!1,access:{has:e=>"useLightmapAsShadowmap"in e,get:e=>e.useLightmapAsShadowmap,set:(e,t)=>{e.useLightmapAsShadowmap=t}},metadata:f},ai,ri),o(r,null,ui,{kind:"accessor",name:"diffuseFresnelParameters",static:!1,private:!1,access:{has:e=>"diffuseFresnelParameters"in e,get:e=>e.diffuseFresnelParameters,set:(e,t)=>{e.diffuseFresnelParameters=t}},metadata:f},fi,hi),o(r,null,mi,{kind:"accessor",name:"opacityFresnelParameters",static:!1,private:!1,access:{has:e=>"opacityFresnelParameters"in e,get:e=>e.opacityFresnelParameters,set:(e,t)=>{e.opacityFresnelParameters=t}},metadata:f},pi,gi),o(r,null,Pi,{kind:"accessor",name:"reflectionFresnelParameters",static:!1,private:!1,access:{has:e=>"reflectionFresnelParameters"in e,get:e=>e.reflectionFresnelParameters,set:(e,t)=>{e.reflectionFresnelParameters=t}},metadata:f},Ai,Si),o(r,null,bi,{kind:"accessor",name:"refractionFresnelParameters",static:!1,private:!1,access:{has:e=>"refractionFresnelParameters"in e,get:e=>e.refractionFresnelParameters,set:(e,t)=>{e.refractionFresnelParameters=t}},metadata:f},Mi,Li),o(r,null,Oi,{kind:"accessor",name:"emissiveFresnelParameters",static:!1,private:!1,access:{has:e=>"emissiveFresnelParameters"in e,get:e=>e.emissiveFresnelParameters,set:(e,t)=>{e.emissiveFresnelParameters=t}},metadata:f},Ni,yi),o(r,null,zi,{kind:"accessor",name:"useReflectionFresnelFromSpecular",static:!1,private:!1,access:{has:e=>"useReflectionFresnelFromSpecular"in e,get:e=>e.useReflectionFresnelFromSpecular,set:(e,t)=>{e.useReflectionFresnelFromSpecular=t}},metadata:f},wi,Vi),o(r,null,Xi,{kind:"accessor",name:"useGlossinessFromSpecularMapAlpha",static:!1,private:!1,access:{has:e=>"useGlossinessFromSpecularMapAlpha"in e,get:e=>e.useGlossinessFromSpecularMapAlpha,set:(e,t)=>{e.useGlossinessFromSpecularMapAlpha=t}},metadata:f},ji,Yi),o(r,null,Ki,{kind:"accessor",name:"maxSimultaneousLights",static:!1,private:!1,access:{has:e=>"maxSimultaneousLights"in e,get:e=>e.maxSimultaneousLights,set:(e,t)=>{e.maxSimultaneousLights=t}},metadata:f},Qi,Ji),o(r,null,ia,{kind:"accessor",name:"invertNormalMapX",static:!1,private:!1,access:{has:e=>"invertNormalMapX"in e,get:e=>e.invertNormalMapX,set:(e,t)=>{e.invertNormalMapX=t}},metadata:f},aa,ra),o(r,null,ua,{kind:"accessor",name:"invertNormalMapY",static:!1,private:!1,access:{has:e=>"invertNormalMapY"in e,get:e=>e.invertNormalMapY,set:(e,t)=>{e.invertNormalMapY=t}},metadata:f},fa,ha),o(r,null,ma,{kind:"accessor",name:"twoSidedLighting",static:!1,private:!1,access:{has:e=>"twoSidedLighting"in e,get:e=>e.twoSidedLighting,set:(e,t)=>{e.twoSidedLighting=t}},metadata:f},pa,ga),o(r,null,Pa,{kind:"accessor",name:"applyDecalMapAfterDetailMap",static:!1,private:!1,access:{has:e=>"applyDecalMapAfterDetailMap"in e,get:e=>e.applyDecalMapAfterDetailMap,set:(e,t)=>{e.applyDecalMapAfterDetailMap=t}},metadata:f},Aa,Sa),o(null,null,Pe,{kind:"field",name:"_diffuseTexture",static:!1,private:!1,access:{has:e=>"_diffuseTexture"in e,get:e=>e._diffuseTexture,set:(e,t)=>{e._diffuseTexture=t}},metadata:f},Ae,Se),o(null,null,be,{kind:"field",name:"_ambientTexture",static:!1,private:!1,access:{has:e=>"_ambientTexture"in e,get:e=>e._ambientTexture,set:(e,t)=>{e._ambientTexture=t}},metadata:f},Me,Le),o(null,null,Oe,{kind:"field",name:"_opacityTexture",static:!1,private:!1,access:{has:e=>"_opacityTexture"in e,get:e=>e._opacityTexture,set:(e,t)=>{e._opacityTexture=t}},metadata:f},Ne,ye),o(null,null,ze,{kind:"field",name:"_reflectionTexture",static:!1,private:!1,access:{has:e=>"_reflectionTexture"in e,get:e=>e._reflectionTexture,set:(e,t)=>{e._reflectionTexture=t}},metadata:f},we,Ve),o(null,null,Xe,{kind:"field",name:"_emissiveTexture",static:!1,private:!1,access:{has:e=>"_emissiveTexture"in e,get:e=>e._emissiveTexture,set:(e,t)=>{e._emissiveTexture=t}},metadata:f},je,Ye),o(null,null,Ke,{kind:"field",name:"_specularTexture",static:!1,private:!1,access:{has:e=>"_specularTexture"in e,get:e=>e._specularTexture,set:(e,t)=>{e._specularTexture=t}},metadata:f},Qe,Je),o(null,null,it,{kind:"field",name:"_bumpTexture",static:!1,private:!1,access:{has:e=>"_bumpTexture"in e,get:e=>e._bumpTexture,set:(e,t)=>{e._bumpTexture=t}},metadata:f},at,rt),o(null,null,ut,{kind:"field",name:"_lightmapTexture",static:!1,private:!1,access:{has:e=>"_lightmapTexture"in e,get:e=>e._lightmapTexture,set:(e,t)=>{e._lightmapTexture=t}},metadata:f},ft,ht),o(null,null,mt,{kind:"field",name:"_refractionTexture",static:!1,private:!1,access:{has:e=>"_refractionTexture"in e,get:e=>e._refractionTexture,set:(e,t)=>{e._refractionTexture=t}},metadata:f},pt,gt),o(null,null,Pt,{kind:"field",name:"ambientColor",static:!1,private:!1,access:{has:e=>"ambientColor"in e,get:e=>e.ambientColor,set:(e,t)=>{e.ambientColor=t}},metadata:f},At,St),o(null,null,vt,{kind:"field",name:"diffuseColor",static:!1,private:!1,access:{has:e=>"diffuseColor"in e,get:e=>e.diffuseColor,set:(e,t)=>{e.diffuseColor=t}},metadata:f},It,Rt),o(null,null,bt,{kind:"field",name:"specularColor",static:!1,private:!1,access:{has:e=>"specularColor"in e,get:e=>e.specularColor,set:(e,t)=>{e.specularColor=t}},metadata:f},Mt,Lt),o(null,null,Ft,{kind:"field",name:"emissiveColor",static:!1,private:!1,access:{has:e=>"emissiveColor"in e,get:e=>e.emissiveColor,set:(e,t)=>{e.emissiveColor=t}},metadata:f},Dt,Ct),o(null,null,Ot,{kind:"field",name:"specularPower",static:!1,private:!1,access:{has:e=>"specularPower"in e,get:e=>e.specularPower,set:(e,t)=>{e.specularPower=t}},metadata:f},Nt,yt),o(null,null,kt,{kind:"field",name:"_useAlphaFromDiffuseTexture",static:!1,private:!1,access:{has:e=>"_useAlphaFromDiffuseTexture"in e,get:e=>e._useAlphaFromDiffuseTexture,set:(e,t)=>{e._useAlphaFromDiffuseTexture=t}},metadata:f},Ut,Bt),o(null,null,Ht,{kind:"field",name:"_useEmissiveAsIllumination",static:!1,private:!1,access:{has:e=>"_useEmissiveAsIllumination"in e,get:e=>e._useEmissiveAsIllumination,set:(e,t)=>{e._useEmissiveAsIllumination=t}},metadata:f},Gt,Wt),o(null,null,Zt,{kind:"field",name:"_linkEmissiveWithDiffuse",static:!1,private:!1,access:{has:e=>"_linkEmissiveWithDiffuse"in e,get:e=>e._linkEmissiveWithDiffuse,set:(e,t)=>{e._linkEmissiveWithDiffuse=t}},metadata:f},$t,qt),o(null,null,es,{kind:"field",name:"_useSpecularOverAlpha",static:!1,private:!1,access:{has:e=>"_useSpecularOverAlpha"in e,get:e=>e._useSpecularOverAlpha,set:(e,t)=>{e._useSpecularOverAlpha=t}},metadata:f},ts,ss),o(null,null,ls,{kind:"field",name:"_useReflectionOverAlpha",static:!1,private:!1,access:{has:e=>"_useReflectionOverAlpha"in e,get:e=>e._useReflectionOverAlpha,set:(e,t)=>{e._useReflectionOverAlpha=t}},metadata:f},ns,os),o(null,null,_s,{kind:"field",name:"_disableLighting",static:!1,private:!1,access:{has:e=>"_disableLighting"in e,get:e=>e._disableLighting,set:(e,t)=>{e._disableLighting=t}},metadata:f},cs,ds),o(null,null,Ts,{kind:"field",name:"_useObjectSpaceNormalMap",static:!1,private:!1,access:{has:e=>"_useObjectSpaceNormalMap"in e,get:e=>e._useObjectSpaceNormalMap,set:(e,t)=>{e._useObjectSpaceNormalMap=t}},metadata:f},xs,Es),o(null,null,vs,{kind:"field",name:"_useParallax",static:!1,private:!1,access:{has:e=>"_useParallax"in e,get:e=>e._useParallax,set:(e,t)=>{e._useParallax=t}},metadata:f},Is,Rs),o(null,null,Fs,{kind:"field",name:"_useParallaxOcclusion",static:!1,private:!1,access:{has:e=>"_useParallaxOcclusion"in e,get:e=>e._useParallaxOcclusion,set:(e,t)=>{e._useParallaxOcclusion=t}},metadata:f},Ds,Cs),o(null,null,ks,{kind:"field",name:"parallaxScaleBias",static:!1,private:!1,access:{has:e=>"parallaxScaleBias"in e,get:e=>e.parallaxScaleBias,set:(e,t)=>{e.parallaxScaleBias=t}},metadata:f},Us,Bs),o(null,null,zs,{kind:"field",name:"_roughness",static:!1,private:!1,access:{has:e=>"_roughness"in e,get:e=>e._roughness,set:(e,t)=>{e._roughness=t}},metadata:f},ws,Vs),o(null,null,Xs,{kind:"field",name:"indexOfRefraction",static:!1,private:!1,access:{has:e=>"indexOfRefraction"in e,get:e=>e.indexOfRefraction,set:(e,t)=>{e.indexOfRefraction=t}},metadata:f},js,Ys),o(null,null,Zs,{kind:"field",name:"invertRefractionY",static:!1,private:!1,access:{has:e=>
12"invertRefractionY"in e,get:e=>e.invertRefractionY,set:(e,t)=>{e.invertRefractionY=t}},metadata:f},$s,qs),o(null,null,Ks,{kind:"field",name:"alphaCutOff",static:!1,private:!1,access:{has:e=>"alphaCutOff"in e,get:e=>e.alphaCutOff,set:(e,t)=>{e.alphaCutOff=t}},metadata:f},Qs,Js),o(null,null,ei,{kind:"field",name:"_useLightmapAsShadowmap",static:!1,private:!1,access:{has:e=>"_useLightmapAsShadowmap"in e,get:e=>e._useLightmapAsShadowmap,set:(e,t)=>{e._useLightmapAsShadowmap=t}},metadata:f},ti,si),o(null,null,li,{kind:"field",name:"_diffuseFresnelParameters",static:!1,private:!1,access:{has:e=>"_diffuseFresnelParameters"in e,get:e=>e._diffuseFresnelParameters,set:(e,t)=>{e._diffuseFresnelParameters=t}},metadata:f},ni,oi),o(null,null,_i,{kind:"field",name:"_opacityFresnelParameters",static:!1,private:!1,access:{has:e=>"_opacityFresnelParameters"in e,get:e=>e._opacityFresnelParameters,set:(e,t)=>{e._opacityFresnelParameters=t}},metadata:f},ci,di),o(null,null,Ti,{kind:"field",name:"_reflectionFresnelParameters",static:!1,private:!1,access:{has:e=>"_reflectionFresnelParameters"in e,get:e=>e._reflectionFresnelParameters,set:(e,t)=>{e._reflectionFresnelParameters=t}},metadata:f},xi,Ei),o(null,null,vi,{kind:"field",name:"_refractionFresnelParameters",static:!1,private:!1,access:{has:e=>"_refractionFresnelParameters"in e,get:e=>e._refractionFresnelParameters,set:(e,t)=>{e._refractionFresnelParameters=t}},metadata:f},Ii,Ri),o(null,null,Fi,{kind:"field",name:"_emissiveFresnelParameters",static:!1,private:!1,access:{has:e=>"_emissiveFresnelParameters"in e,get:e=>e._emissiveFresnelParameters,set:(e,t)=>{e._emissiveFresnelParameters=t}},metadata:f},Di,Ci),o(null,null,ki,{kind:"field",name:"_useReflectionFresnelFromSpecular",static:!1,private:!1,access:{has:e=>"_useReflectionFresnelFromSpecular"in e,get:e=>e._useReflectionFresnelFromSpecular,set:(e,t)=>{e._useReflectionFresnelFromSpecular=t}},metadata:f},Ui,Bi),o(null,null,Hi,{kind:"field",name:"_useGlossinessFromSpecularMapAlpha",static:!1,private:!1,access:{has:e=>"_useGlossinessFromSpecularMapAlpha"in e,get:e=>e._useGlossinessFromSpecularMapAlpha,set:(e,t)=>{e._useGlossinessFromSpecularMapAlpha=t}},metadata:f},Gi,Wi),o(null,null,Zi,{kind:"field",name:"_maxSimultaneousLights",static:!1,private:!1,access:{has:e=>"_maxSimultaneousLights"in e,get:e=>e._maxSimultaneousLights,set:(e,t)=>{e._maxSimultaneousLights=t}},metadata:f},$i,qi),o(null,null,ea,{kind:"field",name:"_invertNormalMapX",static:!1,private:!1,access:{has:e=>"_invertNormalMapX"in e,get:e=>e._invertNormalMapX,set:(e,t)=>{e._invertNormalMapX=t}},metadata:f},ta,sa),o(null,null,la,{kind:"field",name:"_invertNormalMapY",static:!1,private:!1,access:{has:e=>"_invertNormalMapY"in e,get:e=>e._invertNormalMapY,set:(e,t)=>{e._invertNormalMapY=t}},metadata:f},na,oa),o(null,null,_a,{kind:"field",name:"_twoSidedLighting",static:!1,private:!1,access:{has:e=>"_twoSidedLighting"in e,get:e=>e._twoSidedLighting,set:(e,t)=>{e._twoSidedLighting=t}},metadata:f},ca,da),o(null,null,Ta,{kind:"field",name:"_applyDecalMapAfterDetailMap",static:!1,private:!1,access:{has:e=>"_applyDecalMapAfterDetailMap"in e,get:e=>e._applyDecalMapAfterDetailMap,set:(e,t)=>{e._applyDecalMapAfterDetailMap=t}},metadata:f},xa,Ea),f&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f})})(),r.ForceGLSL=!1,r})(),Da=!1;function Dr(){Da||(Da=!0,Ga(),wa("BABYLON.StandardMaterial",ge),Ca.DefaultMaterialFactory=r=>new ge("default material",r))}Object.getOwnPropertyDescriptor(ge.prototype,"decalMap")||Object.defineProperty(ge.prototype,"decalMap",Va("StandardMaterial","decalMap"));Dr();export{Dr as RegisterStandardMaterial,ge as StandardMaterial,Lr as StandardMaterialDefines};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.