1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default.vertex-BjF7oTbf.js","assets/decorators.serialization-C7d7ykGG.js","assets/math.vector-C1xyPDEl.js","assets/math.scalar.functions-DkeaWAWz.js","assets/bufferUtils-DTRdUD8L.js","assets/math.color-CzLaKyb6.js","assets/defaultUboDeclaration-BqLi0jLJ.js","assets/logDepthDeclaration-BahBC74I.js","assets/shadowsVertex-W9Tk-KEX.js","assets/helperFunctions-BABR42FV.js","assets/vertexColorMixing-CgTbWJSl.js","assets/mainUVVaryingDeclaration-YQtIvosf.js","assets/bumpVertex-y3qwldQE.js","assets/fogVertex-C2jSPOsq.js","assets/logDepthVertex-gbg7kMkf.js","assets/default.fragment-Bb_BTeNi.js","assets/oitFragment-DNEMyAe0.js","assets/lightFragment-ClM-ApZF.js","assets/fogFragment-iUGZBHjw.js","assets/logDepthFragment-BaiKWVSS.js","assets/default.vertex-DiQ08ICb.js","assets/shadowsVertex-jmX9sas9.js","assets/defaultUboDeclaration-C5BEbmFx.js","assets/logDepthDeclaration-HIOxXXVm.js","assets/helperFunctions-WQmx9NIl.js","assets/vertexColorMixing-BjQhKycb.js","assets/mainUVVaryingDeclaration-Bkedw8oi.js","assets/bumpVertex-DOUDqzHj.js","assets/fogVertex-BALyqiCG.js","assets/logDepthVertex-D80sdmdR.js","assets/default.fragment-Ckd3Iatj.js","assets/oitFragment-CYzaVm1Y.js","assets/lightFragment-Bp8Q44Mc.js","assets/fogFragment-BipfZYze.js","assets/logDepthFragment-BWY-hMrf.js"])))=>i.map(i=>d[i]); 2import{_ as b}from"./index-Bc7OztLw.js";import{_ as s,i as _,q as n,d as F,s as h,r as I}from"./bufferUtils-DTRdUD8L.js";import{a as w}from"./smartArray-CO6iJ0u5.js";import{I as N,S as G}from"./scene-gn_hoGMy.js";import{Color3 as A}from"./math.color-CzLaKyb6.js";import{V as v}from"./buffer-DqKlo1ts.js";import{P as H,M as y,I as Y,a as W,U as z,b as j}from"./imageProcessing-2WziWti-.js";import{M,g as K,h as Z,i as Q,j as J,k as R,l as q,m as $,n as ee,o as te,H as ie,p as se,q as re,r as ae,s as oe,t as ne,u as le,A as ue,v as fe,c as he,w as P,x as pe,d as Te,y as Ee,e as de,f as me,z as f}from"./material-CrEsrP1R.js";import{E as _e,B as ce,P as Ae}from"./pushMaterial-B8MG1fVH.js";import{R as xe}from"./math.scalar.functions-DkeaWAWz.js";import{D as Re}from"./material.detailMapConfiguration-D1Pl6X8T.js";import{S as k}from"./decorators.serialization-C7d7ykGG.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";const D={effect:null,subMesh:null};class Pe extends z(j){}class Se extends Y(Pe){constructor(t){super(t),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_
2UV=!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.PREPASS=!1,this.PREPASS_COLOR=!1,this.PREPASS_COLOR_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,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.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.rebuild()}}class Ie extends W(Ae){}class i extends Ie{get isPrePassCapable(){return!this.disableDepthWrite}get canRenderToMRT(){return!0}constructor(t,a,p=!1){super(t,a,void 0,p||i.ForceGLSL),this._diffuseTexture=null,this._ambientTexture=null,this._opacityTexture=null,this._reflectionTexture=null,this._emissiveTexture=null,this._specularTexture=null,this._bumpTexture=null,this._lightmapTexture=null,this._refractionTexture=null,this.ambientColor=new A(0,0,0),this.diffuseColor=new A(1,1,1),this.specularColor=new A(1,1,1),this.emissiveColor=new A(0,0,0),this.specularPower=64,this._useAlphaFromDiffuseTexture=!1,this._useEmissiveAsIllumination=!1,this._linkEmissiveWithDiffuse=!1,this._useSpecularOverAlpha=!1,this._useReflectionOverAlpha=!1,this._disableLighting=!1,this._useObjectSpaceNormalMap=!1,this._useParallax=!1,this._useParallaxOcclusion=!1,this.parallaxScaleBias=.05,this._roughness=0,this.indexOfRefraction=.98,this.invertRefractionY=!0,this.alphaCutOff=.4,this._useLightmapAsShadowmap=!1,this._useReflectionFresnelFromSpecular=!1,this._useGlossinessFromSpecularMapAlpha=!1,this._maxSimultaneousLights=4,this._invertNormalMapX=!1,this._invertNormalMapY=!1,this._twoSidedLighting=!1,this._applyDecalMapAfterDetailMap=!1,this._shadersLoaded=!1,this._renderTargets=new w(16),this._globalAmbientColor=new A(0,0,0),this._cacheHasRenderTargetTextures=!1,this.detailMap=new Re(this),this._attachImageProcessingConfiguration(null),this.prePassConfiguration=new H,this.getRenderTargetTextures=()=>(this._renderTargets.reset(),i.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget&&this._renderTargets.push(this._reflectionTexture),i.RefractionTextureEnabled&&this._refractionTexture&&this._refractionTexture.isRenderTarget&&this._renderTargets.push(this._refractionTexture),this._eventInfo.renderTargets=this._renderTargets,this._callbackPluginEventFillRenderTargetTextures(this._eventInfo),this._renderTargets)}get hasRenderTargetTextures(){return i.ReflectionTextureEnabled&&this._reflectionTexture&&this._reflectionTexture.isRenderTarget||i.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()&&
vendor: 9,379 bytes, line 2
2(this._transparencyMode==null||this._transparencyMode===M.MATERIAL_ALPHATEST)}_shouldUseAlphaFromDiffuseTexture(){return this._diffuseTexture!=null&&this._diffuseTexture.hasAlpha&&this._useAlphaFromDiffuseTexture&&this._transparencyMode!==M.MATERIAL_OPAQUE}_hasAlphaChannel(){return this._diffuseTexture!=null&&this._diffuseTexture.hasAlpha||this._opacityTexture!=null}getAlphaTestTexture(){return this._diffuseTexture}isReadyForSubMesh(t,a,p=!1){this._uniformBufferLayoutBuilt||this.buildUniformLayout();const o=a._drawWrapper;if(o.effect&&this.isFrozen&&o._wasPreviouslyReady&&o._wasPreviouslyUsingInstances===p)return!0;a.materialDefines||(this._callbackPluginEventGeneric(4,this._eventInfo),a.materialDefines=new Se(this._eventInfo.defineNames));const l=this.getScene(),e=a.materialDefines;if(this._isReadyForSubMesh(a))return!0;const d=l.getEngine();e._needNormals=K(l,t,e,!0,this._maxSimultaneousLights,this._disableLighting),Z(l,e);const c=this.needAlphaBlendingForMesh(t)&&this.getScene().useOrderIndependentTransparency;if(Q(l,e,this.canRenderToMRT&&!c),J(l,e,c),y.PrepareDefines(d.currentRenderPassId,t,e),e._areTexturesDirty){this._eventInfo.hasRenderTargetTextures=!1,this._callbackPluginEventHasRenderTargetTextures(this._eventInfo),this._cacheHasRenderTargetTextures=this._eventInfo.hasRenderTargetTextures,e._needUVs=!1;for(let T=1;T<=6;++T)e["MAINUV"+T]=!1;if(l.texturesEnabled){if(e.DIFFUSEDIRECTUV=0,e.BUMPDIRECTUV=0,e.AMBIENTDIRECTUV=0,e.OPACITYDIRECTUV=0,e.EMISSIVEDIRECTUV=0,e.SPECULARDIRECTUV=0,e.LIGHTMAPDIRECTUV=0,this._diffuseTexture&&i.DiffuseTextureEnabled)if(this._diffuseTexture.isReadyOrNotBlocking())R(this._diffuseTexture,e,"DIFFUSE");else return!1;else e.DIFFUSE=!1;if(this._ambientTexture&&i.AmbientTextureEnabled)if(this._ambientTexture.isReadyOrNotBlocking())R(this._ambientTexture,e,"AMBIENT");else return!1;else e.AMBIENT=!1;if(this._opacityTexture&&i.OpacityTextureEnabled)if(this._opacityTexture.isReadyOrNotBlocking())R(this._opacityTexture,e,"OPACITY"),e.OPACITYRGB=this._opacityTexture.getAlphaFromRGB;else return!1;else e.OPACITY=!1;if(this._reflectionTexture&&i.ReflectionTextureEnabled?(e.ROUGHNESS=this._roughness>0,e.REFLECTIONOVERALPHA=this._useReflectionOverAlpha):(e.ROUGHNESS=!1,e.REFLECTIONOVERALPHA=!1),!q(l,this._reflectionTexture,e))return!1;if(this._emissiveTexture&&i.EmissiveTextureEnabled)if(this._emissiveTexture.isReadyOrNotBlocking())R(this._emissiveTexture,e,"EMISSIVE");else return!1;else e.EMISSIVE=!1;if(this._lightmapTexture&&i.LightmapTextureEnabled)if(this._lightmapTexture.isReadyOrNotBlocking())R(this._lightmapTexture,e,"LIGHTMAP"),e.USELIGHTMAPASSHADOWMAP=this._useLightmapAsShadowmap,e.RGBDLIGHTMAP=this._lightmapTexture.isRGBD;else return!1;else e.LIGHTMAP=!1;if(this._specularTexture&&i.SpecularTextureEnabled)if(this._specularTexture.isReadyOrNotBlocking())R(this._specularTexture,e,"SPECULAR"),e.GLOSSINESS=this._useGlossinessFromSpecularMapAlpha;else return!1;else e.SPECULAR=!1;if(l.getEngine().getCaps().standardDerivatives&&this._bumpTexture&&i.BumpTextureEnabled){if(this._bumpTexture.isReady())R(this._bumpTexture,e,"BUMP"),e.PARALLAX=this._useParallax,e.PARALLAX_RHS=l.useRightHandedSystem,e.PARALLAXOCCLUSION=this._useParallaxOcclusion;else return!1;e.OBJECTSPACE_NORMALMAP=this._useObjectSpaceNormalMap}else e.BUMP=!1,e.PARALLAX=!1,e.PARALLAX_RHS=!1,e.PARALLAXOCCLUSION=!1;if(this._refractionTexture&&i.RefractionTextureEnabled)if(this._refractionTexture.isReadyOrNotBlocking())e._needUVs=!0,e.REFRACTION=!0,e.REFRACTIONMAP_3D=this._refractionTexture.isCube,e.RGBDREFRACTION=this._refractionTexture.isRGBD,e.USE_LOCAL_REFRACTIONMAP_CUBIC=!!this._refractionTexture.boundingBoxSize;else return!1;else e.REFRACTION=!1;e.TWOSIDEDLIGHTING=!this._backFaceCulling&&this._twoSidedLighting}else e.DIFFUSE=!1,e.AMBIENT=!1,e.OPACITY=!1,e.REFLECTION=!1,e.EMISSIVE=!1,e.LIGHTMAP=!1,e.BUMP=!1,e.REFRACTION=!1;e.ALPHAFROMDIFFUSE=this._shouldUseAlphaFromDiffuseTexture(),e.EMISSIVEASILLUMINATION=this._useEmissiveAsIllumination,e.LINKEMISSIVEWITHDIFFUSE=this._linkEmissiveWithDiffuse,e.SPECULAROVERALPHA=this._useSpecularOverAlpha,e.PREMULTIPLYALPHA=this.alphaMode===7||this.alphaMode===8,e.ALPHATEST_AFTERALLALPHACOMPUTATIONS=this.transparencyMode!==null,e.ALPHABLEND=this.transparencyMode===null||this.needAlphaBlendingForMesh(t)}if(this._eventInfo.isReadyForSubMesh=!0,this._eventInfo.defines=e,this._eventInfo.subMesh=a,this._callbackPluginEventIsReadyForSubMesh(this._eventInfo),!this._eventInfo.isReadyForSubMesh)return!1;if(e._areImageProcessingDirty&&this._imageProcessingConfiguration){if(!this._imageProcessingConfiguration.isReady())return!1;this._imageProcessingConfiguration.prepareDefines(e),e.IS_REFLECTION_LINEAR=this.reflectionTexture!=null&&!this.reflectionTexture.gammaSpace,e.IS_REFRACTION_LINEAR=this.refractionTexture!=null&&!this.refractionTexture.gammaSpace}if(e._areFresnelDirty&&(i.FresnelEnabled?(this._diffuseFresnelParameters||this._opacityFresnelParameters||this._emissiveFresnelParameters||this._refractionFresnelParameters||this._reflectionFresnelParameters)&&(e.DIFFUSEFRESNEL=this._diffuseFresnelParameters&&this._diffuseFresnelParameters.isEnabled,e.OPACITYFRESNEL=this._opacityFresnelParameters&&this._opacityFresnelParameters.isEnabled,e.REFLECTIONFRESNEL=this._reflectionFresnelParameters&&this._reflectionFresnelParameters.isEnabled,e.REFLECTIONFRESNELFROMSPECULAR=this._useReflectionFresnelFromSpecular,e.REFRACTIONFRESNEL=this._refractionFresnelParameters&&this._refractionFresnelParameters.isEnabled,e.EMISSIVEFRESNEL=this._emissiveFresnelParameters&&this._emissiveFresnelParameters.isEnabled,e._needNormals=!0,e.FRESNEL=!0):e.FRESNEL=!1),e.AREALIGHTUSED||e.CLUSTLIGHT_BATCH){for(let T=0;T<t.lightSources.length;T++)if(!t.lightSources[T]._isReady())return!1}$(t,l,this._useLogarithmicDepth,this.pointsCloud,this.fogEnabled,this.needAlphaTestingForMesh(t),e,this._applyDecalMapAfterDetailMap,this._useVertexPulling,a.getRenderingMesh(),this._isVertexOutputInvariant),ee(l,d,this,e,p,null,a.getRenderingMesh().hasThinInstances),this._eventInfo.defines=e,this._eventInfo.mesh=t,this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo),te(t,e,!0,!0,!0),this._callbackPluginEventPrepareDefines(this._eventInfo);let r=!1;if(e.isDirty){const T=e._areLightsDisposed;e.markAsProcessed();const u=new _e;e.REFLECTION&&u.addFallback(0,"REFLECTION"),e.SPECULAR&&u.addFallback(0,"SPECULAR"),e.BUMP&&u.addFallback(0,"BUMP"),e.PARALLAX&&u.addFallback(1,"PARALLAX"),e.PARALLAX_RHS&&u.addFallback(1,"PARALLAX_RHS"),e.PARALLAXOCCLUSION&&u.addFallback(0,"PARALLAXOCCLUSION"),e.SPECULAROVERALPHA&&u.addFallback(0,"SPECULAROVERALPHA"),e.FOG&&u.addFallback(1,"FOG"),e.POINTSIZE&&u.addFallback(0,"POINTSIZE"),e.LOGARITHMICDEPTH&&u.addFallback(0,"LOGARITHMICDEPTH"),ie(e,u,this._maxSimultaneousLights),e.SPECULARTERM&&u.addFallback(0,"SPECULARTERM"),e.DIFFUSEFRESNEL&&u.addFallback(1,"DIFFUSEFRESNEL"),e.OPACITYFRESNEL&&u.addFallback(2,"OPACITYFRESNEL"),e.REFLECTIONFRESNEL&&u.addFallback(3,"REFLECTIONFRESNEL"),e.EMISSIVEFRESNEL&&u.addFallback(4,"EMISSIVEFRESNEL"),e.FRESNEL&&u.addFallback(4,"FRESNEL"),e.MULTIVIEW&&u.addFallback(0,"MULTIVIEW");const E=[v.PositionKind];e.NORMAL&&E.push(v.NormalKind),e.TANGENT&&E.push(v.TangentKind);for(let S=1;S<=6;++S)e["UV"+S]&&E.push(`uv${S===1?"":S}`);e.VERTEXCOLOR&&E.push(v.ColorKind),se(E,t,e,u),re(E,e),ae(E,t,e),oe(E,t,e);let O="default";const m=["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","boneTextureWidth","morphTargetTextureInfo","morphTargetTextureIndices","cameraInfo"],x=["diffuseSampler","ambientSampler","opacitySampler","reflectionCubeSampler","reflection2DSampler","emissiveSampler","specularSampler","bumpSampler","lightmapSampler","refractionCubeSampler","refraction2DSampler","boneSampler","morphTargets","oitDepthSampler","oitFrontColorSampler","areaLightsLTC1Sampler","areaLightsLTC2Sampler"];ne(m,x,!1);const C=["Material","Scene","Mesh"],U={maxSimultaneousLights:this._maxSimultaneousLights,maxSimultaneousMorphTargets:e.NUM_MORPH_INFLUENCERS};this._eventInfo.fallbacks=u,this._eventInfo.fallbackRank=0,this._eventInfo.defines=e,this._eventInfo.uniforms=m,this._eventInfo.attributes=E,this._eventInfo.samplers=x,this._eventInfo.uniformBuffersNames=C,this._eventInfo.customCode=void 0,this._eventInfo.mesh=t,this._eventInfo.indexParameters=U,this._callbackPluginEventGeneric(128,this._eventInfo),y.AddUniformsAndSamplers(m,x),H.AddUniforms(m),N&&(N.PrepareUniforms(m,e),N.PrepareSamplers(x,e)),le({uniformsNames:m,uniformBuffersNames:C,samplers:x,defines:e,maxSimultaneousLights:this._maxSimultaneousLights}),ue(m);const B={};this.customShaderNameResolve&&(O=this.customShaderNameResolve(O,m,C,x,e,E,B));
2const V=e.toString(),X=a.effect,g=l.getEngine().createEffect(O,{attributes:E,uniformsNames:m,uniformBuffersNames:C,samplers:x,defines:V,fallbacks:u,onCompiled:this.onCompiled,onError:this.onError,indexParameters:U,processFinalCode:B.processFinalCode,processCodeAfterIncludes:this._eventInfo.customCode,multiTarget:e.PREPASS,shaderLanguage:this._shaderLanguage,extraInitializationsAsync:this._shadersLoaded?void 0:async()=>{this._shaderLanguage===1?await Promise.all([b(()=>import("./default.vertex-BjF7oTbf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),b(()=>import("./default.fragment-Bb_BTeNi.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,16,11,9,17,18,19]))]):await Promise.all([b(()=>import("./default.vertex-DiQ08ICb.js"),__vite__mapDeps([20,1,2,3,4,5,21,22,23,24,25,26,27,28,29])),b(()=>import("./default.fragment-Ckd3Iatj.js"),__vite__mapDeps([30,1,2,3,4,5,31,22,23,26,24,32,33,34]))]),this._shadersLoaded=!0}},d);if(this._eventInfo.customCode=void 0,g)if(this._onEffectCreatedObservable&&(D.effect=g,D.subMesh=a,this._onEffectCreatedObservable.notifyObservers(D)),this.allowShaderHotSwapping&&X&&!g.isReady()){if(e.markAsUnprocessed(),r=this.isFrozen,T)return e._areLightsDisposed=!0,!1}else l.resetCachedMaterial(),a.setEffect(g,e,this._materialContext)}return!a.effect||!a.effect.isReady()?!1:(e._renderId=l.getRenderId(),o._wasPreviouslyReady=!r,o._wasPreviouslyUsingInstances=p,this._checkScenePerformancePriority(),!0)}buildUniformLayout(){const t=this._uniformBuffer;t.addUniform("diffuseLeftColor",4),t.addUniform("diffuseRightColor",4),t.addUniform("opacityParts",4),t.addUniform("reflectionLeftColor",4),t.addUniform("reflectionRightColor",4),t.addUniform("refractionLeftColor",4),t.addUniform("refractionRightColor",4),t.addUniform("emissiveLeftColor",4),t.addUniform("emissiveRightColor",4),t.addUniform("vDiffuseInfos",2),t.addUniform("vAmbientInfos",2),t.addUniform("vOpacityInfos",2),t.addUniform("vEmissiveInfos",2),t.addUniform("vLightmapInfos",2),t.addUniform("vSpecularInfos",2),t.addUniform("vBumpInfos",3),t.addUniform("diffuseMatrix",16),t.addUniform("ambientMatrix",16),t.addUniform("opacityMatrix",16),t.addUniform("emissiveMatrix",16),t.addUniform("lightmapMatrix",16),t.addUniform("specularMatrix",16),t.addUniform("bumpMatrix",16),t.addUniform("vTangentSpaceParams",2),t.addUniform("pointSize",1),t.addUniform("alphaCutOff",1),t.addUniform("refractionMatrix",16),t.addUniform("vRefractionInfos",4),t.addUniform("vRefractionPosition",3),t.addUniform("vRefractionSize",3),t.addUniform("vSpecularColor",4),t.addUniform("vEmissiveColor",3),t.addUniform("vDiffuseColor",4),t.addUniform("vAmbientColor",3),t.addUniform("cameraInfo",4),fe(t,!1,!0),super.buildUniformLayout()}bindForSubMesh(t,a,p){var T;const o=this.getScene(),l=p.materialDefines;if(!l)return;const e=p.effect;if(!e)return;this._activeEffect=e,a.getMeshUniformBuffer().bindToEffect(e,"Mesh"),a.transferToEffect(t),this._uniformBuffer.bindToEffect(e,"Material"),this.prePassConfiguration.bindForSubMesh(this._activeEffect,o,a,t,this.isFrozen),y.Bind(o.getEngine().currentRenderPassId,this._activeEffect,a,t,this);const d=o.activeCamera;d?this._uniformBuffer.updateFloat4("cameraInfo",d.minZ,d.maxZ,0,0):this._uniformBuffer.updateFloat4("cameraInfo",0,0,0,0),this._eventInfo.subMesh=p,this._callbackPluginEventHardBindForSubMesh(this._eventInfo),l.OBJECTSPACE_NORMALMAP&&(t.toNormalMatrix(this._normalMatrix),this.bindOnlyNormalMatrix(this._normalMatrix));const c=this._mustRebind(o,e,p,a.visibility);he(a,e);const r=this._uniformBuffer;if(c){if(this.bindViewProjection(e),!r.useUbo||!this.isFrozen||!r.isSync||p._drawWrapper._forceRebindOnNextCall){if(i.FresnelEnabled&&l.FRESNEL&&(this.diffuseFresnelParameters&&this.diffuseFresnelParameters.isEnabled&&(r.updateColor4("diffuseLeftColor",this.diffuseFresnelParameters.leftColor,this.diffuseFresnelParameters.power),r.updateColor4("diffuseRightColor",this.diffuseFresnelParameters.rightColor,this.diffuseFresnelParameters.bias)),this.opacityFresnelParameters&&this.opacityFresnelParameters.isEnabled&&r.updateColor4("opacityParts",new A(this.opacityFresnelParameters.leftColor.toLuminance(),this.opacityFresnelParameters.rightColor.toLuminance(),this.opacityFresnelParameters.bias),this.opacityFresnelParameters.power),this.reflectionFresnelParameters&&this.reflectionFresnelParameters.isEnabled&&(r.updateColor4("reflectionLeftColor",this.reflectionFresnelParameters.leftColor,this.reflectionFresnelParameters.power),r.updateColor4("reflectionRightColor",this.reflectionFresnelParameters.rightColor,this.reflectionFresnelParameters.bias)),this.refractionFresnelParameters&&this.refractionFresnelParameters.isEnabled&&(r.updateColor4("refractionLeftColor",this.refractionFresnelParameters.leftColor,this.refractionFresnelParameters.power),r.updateColor4("refractionRightColor",this.refractionFresnelParameters.rightColor,this.refractionFresnelParameters.bias)),this.emissiveFresnelParameters&&this.emissiveFresnelParameters.isEnabled&&(r.updateColor4("emissiveLeftColor",this.emissiveFresnelParameters.leftColor,this.emissiveFresnelParameters.power),r.updateColor4("emissiveRightColor",this.emissiveFresnelParameters.rightColor,this.emissiveFresnelParameters.bias))),o.texturesEnabled&&(this._diffuseTexture&&i.DiffuseTextureEnabled&&(r.updateFloat2("vDiffuseInfos",this._diffuseTexture.coordinatesIndex,this._diffuseTexture.level),P(this._diffuseTexture,r,"diffuse")),this._ambientTexture&&i.AmbientTextureEnabled&&(r.updateFloat2("vAmbientInfos",this._ambientTexture.coordinatesIndex,this._ambientTexture.level),P(this._ambientTexture,r,"ambient")),this._opacityTexture&&i.OpacityTextureEnabled&&(r.updateFloat2("vOpacityInfos",this._opacityTexture.coordinatesIndex,this._opacityTexture.level),P(this._opacityTexture,r,"opacity")),this._hasAlphaChannel()&&r.updateFloat("alphaCutOff",this.alphaCutOff),pe(o,l,r,A.White(),this._reflectionTexture,!1,!1,!0,!1,!1,!1,this.roughness),(!this._reflectionTexture||!i.ReflectionTextureEnabled)&&r.updateFloat2("vReflectionInfos",0,this.roughness),this._emissiveTexture&&i.EmissiveTextureEnabled&&(r.updateFloat2("vEmissiveInfos",this._emissiveTexture.coordinatesIndex,this._emissiveTexture.level),P(this._emissiveTexture,r,"emissive")),this._lightmapTexture&&i.LightmapTextureEnabled&&(r.updateFloat2("vLightmapInfos",this._lightmapTexture.coordinatesIndex,this._lightmapTexture.level),P(this._lightmapTexture,r,"lightmap")),this._specularTexture&&i.SpecularTextureEnabled&&(r.updateFloat2("vSpecularInfos",this._specularTexture.coordinatesIndex,this._specularTexture.level),P(this._specularTexture,r,"specular")),this._bumpTexture&&o.getEngine().getCaps().standardDerivatives&&i.BumpTextureEnabled&&(r.updateFloat3("vBumpInfos",this._bumpTexture.coordinatesIndex,1/this._bumpTexture.level,this.parallaxScaleBias),P(this._bumpTexture,r,"bump"),o._mirroredCameraPosition?r.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?1:-1,this._invertNormalMapY?1:-1):r.updateFloat2("vTangentSpaceParams",this._invertNormalMapX?-1:1,this._invertNormalMapY?-1:1)),this._refractionTexture&&i.RefractionTextureEnabled)){let u=1;if(this._refractionTexture.isCube||(r.updateMatrix("refractionMatrix",this._refractionTexture.getReflectionTextureMatrix()),this._refractionTexture.depth&&(u=this._refractionTexture.depth)),r.updateFloat4("vRefractionInfos",this._refractionTexture.level,this.indexOfRefraction,u,this.invertRefractionY?-1:1),this._refractionTexture.boundingBoxSize){const E=this._refractionTexture;r.updateVector3("vRefractionPosition",E.boundingBoxPosition),r.updateVector3("vRefractionSize",E.boundingBoxSize)}}this.pointsCloud&&r.updateFloat("pointSize",this.pointSize),r.updateColor4("vSpecularColor",this.specularColor,this.specularPower),r.updateColor3("vEmissiveColor",i.EmissiveTextureEnabled?this.emissiveColor:A.BlackReadOnly),r.updateColor4("vDiffuseColor",this.diffuseColor,this.alpha),o.ambientColor.multiplyToRef(this.ambientColor,this._globalAmbientColor),r.updateColor3("vAmbientColor",this._globalAmbientColor)}o.texturesEnabled&&(this._diffuseTexture&&i.DiffuseTextureEnabled&&e.setTexture("diffuseSampler",this._diffuseTexture),this._ambientTexture&&i.AmbientTextureEnabled&&e.setTexture("ambientSampler",this._ambientTexture),this._opacityTexture&&i.OpacityTextureEnabled&&e.setTexture("opacitySampler",this._opacityTexture),this._reflectionTexture&&i.ReflectionTextureEnabled&&(this._reflectionTexture.isCube?e.setTexture("reflectionCubeSampler",this._reflectionTexture):e.setTexture("reflection2DSampler",this._reflectionTexture)),this._emissiveTexture&&i.EmissiveTextureEnabled&&e.setTexture("emissiveSampler",this._emissiveTexture),this._lightmapTexture&&i.LightmapTextureEnabled&&e.setTexture("lightmapSampler",this._lightmapTexture),this._specularTexture&&i.SpecularTextureEnabled&&e.setTexture("specularSampler",this._specularTexture),this._bumpTexture&&o.getEngine().getCaps().standardDerivatives&&i.BumpTextureEnabled&&e.setTexture("bumpSampler",this._bumpTexture),this._refractionTexture&&i.RefractionTextureEnabled&&(this._refractionTexture.isCube?e.setTexture("refractionCubeSampler",this._refractionTexture):e.setTexture("refraction2DSampler",this._refractionTexture))),this.get
vendor: 7,991 bytes, line 2
2Scene().useOrderIndependentTransparency&&this.needAlphaBlendingForMesh(a)&&this.getScene().depthPeelingRenderer.bind(e),this._eventInfo.subMesh=p,this._callbackPluginEventBindForSubMesh(this._eventInfo),Te(e,this,o),this.bindEyePosition(e)}else o.getEngine()._features.needToAlwaysBindUniformBuffers&&(this._needToBindSceneUbo=!0);(c||!this.isFrozen)&&(o.lightsEnabled&&!this._disableLighting&&Ee(o,a,e,l,this._maxSimultaneousLights),(o.fogEnabled&&a.applyFog&&o.fogMode!==G.FOGMODE_NONE||this._reflectionTexture||this._refractionTexture||a.receiveShadows||l.PREPASS||l.CLUSTLIGHT_BATCH)&&this.bindView(e),de(o,a,e),l.NUM_MORPH_INFLUENCERS&&me(a,e),l.BAKED_VERTEX_ANIMATION_TEXTURE&&((T=a.bakedVertexAnimationManager)==null||T.bind(e,l.INSTANCES)),this.useLogarithmicDepth&&ce(l,e,o),this._imageProcessingConfiguration&&!this._imageProcessingConfiguration.applyByPostProcess&&this._imageProcessingConfiguration.bind(this._activeEffect)),this._afterBind(a,this._activeEffect,p),r.update()}getAnimatables(){const t=super.getAnimatables();return this._diffuseTexture&&this._diffuseTexture.animations&&this._diffuseTexture.animations.length>0&&t.push(this._diffuseTexture),this._ambientTexture&&this._ambientTexture.animations&&this._ambientTexture.animations.length>0&&t.push(this._ambientTexture),this._opacityTexture&&this._opacityTexture.animations&&this._opacityTexture.animations.length>0&&t.push(this._opacityTexture),this._reflectionTexture&&this._reflectionTexture.animations&&this._reflectionTexture.animations.length>0&&t.push(this._reflectionTexture),this._emissiveTexture&&this._emissiveTexture.animations&&this._emissiveTexture.animations.length>0&&t.push(this._emissiveTexture),this._specularTexture&&this._specularTexture.animations&&this._specularTexture.animations.length>0&&t.push(this._specularTexture),this._bumpTexture&&this._bumpTexture.animations&&this._bumpTexture.animations.length>0&&t.push(this._bumpTexture),this._lightmapTexture&&this._lightmapTexture.animations&&this._lightmapTexture.animations.length>0&&t.push(this._lightmapTexture),this._refractionTexture&&this._refractionTexture.animations&&this._refractionTexture.animations.length>0&&t.push(this._refractionTexture),t}getActiveTextures(){const t=super.getActiveTextures();return this._diffuseTexture&&t.push(this._diffuseTexture),this._ambientTexture&&t.push(this._ambientTexture),this._opacityTexture&&t.push(this._opacityTexture),this._reflectionTexture&&t.push(this._reflectionTexture),this._emissiveTexture&&t.push(this._emissiveTexture),this._specularTexture&&t.push(this._specularTexture),this._bumpTexture&&t.push(this._bumpTexture),this._lightmapTexture&&t.push(this._lightmapTexture),this._refractionTexture&&t.push(this._refractionTexture),t}hasTexture(t){return!!(super.hasTexture(t)||this._diffuseTexture===t||this._ambientTexture===t||this._opacityTexture===t||this._reflectionTexture===t||this._emissiveTexture===t||this._specularTexture===t||this._bumpTexture===t||this._lightmapTexture===t||this._refractionTexture===t)}dispose(t,a){var p,o,l,e,d,c,r,T,u;a&&((p=this._diffuseTexture)==null||p.dispose(),(o=this._ambientTexture)==null||o.dispose(),(l=this._opacityTexture)==null||l.dispose(),(e=this._reflectionTexture)==null||e.dispose(),(d=this._emissiveTexture)==null||d.dispose(),(c=this._specularTexture)==null||c.dispose(),(r=this._bumpTexture)==null||r.dispose(),(T=this._lightmapTexture)==null||T.dispose(),(u=this._refractionTexture)==null||u.dispose()),this._imageProcessingConfiguration&&this._imageProcessingObserver&&this._imageProcessingConfiguration.onUpdateParameters.remove(this._imageProcessingObserver),super.dispose(t,a)}clone(t,a=!0,p=""){const o=k.Clone(()=>new i(t,this.getScene()),this,{cloneTexturesOnlyOnce:a});return o.name=t,o.id=t,this.stencil.copyTo(o.stencil),this._clonePlugins(o,p),o}static Parse(t,a,p){const o=k.Parse(()=>new i(t.name,a),t,a,p);return t.stencil&&o.stencil.parse(t.stencil,a,p),M._ParsePlugins(t,o,a,p),o}static get DiffuseTextureEnabled(){return f.DiffuseTextureEnabled}static set DiffuseTextureEnabled(t){f.DiffuseTextureEnabled=t}static get DetailTextureEnabled(){return f.DetailTextureEnabled}static set DetailTextureEnabled(t){f.DetailTextureEnabled=t}static get AmbientTextureEnabled(){return f.AmbientTextureEnabled}static set AmbientTextureEnabled(t){f.AmbientTextureEnabled=t}static get OpacityTextureEnabled(){return f.OpacityTextureEnabled}static set OpacityTextureEnabled(t){f.OpacityTextureEnabled=t}static get ReflectionTextureEnabled(){return f.ReflectionTextureEnabled}static set ReflectionTextureEnabled(t){f.ReflectionTextureEnabled=t}static get EmissiveTextureEnabled(){return f.EmissiveTextureEnabled}static set EmissiveTextureEnabled(t){f.EmissiveTextureEnabled=t}static get SpecularTextureEnabled(){return f.SpecularTextureEnabled}static set SpecularTextureEnabled(t){f.SpecularTextureEnabled=t}static get BumpTextureEnabled(){return f.BumpTextureEnabled}static set BumpTextureEnabled(t){f.BumpTextureEnabled=t}static get LightmapTextureEnabled(){return f.LightmapTextureEnabled}static set LightmapTextureEnabled(t){f.LightmapTextureEnabled=t}static get RefractionTextureEnabled(){return f.RefractionTextureEnabled}static set RefractionTextureEnabled(t){f.RefractionTextureEnabled=t}static get ColorGradingTextureEnabled(){return f.ColorGradingTextureEnabled}static set ColorGradingTextureEnabled(t){f.ColorGradingTextureEnabled=t}static get FresnelEnabled(){return f.FresnelEnabled}static set FresnelEnabled(t){f.FresnelEnabled=t}}i.ForceGLSL=!1;s([_("diffuseTexture")],i.prototype,"_diffuseTexture",void 0);s([n("_markAllSubMeshesAsTexturesAndMiscDirty")],i.prototype,"diffuseTexture",void 0);s([_("ambientTexture")],i.prototype,"_ambientTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"ambientTexture",void 0);s([_("opacityTexture")],i.prototype,"_opacityTexture",void 0);s([n("_markAllSubMeshesAsTexturesAndMiscDirty")],i.prototype,"opacityTexture",void 0);s([_("reflectionTexture")],i.prototype,"_reflectionTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"reflectionTexture",void 0);s([_("emissiveTexture")],i.prototype,"_emissiveTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"emissiveTexture",void 0);s([_("specularTexture")],i.prototype,"_specularTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"specularTexture",void 0);s([_("bumpTexture")],i.prototype,"_bumpTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"bumpTexture",void 0);s([_("lightmapTexture")],i.prototype,"_lightmapTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"lightmapTexture",void 0);s([_("refractionTexture")],i.prototype,"_refractionTexture",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"refractionTexture",void 0);s([F("ambient")],i.prototype,"ambientColor",void 0);s([F("diffuse")],i.prototype,"diffuseColor",void 0);s([F("specular")],i.prototype,"specularColor",void 0);s([F("emissive")],i.prototype,"emissiveColor",void 0);s([h()],i.prototype,"specularPower",void 0);s([h("useAlphaFromDiffuseTexture")],i.prototype,"_useAlphaFromDiffuseTexture",void 0);s([n("_markAllSubMeshesAsTexturesAndMiscDirty")],i.prototype,"useAlphaFromDiffuseTexture",void 0);s([h("useEmissiveAsIllumination")],i.prototype,"_useEmissiveAsIllumination",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useEmissiveAsIllumination",void 0);s([h("linkEmissiveWithDiffuse")],i.prototype,"_linkEmissiveWithDiffuse",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"linkEmissiveWithDiffuse",void 0);s([h("useSpecularOverAlpha")],i.prototype,"_useSpecularOverAlpha",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useSpecularOverAlpha",void 0);s([h("useReflectionOverAlpha")],i.prototype,"_useReflectionOverAlpha",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useReflectionOverAlpha",void 0);s([h("disableLighting")],i.prototype,"_disableLighting",void 0);
2s([n("_markAllSubMeshesAsLightsDirty")],i.prototype,"disableLighting",void 0);s([h("useObjectSpaceNormalMap")],i.prototype,"_useObjectSpaceNormalMap",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useObjectSpaceNormalMap",void 0);s([h("useParallax")],i.prototype,"_useParallax",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useParallax",void 0);s([h("useParallaxOcclusion")],i.prototype,"_useParallaxOcclusion",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useParallaxOcclusion",void 0);s([h()],i.prototype,"parallaxScaleBias",void 0);s([h("roughness")],i.prototype,"_roughness",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"roughness",void 0);s([h()],i.prototype,"indexOfRefraction",void 0);s([h()],i.prototype,"invertRefractionY",void 0);s([h()],i.prototype,"alphaCutOff",void 0);s([h("useLightmapAsShadowmap")],i.prototype,"_useLightmapAsShadowmap",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useLightmapAsShadowmap",void 0);s([I("diffuseFresnelParameters")],i.prototype,"_diffuseFresnelParameters",void 0);s([n("_markAllSubMeshesAsFresnelDirty")],i.prototype,"diffuseFresnelParameters",void 0);s([I("opacityFresnelParameters")],i.prototype,"_opacityFresnelParameters",void 0);s([n("_markAllSubMeshesAsFresnelAndMiscDirty")],i.prototype,"opacityFresnelParameters",void 0);s([I("reflectionFresnelParameters")],i.prototype,"_reflectionFresnelParameters",void 0);s([n("_markAllSubMeshesAsFresnelDirty")],i.prototype,"reflectionFresnelParameters",void 0);s([I("refractionFresnelParameters")],i.prototype,"_refractionFresnelParameters",void 0);s([n("_markAllSubMeshesAsFresnelDirty")],i.prototype,"refractionFresnelParameters",void 0);s([I("emissiveFresnelParameters")],i.prototype,"_emissiveFresnelParameters",void 0);s([n("_markAllSubMeshesAsFresnelDirty")],i.prototype,"emissiveFresnelParameters",void 0);s([h("useReflectionFresnelFromSpecular")],i.prototype,"_useReflectionFresnelFromSpecular",void 0);s([n("_markAllSubMeshesAsFresnelDirty")],i.prototype,"useReflectionFresnelFromSpecular",void 0);s([h("useGlossinessFromSpecularMapAlpha")],i.prototype,"_useGlossinessFromSpecularMapAlpha",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"useGlossinessFromSpecularMapAlpha",void 0);s([h("maxSimultaneousLights")],i.prototype,"_maxSimultaneousLights",void 0);s([n("_markAllSubMeshesAsLightsDirty")],i.prototype,"maxSimultaneousLights",void 0);s([h("invertNormalMapX")],i.prototype,"_invertNormalMapX",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"invertNormalMapX",void 0);s([h("invertNormalMapY")],i.prototype,"_invertNormalMapY",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"invertNormalMapY",void 0);s([h("twoSidedLighting")],i.prototype,"_twoSidedLighting",void 0);s([n("_markAllSubMeshesAsTexturesDirty")],i.prototype,"twoSidedLighting",void 0);s([h("applyDecalMapAfterDetailMap")],i.prototype,"_applyDecalMapAfterDetailMap",void 0);s([n("_markAllSubMeshesAsMiscDirty")],i.prototype,"applyDecalMapAfterDetailMap",void 0);xe("BABYLON.StandardMaterial",i);G.DefaultMaterialFactory=L=>new i("default material",L);export{i as StandardMaterial,Se 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.