1import{G as n}from"./glTFLoader-DuBN53_Z.js";import{Color3 as m}from"./math.color-CzLaKyb6.js";import{u as a,r as f}from"./dynamic-B0TG-CUB.js";import"./index-DeFvE6lu.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-oYr96VDh.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-DlqW7Xs8.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-OIgMc4u0.js";import"./instancedMesh-QYXOajBy.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const s="KHR_materials_fuzz";class h{constructor(e){this.name=s,this.order=190,this._loader=e,this.enabled=this._loader.isExtensionUsed(s)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,o,u){return n.LoadExtensionAsync(e,o,this.name,async(t,i)=>{const r=new Array;return r.push(this._loader.loadMaterialPropertiesAsync(e,o,u)),r.push(this._loadFuzzPropertiesAsync(t,i,u)),await Promise.all(r).then(()=>{})})}_loadFuzzPropertiesAsync(e,o,u){const t=this._loader._getOrCreateMaterialAdapter(u),i=new Array;return t.configureFuzz(),t.fuzzWeight=o.fuzzFactor!==void 0?o.fuzzFactor:0,t.fuzzColor=o.fuzzColorFactor!==void 0?m.FromArray(o.fuzzColorFactor):m.White(),t.fuzzRoughness=o.fuzzRoughnessFactor!==void 0?o.fuzzRoughnessFactor:.5,o.fuzzTexture&&i.push(this._loader.loadTextureInfoAsync(`${e}/fuzzTexture`,o.fuzzTexture,r=>{r.name=`${u.name} (Fuzz)`,t.fuzzWeightTexture=r})),o.fuzzColorTexture&&i.push(this._loader.loadTextureInfoAsync(`${e}/fuzzColorTexture`,o.fuzzColorTexture,r=>{r.name=`${u.name} (Fuzz Color)`,t.fuzzColorTexture=r})),o.fuzzRoughnessTexture&&(o.fuzzRoughnessTexture.nonColorData=!0,i.push(this._loader.loadTextureInfoAsync(`${e}/fuzzRoughnessTexture`,o.fuzzRoughnessTexture,r=>{r.name=`${u.name} (Fuzz Roughness)`,t.fuzzRoughnessTexture=r}))),Promise.all(i).then(()=>{})}}a(s);f(s,!0,z=>new h(z));export{h as KHR_materials_fuzz};
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.