1import{G as n}from"./glTFLoader-DlDSYXtl.js";import{u as a,r as u}from"./dynamic-Byj-ExMi.js";import"./index-Bc7OztLw.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BczlZ8bV.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-CsnqRZBh.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-41lbZEXn.js";import"./instancedMesh-B9hLhKZd.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const m="KHR_materials_diffuse_roughness";class h{constructor(r){this.name=m,this.order=190,this._loader=r,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,s,t){return n.LoadExtensionAsync(r,s,this.name,async(i,e)=>{const o=new Array;return o.push(this._loader.loadMaterialPropertiesAsync(r,s,t)),o.push(this._loadDiffuseRoughnessPropertiesAsync(i,e,t)),await Promise.all(o).then(()=>{})})}_loadDiffuseRoughnessPropertiesAsync(r,s,t){const i=this._loader._getOrCreateMaterialAdapter(t),e=new Array;return i.baseDiffuseRoughness=s.diffuseRoughnessFactor??0,s.diffuseRoughnessTexture&&e.push(this._loader.loadTextureInfoAsync(`${r}/diffuseRoughnessTexture`,s.diffuseRoughnessTexture,o=>{o.name=`${t.name} (Diffuse Roughness)`,i.baseDiffuseRoughnessTexture=o})),Promise.all(e).then(()=>{})}}a(m);u(m,!0,p=>new h(p));export{h as KHR_materials_diffuse_roughness};
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.