PageSourceSearch

https://ernusame-pi-mono-sft-trackio.hf.space/assets/KHR_materials_sheen-cIDJBJG3.js

js ernusame-pi-mono-sft-trackio.hf.space collected 2026-10-04 16:51:57 UTC 2,658 bytes, 1 lines download raw bytes

1import{G as p}from"./glTFLoader-DuBN53_Z.js";import{Color3 as a}from"./math.color-CzLaKyb6.js";import{u as l,r as d}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 m="KHR_materials_sheen";class c{constructor(r){this.name=m,this.order=190,this._loader=r,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,e,t){return p.LoadExtensionAsync(r,e,this.name,async(o,s)=>{const n=new Array;return n.push(this._loader.loadMaterialPropertiesAsync(r,e,t)),n.push(this._loadSheenPropertiesAsync(o,s,t)),await Promise.all(n).then(()=>{})})}_loadSheenPropertiesAsync(r,e,t){const o=this._loader._getOrCreateMaterialAdapter(t),s=new Array;o.configureFuzz();const n=e.sheenColorFactor!==void 0?a.FromArray(e.sheenColorFactor):a.Black(),u=e.sheenRoughnessFactor!==void 0?e.sheenRoughnessFactor:0;return o.fuzzWeight=1,o.fuzzColor=n,o.fuzzRoughness=u,e.sheenColorTexture&&s.push(this._loader.loadTextureInfoAsync(`${r}/sheenColorTexture`,e.sheenColorTexture,i=>{i.name=`${t.name} (Sheen Color)`,o.fuzzColorTexture=i})),e.sheenRoughnessTexture&&(e.sheenRoughnessTexture.nonColorData=!0,s.push(this._loader.loadTextureInfoAsync(`${r}/sheenRoughnessTexture`,e.sheenRoughnessTexture,i=>{i.name=`${t.name} (Sheen Roughness)`,o.fuzzRoughnessTexture=i}))),Promise.all(s).then(()=>{})}}l(m);d(m,!0,h=>new c(h));export{c as KHR_materials_sheen};

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.