@galacean/engine-shader 2.0.0-alpha.25 → 2.0.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/shaders/index.d.ts +1 -1
package/dist/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../src/shaders/shadingPBR/index.ts","../src/shaders/index.ts","../src/index.ts"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.
|
|
1
|
+
{"version":3,"file":"browser.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../src/shaders/shadingPBR/index.ts","../src/shaders/index.ts","../src/index.ts"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.shader\";\nimport Shadow from \"./Shadow.glsl\";\nimport ShadowSampleTent from \"./ShadowSampleTent.glsl\";\nimport Skin from \"./Skin.glsl\";\nimport Transform from \"./Transform.glsl\";\nimport shadingPBR from \"./shadingPBR\";\n\ninterface IShaderFragment {\n includeKey: string;\n source: string;\n}\n\nconst fragmentList: IShaderFragment[] = [\n { source: BlendShape, includeKey: \"BlendShape.glsl\" },\n { source: Common, includeKey: \"Common.glsl\" },\n { source: Fog, includeKey: \"Fog.glsl\" },\n { source: Light, includeKey: \"Light.glsl\" },\n { source: Normal, includeKey: \"Normal.glsl\" },\n { source: ShadowSampleTent, includeKey: \"ShadowSampleTent.glsl\" },\n { source: Shadow, includeKey: \"Shadow.glsl\" },\n { source: Transform, includeKey: \"Transform.glsl\" },\n { source: Skin, includeKey: \"Skin.glsl\" },\n\n ...shadingPBR\n];\nexport { PBRSource, fragmentList };\n","import { ShaderFactory } from \"@galacean/engine\";\nimport { PBRSource, fragmentList } from \"./shaders\";\n\nlet includeRegistered = false;\n\nexport function registerIncludes() {\n if (includeRegistered) return;\n\n for (const sourceFragment of fragmentList) {\n ShaderFactory.registerInclude(sourceFragment.includeKey, sourceFragment.source);\n }\n\n includeRegistered = true;\n}\n\nexport { PBRSource, fragmentList };\n"],"names":["source","ForwardPassPBR","includeKey","AttributesPBR","VaryingsPBR","FragmentPBR","LightDirectPBR","LightIndirectPBR","VertexPBR","LightIndirectFunctions","ReflectionLobe","Refraction","BSDF","fragmentList","BlendShape","Common","Fog","Light","Normal","ShadowSampleTent","Shadow","Transform","Skin","shadingPBR","includeRegistered","registerIncludes","sourceFragment","ShaderFactory","registerInclude"],"mappings":";;;;;;IAAA,SAAS,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE;IACxC,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC;AAC1D;IACA,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,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KAAA,EAAA,CAAA,CAAA,KAAA,GAAA,SAAA,EAAA,EAAA,IAAA,EAAA;IAAhCa,QAAAA,IAAAA,cAAAA,GAAAA,KAAAA,CAAAA,KAAAA,CAAAA;IACTC,QAAAA,oBAAAA,CAAcC,eAAe,CAACF,cAAAA,CAAexB,UAAU,EAAEwB,eAAe1B,MAAM,CAAA,CAAA;IAChF,KAAA;QAEAwB,iBAAoB,GAAA,IAAA,CAAA;IACtB;;;;;;;;;;;;"}
|
package/dist/browser.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.min.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../src/shaders/index.ts","../src/shaders/shadingPBR/index.ts","../src/index.ts","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.
|
|
1
|
+
{"version":3,"file":"browser.min.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../src/shaders/index.ts","../src/shaders/shadingPBR/index.ts","../src/index.ts","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.shader\";\nimport Shadow from \"./Shadow.glsl\";\nimport ShadowSampleTent from \"./ShadowSampleTent.glsl\";\nimport Skin from \"./Skin.glsl\";\nimport Transform from \"./Transform.glsl\";\nimport shadingPBR from \"./shadingPBR\";\n\ninterface IShaderFragment {\n includeKey: string;\n source: string;\n}\n\nconst fragmentList: IShaderFragment[] = [\n { source: BlendShape, includeKey: \"BlendShape.glsl\" },\n { source: Common, includeKey: \"Common.glsl\" },\n { source: Fog, includeKey: \"Fog.glsl\" },\n { source: Light, includeKey: \"Light.glsl\" },\n { source: Normal, includeKey: \"Normal.glsl\" },\n { source: ShadowSampleTent, includeKey: \"ShadowSampleTent.glsl\" },\n { source: Shadow, includeKey: \"Shadow.glsl\" },\n { source: Transform, includeKey: \"Transform.glsl\" },\n { source: Skin, includeKey: \"Skin.glsl\" },\n\n ...shadingPBR\n];\nexport { PBRSource, fragmentList };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import { ShaderFactory } from \"@galacean/engine\";\nimport { PBRSource, fragmentList } from \"./shaders\";\n\nlet includeRegistered = false;\n\nexport function registerIncludes() {\n if (includeRegistered) return;\n\n for (const sourceFragment of fragmentList) {\n ShaderFactory.registerInclude(sourceFragment.includeKey, sourceFragment.source);\n }\n\n includeRegistered = true;\n}\n\nexport { PBRSource, fragmentList };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n"],"names":["_array_like_to_array","arr","len","length","i","arr2","Array","fragmentList","source","includeKey","shadingPBR","includeRegistered","_step","_iterator","_create_for_of_iterator_helper_loose","o","allowArrayLike","it","Symbol","iterator","call","next","bind","isArray","_unsupported_iterable_to_array","minLen","n","Object","prototype","toString","slice","constructor","name","from","test","done","value","TypeError","sourceFragment","ShaderFactory","registerInclude"],"mappings":"sVAAA,SAASA,EAAqBC,CAAG,CAAEC,CAAG,EAC9BA,CAAAA,AAAO,MAAPA,GAAeA,EAAMD,EAAIE,MAAM,AAAN,GAAQD,CAAAA,EAAMD,EAAIE,MAAM,EAErD,IAAK,IAAIC,EAAI,EAAGC,EAAO,AAAIC,MAAMJ,GAAME,EAAIF,EAAKE,IAAKC,CAAI,CAACD,EAAE,CAAGH,CAAG,CAACG,EAAE,CAErE,OAAOC,CACX,CCWME,IAAAA,EAAAA,EAAAA,CAAAA,MAAAA,CAAAA,CACJ,CAAEC,6pHAAoBC,WAAY,iBAAkB,EACpD,CAAED,u/GAAgBC,WAAY,aAAc,EAC5C,CAAED,ymBAAaC,WAAY,UAAW,EACtC,CAAED,8zFAAeC,WAAY,YAAa,EAC1C,CAAED,g9BAAgBC,WAAY,aAAc,EAC5C,CAAED,8zHAA0BC,WAAY,uBAAwB,EAChE,CAAED,qhMAAgBC,WAAY,aAAc,EAC5C,CAAED,ySAAmBC,WAAY,gBAAiB,EAClD,CAAED,uzCAAcC,WAAY,WAAY,EAErCC,CChBU,CACb,CAAEF,ukFAAwBC,WAAY,qBAAsB,EAC5D,CAAED,utCAAuBC,WAAY,oBAAqB,EAC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AAAA,EAAIE,GAEZ,IAAIb,EAAI,EAER,OAAO,kBACH,AAAIA,GAAKW,EAAEZ,MAAM,CAAS,CAAEgC,KAAM,CAAA,GAE3B,CAAEA,KAAM,CAAA,EAAOC,MAAOrB,CAAC,CAACX,IAAI,CAC/C,CACK,CAED,MAAM,AAAIiC,UAAU,wIACxB,EDZ+B9B,GAAc,CAAA,AAAAK,CAAAA,EAAAC,GAAA,EAAAsB,IAAA,EAAA,CAAhCG,IAAAA,EAAAA,EAAAA,KAAAA,CACTC,EAAAA,aAAAA,CAAcC,eAAe,CAACF,EAAe7B,UAAU,CAAE6B,EAAe9B,MAAM,CAChF,CAEAG,EAAoB,CAAA,EACtB"}
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../src/shaders/shadingPBR/index.ts","../src/shaders/index.ts","../src/index.ts"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../src/shaders/shadingPBR/index.ts","../src/shaders/index.ts","../src/index.ts"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.shader\";\nimport Shadow from \"./Shadow.glsl\";\nimport ShadowSampleTent from \"./ShadowSampleTent.glsl\";\nimport Skin from \"./Skin.glsl\";\nimport Transform from \"./Transform.glsl\";\nimport shadingPBR from \"./shadingPBR\";\n\ninterface IShaderFragment {\n includeKey: string;\n source: string;\n}\n\nconst fragmentList: IShaderFragment[] = [\n { source: BlendShape, includeKey: \"BlendShape.glsl\" },\n { source: Common, includeKey: \"Common.glsl\" },\n { source: Fog, includeKey: \"Fog.glsl\" },\n { source: Light, includeKey: \"Light.glsl\" },\n { source: Normal, includeKey: \"Normal.glsl\" },\n { source: ShadowSampleTent, includeKey: \"ShadowSampleTent.glsl\" },\n { source: Shadow, includeKey: \"Shadow.glsl\" },\n { source: Transform, includeKey: \"Transform.glsl\" },\n { source: Skin, includeKey: \"Skin.glsl\" },\n\n ...shadingPBR\n];\nexport { PBRSource, fragmentList };\n","import { ShaderFactory } from \"@galacean/engine\";\nimport { PBRSource, fragmentList } from \"./shaders\";\n\nlet includeRegistered = false;\n\nexport function registerIncludes() {\n if (includeRegistered) return;\n\n for (const sourceFragment of fragmentList) {\n ShaderFactory.registerInclude(sourceFragment.includeKey, sourceFragment.source);\n }\n\n includeRegistered = true;\n}\n\nexport { PBRSource, fragmentList };\n"],"names":["source","ForwardPassPBR","includeKey","AttributesPBR","VaryingsPBR","FragmentPBR","LightDirectPBR","LightIndirectPBR","VertexPBR","LightIndirectFunctions","ReflectionLobe","Refraction","BSDF","fragmentList","BlendShape","Common","Fog","Light","Normal","ShadowSampleTent","Shadow","Transform","Skin","shadingPBR","includeRegistered","registerIncludes","sourceFragment","ShaderFactory","registerInclude"],"mappings":";;;;;;AAAA,SAAS,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE;AACxC,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC;AAC1D;AACA,IAAI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zBL,IAAIC,iBAAoB,GAAA,KAAA,CAAA;AAEjB,SAASC,gBAAAA,GAAAA;AACd,IAAA,IAAID,iBAAmB,EAAA,OAAA;AAEvB,IAAA,IAAA,IAAA,SAAA,GAAA,oCAAA,CAA6BX,YAAc,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,KAAA,GAAA,SAAA,EAAA,EAAA,IAAA,EAAA;AAAhCa,QAAAA,IAAAA,cAAAA,GAAAA,KAAAA,CAAAA,KAAAA,CAAAA;AACTC,QAAAA,oBAAAA,CAAcC,eAAe,CAACF,cAAAA,CAAexB,UAAU,EAAEwB,eAAe1B,MAAM,CAAA,CAAA;AAChF,KAAA;IAEAwB,iBAAoB,GAAA,IAAA,CAAA;AACtB;;;;;;"}
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../src/shaders/shadingPBR/index.ts","../src/shaders/index.ts","../src/index.ts"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_array_like_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","../../../node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js","../src/shaders/shadingPBR/index.ts","../src/shaders/index.ts","../src/index.ts"],"sourcesContent":["function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { _ as _array_like_to_array } from \"./_array_like_to_array.js\";\n\nfunction _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","import { _ as _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nfunction _create_for_of_iterator_helper_loose(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (it) return (it = it.call(o)).next.bind(it);\n // Fallback for engines without symbol support\n if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n\n var i = 0;\n\n return function() {\n if (i >= o.length) return { done: true };\n\n return { done: false, value: o[i++] };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _create_for_of_iterator_helper_loose as _ };\n","import AttributesPBR from \"./AttributesPBR.glsl\";\nimport ForwardPassPBR from \"./ForwardPassPBR.glsl\";\nimport FragmentPBR from \"./FragmentPBR.glsl\";\nimport LightDirectPBR from \"./LightDirectPBR.glsl\";\nimport LightIndirectFunctions from \"./LightIndirectFunctions.glsl\";\nimport LightIndirectPBR from \"./LightIndirectPBR.glsl\";\nimport ReflectionLobe from \"./ReflectionLobe.glsl\";\nimport VaryingsPBR from \"./VaryingsPBR.glsl\";\nimport VertexPBR from \"./VertexPBR.glsl\";\nimport Refraction from \"./Refraction.glsl\";\nimport BSDF from \"./BSDF.glsl\";\n\nexport default [\n { source: ForwardPassPBR, includeKey: \"ForwardPassPBR.glsl\" },\n { source: AttributesPBR, includeKey: \"AttributesPBR.glsl\" },\n { source: VaryingsPBR, includeKey: \"VaryingsPBR.glsl\" },\n { source: FragmentPBR, includeKey: \"FragmentPBR.glsl\" },\n { source: LightDirectPBR, includeKey: \"LightDirectPBR.glsl\" },\n { source: LightIndirectPBR, includeKey: \"LightIndirectPBR.glsl\" },\n { source: VertexPBR, includeKey: \"VertexPBR.glsl\" },\n { source: LightIndirectFunctions, includeKey: \"LightIndirectFunctions.glsl\" },\n { source: ReflectionLobe, includeKey: \"ReflectionLobe.glsl\" },\n { source: Refraction, includeKey: \"Refraction.glsl\" },\n { source: BSDF, includeKey: \"BSDF.glsl\" }\n];\n","import BlendShape from \"./BlendShape.glsl\";\nimport Common from \"./Common.glsl\";\nimport Fog from \"./Fog.glsl\";\nimport Light from \"./Light.glsl\";\nimport Normal from \"./Normal.glsl\";\nimport PBRSource from \"./PBR.shader\";\nimport Shadow from \"./Shadow.glsl\";\nimport ShadowSampleTent from \"./ShadowSampleTent.glsl\";\nimport Skin from \"./Skin.glsl\";\nimport Transform from \"./Transform.glsl\";\nimport shadingPBR from \"./shadingPBR\";\n\ninterface IShaderFragment {\n includeKey: string;\n source: string;\n}\n\nconst fragmentList: IShaderFragment[] = [\n { source: BlendShape, includeKey: \"BlendShape.glsl\" },\n { source: Common, includeKey: \"Common.glsl\" },\n { source: Fog, includeKey: \"Fog.glsl\" },\n { source: Light, includeKey: \"Light.glsl\" },\n { source: Normal, includeKey: \"Normal.glsl\" },\n { source: ShadowSampleTent, includeKey: \"ShadowSampleTent.glsl\" },\n { source: Shadow, includeKey: \"Shadow.glsl\" },\n { source: Transform, includeKey: \"Transform.glsl\" },\n { source: Skin, includeKey: \"Skin.glsl\" },\n\n ...shadingPBR\n];\nexport { PBRSource, fragmentList };\n","import { ShaderFactory } from \"@galacean/engine\";\nimport { PBRSource, fragmentList } from \"./shaders\";\n\nlet includeRegistered = false;\n\nexport function registerIncludes() {\n if (includeRegistered) return;\n\n for (const sourceFragment of fragmentList) {\n ShaderFactory.registerInclude(sourceFragment.includeKey, sourceFragment.source);\n }\n\n includeRegistered = true;\n}\n\nexport { PBRSource, fragmentList };\n"],"names":["source","ForwardPassPBR","includeKey","AttributesPBR","VaryingsPBR","FragmentPBR","LightDirectPBR","LightIndirectPBR","VertexPBR","LightIndirectFunctions","ReflectionLobe","Refraction","BSDF","fragmentList","BlendShape","Common","Fog","Light","Normal","ShadowSampleTent","Shadow","Transform","Skin","shadingPBR","includeRegistered","registerIncludes","sourceFragment","ShaderFactory","registerInclude"],"mappings":";;AAAA,SAAS,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE;AACxC,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,CAA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ErCqB,CAAAA,EAAAA,UAAAA;;ACzBL,IAAIC,iBAAoB,GAAA,KAAA,CAAA;AAEjB,SAASC,gBAAAA,GAAAA;AACd,IAAA,IAAID,iBAAmB,EAAA,OAAA;AAEvB,IAAA,IAAA,IAAA,SAAA,GAAA,oCAAA,CAA6BX,YAAc,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,KAAA,GAAA,SAAA,EAAA,EAAA,IAAA,EAAA;AAAhCa,QAAAA,IAAAA,cAAAA,GAAAA,KAAAA,CAAAA,KAAAA,CAAAA;AACTC,QAAAA,aAAAA,CAAcC,eAAe,CAACF,cAAAA,CAAexB,UAAU,EAAEwB,eAAe1B,MAAM,CAAA,CAAA;AAChF,KAAA;IAEAwB,iBAAoB,GAAA,IAAA,CAAA;AACtB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-shader",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.27",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"types/**/*"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@galacean/engine": "2.0.0-alpha.
|
|
28
|
+
"@galacean/engine": "2.0.0-alpha.27"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@galacean/engine": "2.0.0-alpha.
|
|
31
|
+
"@galacean/engine": "2.0.0-alpha.27"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"b:types": "tsc"
|
package/types/shaders/index.d.ts
CHANGED