@woosh/meep-engine 3.75.0 → 3.76.0

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.
Files changed (216) hide show
  1. package/package.json +1 -1
  2. package/src/engine/asset/GameAssetType.d.ts +1 -0
  3. package/src/engine/asset/GameAssetType.js +5 -1
  4. package/src/engine/asset/loaders/GroomAssetLoader.d.ts +33 -0
  5. package/src/engine/asset/loaders/GroomAssetLoader.d.ts.map +1 -0
  6. package/src/engine/asset/loaders/GroomAssetLoader.js +99 -0
  7. package/src/engine/graphics/ecs/hair/Hair.d.ts +47 -0
  8. package/src/engine/graphics/ecs/hair/Hair.d.ts.map +1 -0
  9. package/src/engine/graphics/ecs/hair/Hair.js +61 -0
  10. package/src/engine/graphics/hair/Groom.d.ts +130 -0
  11. package/src/engine/graphics/hair/Groom.d.ts.map +1 -0
  12. package/src/engine/graphics/hair/Groom.js +193 -0
  13. package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts +24 -0
  14. package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts.map +1 -0
  15. package/src/engine/graphics/hair/GroomSerializationAdapter.js +77 -0
  16. package/src/engine/graphics/hair/groom_build_group.d.ts +85 -0
  17. package/src/engine/graphics/hair/groom_build_group.d.ts.map +1 -0
  18. package/src/engine/graphics/hair/groom_build_group.js +487 -0
  19. package/src/engine/graphics/hair/groom_generate_scalp.d.ts +29 -0
  20. package/src/engine/graphics/hair/groom_generate_scalp.d.ts.map +1 -0
  21. package/src/engine/graphics/hair/groom_generate_scalp.js +184 -0
  22. package/src/engine/graphics/hair/groom_rank_order.d.ts +15 -0
  23. package/src/engine/graphics/hair/groom_rank_order.d.ts.map +1 -0
  24. package/src/engine/graphics/hair/groom_rank_order.js +53 -0
  25. package/src/engine/graphics/hair/groom_root_spacing.d.ts +12 -0
  26. package/src/engine/graphics/hair/groom_root_spacing.d.ts.map +1 -0
  27. package/src/engine/graphics/hair/groom_root_spacing.js +120 -0
  28. package/src/engine/graphics3/HairSystem.d.ts +102 -0
  29. package/src/engine/graphics3/HairSystem.d.ts.map +1 -0
  30. package/src/engine/graphics3/HairSystem.js +456 -0
  31. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  32. package/src/shade/assets/textures/hair_scattering.bin +0 -0
  33. package/src/shade/device/pipeline/PipelineEnquiry.d.ts +11 -0
  34. package/src/shade/device/pipeline/PipelineEnquiry.d.ts.map +1 -1
  35. package/src/shade/device/pipeline/PipelineEnquiry.js +13 -0
  36. package/src/shade/playground/hair/index.html +50 -0
  37. package/src/shade/playground/hair/main.d.ts +2 -0
  38. package/src/shade/playground/hair/main.d.ts.map +1 -0
  39. package/src/shade/playground/hair/main.js +274 -0
  40. package/src/shade/playground/screen_probes/README.md +54 -0
  41. package/src/shade/playground/screen_probes/index.html +271 -0
  42. package/src/shade/playground/screen_probes/main.d.ts +8 -0
  43. package/src/shade/playground/screen_probes/main.d.ts.map +1 -0
  44. package/src/shade/playground/screen_probes/main.js +527 -0
  45. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  46. package/src/shade/renderer/Renderer.js +54 -8
  47. package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSETS.d.ts +6 -0
  48. package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSETS.d.ts.map +1 -1
  49. package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSETS.js +10 -0
  50. package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
  51. package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
  52. package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
  53. package/src/shade/renderer/deferred/chunk_read_gBuffer_material.d.ts.map +1 -1
  54. package/src/shade/renderer/deferred/chunk_read_gBuffer_material.js +3 -1
  55. package/src/shade/renderer/deferred/chunk_shade_direct_lights.d.ts +23 -0
  56. package/src/shade/renderer/deferred/chunk_shade_direct_lights.d.ts.map +1 -0
  57. package/src/shade/renderer/deferred/chunk_shade_direct_lights.js +111 -0
  58. package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts +17 -6
  59. package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts.map +1 -1
  60. package/src/shade/renderer/deferred/chunk_shade_directional_lights.js +26 -21
  61. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.d.ts +12 -22
  62. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.d.ts.map +1 -1
  63. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.js +20 -100
  64. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.d.ts.map +1 -1
  65. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.js +6 -4
  66. package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.d.ts +15 -0
  67. package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.d.ts.map +1 -0
  68. package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.js +47 -0
  69. package/src/shade/renderer/extension/ViewLighting.d.ts +101 -0
  70. package/src/shade/renderer/extension/ViewLighting.d.ts.map +1 -0
  71. package/src/shade/renderer/extension/ViewLighting.js +168 -0
  72. package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
  73. package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
  74. package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
  75. package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
  76. package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
  77. package/src/shade/renderer/global_illumination/brick4/gpu/draw/shader_brick4_indirect_lighting.d.ts.map +1 -1
  78. package/src/shade/renderer/global_illumination/brick4/gpu/draw/shader_brick4_indirect_lighting.js +3 -1
  79. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
  80. package/src/shade/renderer/global_illumination/probe_clipmap/probe/shader_probe_clipmap_indirect_lighting.d.ts.map +1 -1
  81. package/src/shade/renderer/global_illumination/probe_clipmap/probe/shader_probe_clipmap_indirect_lighting.js +3 -1
  82. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +15 -7
  83. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts.map +1 -1
  84. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +40 -9
  85. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts +23 -0
  86. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts.map +1 -1
  87. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js +26 -0
  88. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeDebugView.d.ts +1 -0
  89. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeDebugView.js +6 -0
  90. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +13 -1
  91. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  92. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +23 -1
  93. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.d.ts.map +1 -1
  94. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.js +2 -0
  95. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts +29 -0
  96. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts.map +1 -0
  97. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js +102 -0
  98. package/src/shade/renderer/global_illumination/screen_probe/graph_screen_probe_debug_view.d.ts +8 -1
  99. package/src/shade/renderer/global_illumination/screen_probe/graph_screen_probe_debug_view.d.ts.map +1 -1
  100. package/src/shade/renderer/global_illumination/screen_probe/graph_screen_probe_debug_view.js +27 -1
  101. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts +4 -1
  102. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts.map +1 -1
  103. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js +4 -1
  104. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_indirect_lighting.d.ts +11 -5
  105. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_indirect_lighting.d.ts.map +1 -1
  106. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_indirect_lighting.js +28 -10
  107. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts +36 -2
  108. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts.map +1 -1
  109. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js +149 -4
  110. package/src/shade/renderer/global_illumination/shader_resolve_indirect_lighting.d.ts.map +1 -1
  111. package/src/shade/renderer/global_illumination/shader_resolve_indirect_lighting.js +3 -1
  112. package/src/shade/renderer/hair/GPUHairSystem.d.ts +159 -0
  113. package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -0
  114. package/src/shade/renderer/hair/GPUHairSystem.js +1132 -0
  115. package/src/shade/renderer/hair/HAIR.d.ts +102 -0
  116. package/src/shade/renderer/hair/HAIR.d.ts.map +1 -0
  117. package/src/shade/renderer/hair/HAIR.js +115 -0
  118. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts +17 -0
  119. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts.map +1 -0
  120. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.js +71 -0
  121. package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts +11 -0
  122. package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts.map +1 -0
  123. package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.js +48 -0
  124. package/src/shade/renderer/hair/HairFrame.d.ts +41 -0
  125. package/src/shade/renderer/hair/HairFrame.d.ts.map +1 -0
  126. package/src/shade/renderer/hair/HairFrame.js +76 -0
  127. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts +42 -0
  128. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts.map +1 -0
  129. package/src/shade/renderer/hair/chunk_hair_bsdf.js +170 -0
  130. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +30 -0
  131. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -0
  132. package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +131 -0
  133. package/src/shade/renderer/hair/chunk_hair_pixel.d.ts +32 -0
  134. package/src/shade/renderer/hair/chunk_hair_pixel.d.ts.map +1 -0
  135. package/src/shade/renderer/hair/chunk_hair_pixel.js +116 -0
  136. package/src/shade/renderer/hair/chunk_hair_strand.d.ts +40 -0
  137. package/src/shade/renderer/hair/chunk_hair_strand.d.ts.map +1 -0
  138. package/src/shade/renderer/hair/chunk_hair_strand.js +85 -0
  139. package/src/shade/renderer/hair/chunk_hair_volume.d.ts +31 -0
  140. package/src/shade/renderer/hair/chunk_hair_volume.d.ts.map +1 -0
  141. package/src/shade/renderer/hair/chunk_hair_volume.js +106 -0
  142. package/src/shade/renderer/hair/hair_id_draw.d.ts +24 -0
  143. package/src/shade/renderer/hair/hair_id_draw.d.ts.map +1 -0
  144. package/src/shade/renderer/hair/hair_id_draw.js +135 -0
  145. package/src/shade/renderer/hair/hair_lighting.d.ts +53 -0
  146. package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -0
  147. package/src/shade/renderer/hair/hair_lighting.js +270 -0
  148. package/src/shade/renderer/hair/hair_scattering_lut.d.ts +75 -0
  149. package/src/shade/renderer/hair/hair_scattering_lut.d.ts.map +1 -0
  150. package/src/shade/renderer/hair/hair_scattering_lut.js +271 -0
  151. package/src/shade/renderer/hair/hair_stamp.d.ts +33 -0
  152. package/src/shade/renderer/hair/hair_stamp.d.ts.map +1 -0
  153. package/src/shade/renderer/hair/hair_stamp.js +175 -0
  154. package/src/shade/renderer/hair/shader_hair_classes.d.ts +21 -0
  155. package/src/shade/renderer/hair/shader_hair_classes.d.ts.map +1 -0
  156. package/src/shade/renderer/hair/shader_hair_classes.js +86 -0
  157. package/src/shade/renderer/hair/shader_hair_cull.d.ts +31 -0
  158. package/src/shade/renderer/hair/shader_hair_cull.d.ts.map +1 -0
  159. package/src/shade/renderer/hair/shader_hair_cull.js +194 -0
  160. package/src/shade/renderer/hair/shader_hair_lod.d.ts +33 -0
  161. package/src/shade/renderer/hair/shader_hair_lod.d.ts.map +1 -0
  162. package/src/shade/renderer/hair/shader_hair_lod.js +268 -0
  163. package/src/shade/renderer/hair/shader_hair_volume.d.ts +28 -0
  164. package/src/shade/renderer/hair/shader_hair_volume.d.ts.map +1 -0
  165. package/src/shade/renderer/hair/shader_hair_volume.js +167 -0
  166. package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
  167. package/src/shade/renderer/loader/usd/usd_build_scene.d.ts +31 -0
  168. package/src/shade/renderer/loader/usd/usd_build_scene.d.ts.map +1 -1
  169. package/src/shade/renderer/loader/usd/usd_build_scene.js +36 -21
  170. package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts +60 -0
  171. package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts.map +1 -0
  172. package/src/shade/renderer/loader/usd/usd_groom_extension.js +417 -0
  173. package/src/shade/renderer/path_tracer/shader/chunk_sample_material_data.d.ts.map +1 -1
  174. package/src/shade/renderer/path_tracer/shader/chunk_sample_material_data.js +4 -1
  175. package/src/shade/renderer/path_tracer/shader/chunk_shading_closure_from_material_data.d.ts.map +1 -1
  176. package/src/shade/renderer/path_tracer/shader/chunk_shading_closure_from_material_data.js +3 -1
  177. package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
  178. package/src/shade/renderer/postprocess/ssr/SSR.d.ts +4 -1
  179. package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
  180. package/src/shade/renderer/postprocess/ssr/SSR.js +9 -0
  181. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts +16 -1
  182. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts.map +1 -1
  183. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js +47 -3
  184. package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.d.ts.map +1 -1
  185. package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.js +5 -3
  186. package/src/shade/renderer/postprocess/ssr/ssr_combine_shader.d.ts.map +1 -1
  187. package/src/shade/renderer/postprocess/ssr/ssr_combine_shader.js +6 -5
  188. package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment.d.ts.map +1 -1
  189. package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment.js +5 -2
  190. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
  191. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +5 -0
  192. package/src/shade/renderer/rasterize/native/avboit/shader_avboit_splat.d.ts.map +1 -1
  193. package/src/shade/renderer/rasterize/native/avboit/shader_avboit_splat.js +4 -1
  194. package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.d.ts.map +1 -1
  195. package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.js +5 -1
  196. package/src/shade/renderer/rasterize/native/oit/shader_oit_generate_moments.d.ts.map +1 -1
  197. package/src/shade/renderer/rasterize/native/oit/shader_oit_generate_moments.js +7 -4
  198. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts +13 -8
  199. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts.map +1 -1
  200. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.js +18 -14
  201. package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.d.ts +3 -2
  202. package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.d.ts.map +1 -1
  203. package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.js +12 -4
  204. package/src/shade/renderer/shader/chunk/material/MATERIAL_SHADING_INFO_STRUCT.d.ts.map +1 -1
  205. package/src/shade/renderer/shader/chunk/material/MATERIAL_SHADING_INFO_STRUCT.js +1 -0
  206. package/src/shade/renderer/shader/chunk/material/chunk_compute_indirect_specular.js +1 -1
  207. package/src/shade/renderer/shader/chunk/material/chunk_metalness_to_specular_F90.d.ts +16 -0
  208. package/src/shade/renderer/shader/chunk/material/chunk_metalness_to_specular_F90.d.ts.map +1 -0
  209. package/src/shade/renderer/shader/chunk/material/chunk_metalness_to_specular_F90.js +25 -0
  210. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +2 -2
  211. package/src/shade/renderer/shader/compiler/ShaderSwitch.d.ts +1 -1
  212. package/src/shade/renderer/shader/compiler/ShaderSwitchSet.d.ts +1 -1
  213. package/src/shade/renderer/shader/resource/ShaderResourceDescriptor.d.ts +1 -1
  214. package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_point2.d.ts +2 -2
  215. package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_point2.js +2 -2
  216. package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Advanced 3D game engine",
7
7
  "type": "module",
8
8
  "author": "Alexander Goldring",
9
- "version": "3.75.0",
9
+ "version": "3.76.0",
10
10
  "exports": {
11
11
  "./build/*": "./build/*",
12
12
  "./src/*": "./src/*",
@@ -18,5 +18,6 @@ export namespace GameAssetType {
18
18
  let JavaScript: string;
19
19
  let Sound: string;
20
20
  let Font: string;
21
+ let Groom: string;
21
22
  }
22
23
  //# sourceMappingURL=GameAssetType.d.ts.map
@@ -29,5 +29,9 @@ export const GameAssetType = {
29
29
  AnimationGraph: 'x-meep/animation-graph',
30
30
  JavaScript: "text/javascript",
31
31
  Sound: 'audio',
32
- Font: 'font/opentype'
32
+ Font: 'font/opentype',
33
+ /**
34
+ * Strand hair at rest (`Groom`): a groom file, or a USD file whose BasisCurves prims are its groups.
35
+ */
36
+ Groom: 'x-meep/groom'
33
37
  };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * A {@link Groom} as a file: {@link GROOM_FILE_MAGIC}, the format's version (u32), then the groom
3
+ * ({@link GroomSerializationAdapter}).
4
+ *
5
+ * @param {Groom} groom
6
+ * @returns {ArrayBuffer}
7
+ */
8
+ export function groom_to_file(groom: Groom): ArrayBuffer;
9
+ /**
10
+ * The groom a file holds, as {@link groom_to_file} wrote it.
11
+ *
12
+ * @param {ArrayBuffer} data
13
+ * @returns {Groom}
14
+ */
15
+ export function groom_from_file(data: ArrayBuffer): Groom;
16
+ /**
17
+ * The four bytes a groom file opens with, "MGRM", read as a little-endian u32.
18
+ * @type {number}
19
+ */
20
+ export const GROOM_FILE_MAGIC: number;
21
+ /**
22
+ * Loads a {@link Groom} ({@link GameAssetType.Groom}): a groom file, or a USD file whose BasisCurves prims become its
23
+ * groups (`load_groom_usd`), told apart by the file's first bytes. The asset hands out the one groom, so every entity
24
+ * that wears it shares it.
25
+ */
26
+ export class GroomAssetLoader extends AssetLoader<any, any> {
27
+ constructor();
28
+ load(scope: any, path: any, success: any, failure: any, progress: any): Promise<Asset<Groom>>;
29
+ }
30
+ import { Groom } from "../../graphics/hair/Groom.js";
31
+ import { AssetLoader } from "./AssetLoader.js";
32
+ import { Asset } from "../Asset.js";
33
+ //# sourceMappingURL=GroomAssetLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroomAssetLoader.d.ts","sourceRoot":"","sources":["../../../../../src/engine/asset/loaders/GroomAssetLoader.js"],"names":[],"mappings":"AAgBA;;;;;;GAMG;AACH,qCAHW,KAAK,GACH,WAAW,CAcvB;AAED;;;;;GAKG;AACH,sCAHW,WAAW,GACT,KAAK,CAiBjB;AAhDD;;;GAGG;AACH,+BAFU,MAAM,CAE2B;AA8C3C;;;;GAIG;AACH;;IAaI,8FAmBC;CACJ;sBA/FqB,8BAA8B;4BAKxB,kBAAkB;sBAHxB,aAAa"}
@@ -0,0 +1,99 @@
1
+ import { assert } from "../../../core/assert.js";
2
+ import { BinaryBuffer } from "../../../core/binary/BinaryBuffer.js";
3
+ import { load_groom_usd } from "../../../shade/renderer/loader/usd/usd_groom_extension.js";
4
+ import { Groom } from "../../graphics/hair/Groom.js";
5
+ import { GroomSerializationAdapter } from "../../graphics/hair/GroomSerializationAdapter.js";
6
+ import { Asset } from "../Asset.js";
7
+ import { GameAssetType } from "../GameAssetType.js";
8
+ import { ArrayBufferLoader } from "./ArrayBufferLoader.js";
9
+ import { AssetLoader } from "./AssetLoader.js";
10
+
11
+ /**
12
+ * The four bytes a groom file opens with, "MGRM", read as a little-endian u32.
13
+ * @type {number}
14
+ */
15
+ export const GROOM_FILE_MAGIC = 0x4D52474D;
16
+
17
+ /**
18
+ * A {@link Groom} as a file: {@link GROOM_FILE_MAGIC}, the format's version (u32), then the groom
19
+ * ({@link GroomSerializationAdapter}).
20
+ *
21
+ * @param {Groom} groom
22
+ * @returns {ArrayBuffer}
23
+ */
24
+ export function groom_to_file(groom) {
25
+ const adapter = new GroomSerializationAdapter();
26
+ const buffer = new BinaryBuffer();
27
+
28
+ buffer.writeUint32(GROOM_FILE_MAGIC);
29
+ buffer.writeUint32(adapter.version);
30
+
31
+ adapter.serialize(buffer, groom);
32
+
33
+ buffer.trim();
34
+
35
+ return buffer.data;
36
+ }
37
+
38
+ /**
39
+ * The groom a file holds, as {@link groom_to_file} wrote it.
40
+ *
41
+ * @param {ArrayBuffer} data
42
+ * @returns {Groom}
43
+ */
44
+ export function groom_from_file(data) {
45
+ const adapter = new GroomSerializationAdapter();
46
+ const buffer = BinaryBuffer.fromArrayBuffer(data);
47
+
48
+ assert.equal(buffer.readUint32(), GROOM_FILE_MAGIC, 'not a groom file');
49
+
50
+ const version = buffer.readUint32();
51
+
52
+ assert.lessThanOrEqual(version, adapter.version, `a groom file of version ${version}, newer than this engine reads`);
53
+
54
+ const groom = new Groom();
55
+
56
+ adapter.deserialize(buffer, groom);
57
+
58
+ return groom;
59
+ }
60
+
61
+ /**
62
+ * Loads a {@link Groom} ({@link GameAssetType.Groom}): a groom file, or a USD file whose BasisCurves prims become its
63
+ * groups (`load_groom_usd`), told apart by the file's first bytes. The asset hands out the one groom, so every entity
64
+ * that wears it shares it.
65
+ */
66
+ export class GroomAssetLoader extends AssetLoader {
67
+ /**
68
+ * @param {import("../AssetManager.js").AssetManager} assetManager
69
+ * @param {*} context
70
+ */
71
+ async link(assetManager, context) {
72
+ if (assetManager.getLoaderByType(GameAssetType.ArrayBuffer) === undefined) {
73
+ await assetManager.registerLoader(GameAssetType.ArrayBuffer, new ArrayBufferLoader());
74
+ }
75
+
76
+ await super.link(assetManager, context);
77
+ }
78
+
79
+ async load(scope, path, success, failure, progress) {
80
+ try {
81
+ const bytes = await this.assetManager.promise(path, GameAssetType.ArrayBuffer, { scope, progress });
82
+
83
+ /** @type {ArrayBuffer} */
84
+ const data = bytes.create();
85
+
86
+ const is_groom = data.byteLength >= 4 && new DataView(data).getUint32(0, true) === GROOM_FILE_MAGIC;
87
+
88
+ const groom = is_groom ? groom_from_file(data) : await load_groom_usd(data, { fileName: path });
89
+
90
+ const asset = new Asset(() => groom, data.byteLength);
91
+
92
+ success(asset);
93
+
94
+ return asset;
95
+ } catch (e) {
96
+ failure(e);
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Strand hair worn by an entity: a {@link Groom}, carried by the entity's transform, and the colour of its fibres.
3
+ * For a head of hair, attach the entity to the head's bone; the skull is rigid.
4
+ *
5
+ * The component is the hair's description; its strands are drawn where {@link HairSystem} draws them, on the GPU.
6
+ * A game writes these fields and the system picks the change up.
7
+ *
8
+ * The colour is physical: how much melanin a fibre holds, how much of that is the red pheomelanin, and a dye over
9
+ * both. Each strand of the groom moves the melanin by its own variation.
10
+ */
11
+ export class Hair {
12
+ /**
13
+ * @type {import("../../hair/Groom.js").Groom|null}
14
+ */
15
+ groom: import("../../hair/Groom.js").Groom | null;
16
+ /**
17
+ * Melanin in a fibre, from none (white) to 1 (black).
18
+ * @type {number}
19
+ */
20
+ melanin: number;
21
+ /**
22
+ * The share of the melanin that is pheomelanin, from none (brown to black) to all of it (red).
23
+ * @type {number}
24
+ */
25
+ redness: number;
26
+ /**
27
+ * A dye's colour, linear; white is no dye.
28
+ * @readonly
29
+ * @type {Color}
30
+ */
31
+ readonly dye: Color;
32
+ /**
33
+ * How rough a fibre's surface is along its length, from 0 to 1: how wide its highlights spread.
34
+ * @type {number}
35
+ */
36
+ roughness: number;
37
+ /**
38
+ * @param {Hair} other
39
+ * @returns {boolean}
40
+ */
41
+ equals(other: Hair): boolean;
42
+ }
43
+ export namespace Hair {
44
+ let typeName: string;
45
+ }
46
+ import { Color } from "../../../../core/color/Color.js";
47
+ //# sourceMappingURL=Hair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hair.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/hair/Hair.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH;IACI;;OAEG;IACH,OAFU,OAAO,qBAAqB,EAAE,KAAK,GAAC,IAAI,CAErC;IAEb;;;OAGG;IACH,SAFU,MAAM,CAEF;IAEd;;;OAGG;IACH,SAFU,MAAM,CAEJ;IAEZ;;;;OAIG;IACH,cAFU,KAAK,CAEa;IAE5B;;;OAGG;IACH,WAFU,MAAM,CAEA;IAEhB;;;OAGG;IACH,cAHW,IAAI,GACF,OAAO,CAQnB;CACJ;;kBAIS,MAAM;;sBA1DM,iCAAiC"}
@@ -0,0 +1,61 @@
1
+ import { Color } from "../../../../core/color/Color.js";
2
+
3
+ /**
4
+ * Strand hair worn by an entity: a {@link Groom}, carried by the entity's transform, and the colour of its fibres.
5
+ * For a head of hair, attach the entity to the head's bone; the skull is rigid.
6
+ *
7
+ * The component is the hair's description; its strands are drawn where {@link HairSystem} draws them, on the GPU.
8
+ * A game writes these fields and the system picks the change up.
9
+ *
10
+ * The colour is physical: how much melanin a fibre holds, how much of that is the red pheomelanin, and a dye over
11
+ * both. Each strand of the groom moves the melanin by its own variation.
12
+ */
13
+ export class Hair {
14
+ /**
15
+ * @type {import("../../hair/Groom.js").Groom|null}
16
+ */
17
+ groom = null;
18
+
19
+ /**
20
+ * Melanin in a fibre, from none (white) to 1 (black).
21
+ * @type {number}
22
+ */
23
+ melanin = 0.5;
24
+
25
+ /**
26
+ * The share of the melanin that is pheomelanin, from none (brown to black) to all of it (red).
27
+ * @type {number}
28
+ */
29
+ redness = 0;
30
+
31
+ /**
32
+ * A dye's colour, linear; white is no dye.
33
+ * @readonly
34
+ * @type {Color}
35
+ */
36
+ dye = new Color(1, 1, 1, 1);
37
+
38
+ /**
39
+ * How rough a fibre's surface is along its length, from 0 to 1: how wide its highlights spread.
40
+ * @type {number}
41
+ */
42
+ roughness = 0.3;
43
+
44
+ /**
45
+ * @param {Hair} other
46
+ * @returns {boolean}
47
+ */
48
+ equals(other) {
49
+ return this.groom === other.groom
50
+ && this.melanin === other.melanin
51
+ && this.redness === other.redness
52
+ && this.dye.equals(other.dye)
53
+ && this.roughness === other.roughness;
54
+ }
55
+ }
56
+
57
+ /**
58
+ * @readonly
59
+ * @type {string}
60
+ */
61
+ Hair.typeName = "Hair";
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Words of one rest point in {@link GroomGroup#points}: `x | y << 16`, then `z | width << 16`, the top
3
+ * byte of the second word spare.
4
+ * @type {number}
5
+ */
6
+ export const GROOM_POINT_WORDS: number;
7
+ /**
8
+ * Steps a rest point's coordinate takes across its group's bounds: 16 bits, 6 µm over 40 cm.
9
+ * @type {number}
10
+ */
11
+ export const GROOM_POINT_COORDINATE_STEPS: number;
12
+ /**
13
+ * Steps a rest point's width takes from zero to its group's {@link GroomGroup#width_max}: 8 bits.
14
+ * @type {number}
15
+ */
16
+ export const GROOM_POINT_WIDTH_STEPS: number;
17
+ /**
18
+ * The most points a strand of a group has: `2^7 + 1`.
19
+ * @type {number}
20
+ */
21
+ export const GROOM_POINT_COUNT_MAX: number;
22
+ /**
23
+ * Strands of hair that share a point count, as they are at rest: a scalp, the brows, the lashes, a beard.
24
+ *
25
+ * Every strand has {@link point_count} points, `2^k + 1` of them, spaced evenly along its own arc length from
26
+ * the root (its first point) to the tip. The strands are stored in **rank order**: any first `n` of them are a
27
+ * well-spread subset of the group, so drawing a prefix thins the group evenly (`groom_rank_order`).
28
+ *
29
+ * Points are quantized inside the group's {@link bounds} (`GROOM_POINT_WORDS` a point); a point's width is
30
+ * a share of {@link width_max}.
31
+ */
32
+ export class GroomGroup {
33
+ /**
34
+ * @type {string}
35
+ */
36
+ name: string;
37
+ /**
38
+ * Points a strand has, `2^k + 1`, between 2 and {@link GROOM_POINT_COUNT_MAX}.
39
+ * @type {number}
40
+ */
41
+ point_count: number;
42
+ /**
43
+ * @type {number}
44
+ */
45
+ strand_count: number;
46
+ /**
47
+ * The box the points are quantized in: min x, y, z, then max x, y, z, in metres.
48
+ * @type {Float32Array}
49
+ */
50
+ bounds: Float32Array;
51
+ /**
52
+ * The widest a point is, metres.
53
+ * @type {number}
54
+ */
55
+ width_max: number;
56
+ /**
57
+ * The mean width of the group's points, metres: the width the level of detail keeps the group's area
58
+ * by.
59
+ * @type {number}
60
+ */
61
+ width_mean: number;
62
+ /**
63
+ * How far apart the strands grow: the median distance from a root to the nearest other, metres
64
+ * (`groom_root_spacing`). Derived from the roots; not stored.
65
+ * @type {number}
66
+ */
67
+ root_spacing: number;
68
+ /**
69
+ * Rest points, strand after strand in rank order, root first: {@link GROOM_POINT_WORDS} words a point.
70
+ * @type {Uint32Array}
71
+ */
72
+ points: Uint32Array;
73
+ /**
74
+ * A strand's own variation of the colour its groom is given, a strand a byte in rank order: 0 is the
75
+ * least melanin the variation takes, 255 the most, 128 none.
76
+ * @type {Uint8Array}
77
+ */
78
+ variation: Uint8Array;
79
+ /**
80
+ * The largest chord error over the group's strands when only every `2^j`-th point is kept, by `j`, in
81
+ * metres: the distance from a dropped point to the chord between the kept points either side of it.
82
+ * Entry 0 is zero; there are `k + 1` entries for `2^k + 1` points.
83
+ * @type {Float32Array}
84
+ */
85
+ decimation: Float32Array;
86
+ /**
87
+ * @returns {number} entries of the decimation table: `k + 1` for the group's `2^k + 1` points
88
+ */
89
+ get level_count(): number;
90
+ /**
91
+ * Where a rest point is, in metres.
92
+ *
93
+ * @param {number[]|Float32Array|Float64Array} out
94
+ * @param {number} out_offset
95
+ * @param {number} strand rank of the strand
96
+ * @param {number} point index along the strand, from its root
97
+ */
98
+ read_point(out: number[] | Float32Array | Float64Array, out_offset: number, strand: number, point: number): void;
99
+ /**
100
+ * How wide a rest point is, in metres.
101
+ *
102
+ * @param {number} strand rank of the strand
103
+ * @param {number} point index along the strand, from its root
104
+ * @returns {number}
105
+ */
106
+ read_width(strand: number, point: number): number;
107
+ }
108
+ /**
109
+ * A head's hair, or a beast's fur, at rest: its {@link GroomGroup}s. An asset, shared by every entity that wears
110
+ * it; nothing in it changes once it is built.
111
+ */
112
+ export class Groom {
113
+ /**
114
+ * @type {GroomGroup[]}
115
+ */
116
+ groups: GroomGroup[];
117
+ /**
118
+ * @returns {number} strands across every group
119
+ */
120
+ get strand_count(): number;
121
+ /**
122
+ * @returns {number} points across every group
123
+ */
124
+ get point_count(): number;
125
+ /**
126
+ * @param {GroomGroup} group
127
+ */
128
+ add(group: GroomGroup): void;
129
+ }
130
+ //# sourceMappingURL=Groom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Groom.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/hair/Groom.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,gCAFU,MAAM,CAEmB;AAEnC;;;GAGG;AACH,2CAFU,MAAM,CAEmC;AAEnD;;;GAGG;AACH,sCAFU,MAAM,CAE4B;AAE5C;;;GAGG;AACH,oCAFU,MAAM,CAEyB;AAEzC;;;;;;;;;GASG;AACH;IACI;;OAEG;IACH,MAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,aAFU,MAAM,CAEA;IAEhB;;OAEG;IACH,cAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,QAFU,YAAY,CAEO;IAE7B;;;OAGG;IACH,WAFU,MAAM,CAEF;IAEd;;;;OAIG;IACH,YAFU,MAAM,CAED;IAEf;;;;OAIG;IACH,cAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,QAFU,WAAW,CAEO;IAE5B;;;;OAIG;IACH,WAFU,UAAU,CAEU;IAE9B;;;;;OAKG;IACH,YAFU,YAAY,CAEW;IAEjC;;OAEG;IACH,0BAEC;IAED;;;;;;;OAOG;IACH,gBALW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,cAClC,MAAM,UACN,MAAM,SACN,MAAM,QAehB;IAED;;;;;;OAMG;IACH,mBAJW,MAAM,SACN,MAAM,GACJ,MAAM,CAMlB;CACJ;AAED;;;GAGG;AACH;IACI;;OAEG;IACH,QAFU,UAAU,EAAE,CAEV;IAEZ;;OAEG;IACH,2BAQC;IAED;;OAEG;IACH,0BAUC;IAED;;OAEG;IACH,WAFW,UAAU,QAOpB;CACJ"}
@@ -0,0 +1,193 @@
1
+ import { assert } from "../../../core/assert.js";
2
+
3
+ /**
4
+ * Words of one rest point in {@link GroomGroup#points}: `x | y << 16`, then `z | width << 16`, the top
5
+ * byte of the second word spare.
6
+ * @type {number}
7
+ */
8
+ export const GROOM_POINT_WORDS = 2;
9
+
10
+ /**
11
+ * Steps a rest point's coordinate takes across its group's bounds: 16 bits, 6 µm over 40 cm.
12
+ * @type {number}
13
+ */
14
+ export const GROOM_POINT_COORDINATE_STEPS = 0xFFFF;
15
+
16
+ /**
17
+ * Steps a rest point's width takes from zero to its group's {@link GroomGroup#width_max}: 8 bits.
18
+ * @type {number}
19
+ */
20
+ export const GROOM_POINT_WIDTH_STEPS = 0xFF;
21
+
22
+ /**
23
+ * The most points a strand of a group has: `2^7 + 1`.
24
+ * @type {number}
25
+ */
26
+ export const GROOM_POINT_COUNT_MAX = 129;
27
+
28
+ /**
29
+ * Strands of hair that share a point count, as they are at rest: a scalp, the brows, the lashes, a beard.
30
+ *
31
+ * Every strand has {@link point_count} points, `2^k + 1` of them, spaced evenly along its own arc length from
32
+ * the root (its first point) to the tip. The strands are stored in **rank order**: any first `n` of them are a
33
+ * well-spread subset of the group, so drawing a prefix thins the group evenly (`groom_rank_order`).
34
+ *
35
+ * Points are quantized inside the group's {@link bounds} (`GROOM_POINT_WORDS` a point); a point's width is
36
+ * a share of {@link width_max}.
37
+ */
38
+ export class GroomGroup {
39
+ /**
40
+ * @type {string}
41
+ */
42
+ name = "";
43
+
44
+ /**
45
+ * Points a strand has, `2^k + 1`, between 2 and {@link GROOM_POINT_COUNT_MAX}.
46
+ * @type {number}
47
+ */
48
+ point_count = 0;
49
+
50
+ /**
51
+ * @type {number}
52
+ */
53
+ strand_count = 0;
54
+
55
+ /**
56
+ * The box the points are quantized in: min x, y, z, then max x, y, z, in metres.
57
+ * @type {Float32Array}
58
+ */
59
+ bounds = new Float32Array(6);
60
+
61
+ /**
62
+ * The widest a point is, metres.
63
+ * @type {number}
64
+ */
65
+ width_max = 0;
66
+
67
+ /**
68
+ * The mean width of the group's points, metres: the width the level of detail keeps the group's area
69
+ * by.
70
+ * @type {number}
71
+ */
72
+ width_mean = 0;
73
+
74
+ /**
75
+ * How far apart the strands grow: the median distance from a root to the nearest other, metres
76
+ * (`groom_root_spacing`). Derived from the roots; not stored.
77
+ * @type {number}
78
+ */
79
+ root_spacing = 0;
80
+
81
+ /**
82
+ * Rest points, strand after strand in rank order, root first: {@link GROOM_POINT_WORDS} words a point.
83
+ * @type {Uint32Array}
84
+ */
85
+ points = new Uint32Array(0);
86
+
87
+ /**
88
+ * A strand's own variation of the colour its groom is given, a strand a byte in rank order: 0 is the
89
+ * least melanin the variation takes, 255 the most, 128 none.
90
+ * @type {Uint8Array}
91
+ */
92
+ variation = new Uint8Array(0);
93
+
94
+ /**
95
+ * The largest chord error over the group's strands when only every `2^j`-th point is kept, by `j`, in
96
+ * metres: the distance from a dropped point to the chord between the kept points either side of it.
97
+ * Entry 0 is zero; there are `k + 1` entries for `2^k + 1` points.
98
+ * @type {Float32Array}
99
+ */
100
+ decimation = new Float32Array(0);
101
+
102
+ /**
103
+ * @returns {number} entries of the decimation table: `k + 1` for the group's `2^k + 1` points
104
+ */
105
+ get level_count() {
106
+ return this.decimation.length;
107
+ }
108
+
109
+ /**
110
+ * Where a rest point is, in metres.
111
+ *
112
+ * @param {number[]|Float32Array|Float64Array} out
113
+ * @param {number} out_offset
114
+ * @param {number} strand rank of the strand
115
+ * @param {number} point index along the strand, from its root
116
+ */
117
+ read_point(out, out_offset, strand, point) {
118
+ const at = (strand * this.point_count + point) * GROOM_POINT_WORDS;
119
+ const points = this.points;
120
+ const bounds = this.bounds;
121
+
122
+ const w0 = points[at];
123
+ const w1 = points[at + 1];
124
+
125
+ const scale = 1 / GROOM_POINT_COORDINATE_STEPS;
126
+
127
+ out[out_offset] = bounds[0] + (w0 & 0xFFFF) * scale * (bounds[3] - bounds[0]);
128
+ out[out_offset + 1] = bounds[1] + (w0 >>> 16) * scale * (bounds[4] - bounds[1]);
129
+ out[out_offset + 2] = bounds[2] + (w1 & 0xFFFF) * scale * (bounds[5] - bounds[2]);
130
+ }
131
+
132
+ /**
133
+ * How wide a rest point is, in metres.
134
+ *
135
+ * @param {number} strand rank of the strand
136
+ * @param {number} point index along the strand, from its root
137
+ * @returns {number}
138
+ */
139
+ read_width(strand, point) {
140
+ const at = (strand * this.point_count + point) * GROOM_POINT_WORDS;
141
+
142
+ return ((this.points[at + 1] >>> 16) & 0xFF) / GROOM_POINT_WIDTH_STEPS * this.width_max;
143
+ }
144
+ }
145
+
146
+ /**
147
+ * A head's hair, or a beast's fur, at rest: its {@link GroomGroup}s. An asset, shared by every entity that wears
148
+ * it; nothing in it changes once it is built.
149
+ */
150
+ export class Groom {
151
+ /**
152
+ * @type {GroomGroup[]}
153
+ */
154
+ groups = [];
155
+
156
+ /**
157
+ * @returns {number} strands across every group
158
+ */
159
+ get strand_count() {
160
+ let count = 0;
161
+
162
+ for (let i = 0; i < this.groups.length; i++) {
163
+ count += this.groups[i].strand_count;
164
+ }
165
+
166
+ return count;
167
+ }
168
+
169
+ /**
170
+ * @returns {number} points across every group
171
+ */
172
+ get point_count() {
173
+ let count = 0;
174
+
175
+ for (let i = 0; i < this.groups.length; i++) {
176
+ const group = this.groups[i];
177
+
178
+ count += group.strand_count * group.point_count;
179
+ }
180
+
181
+ return count;
182
+ }
183
+
184
+ /**
185
+ * @param {GroomGroup} group
186
+ */
187
+ add(group) {
188
+ assert.defined(group, 'group');
189
+ assert.greaterThan(group.strand_count, 0, 'a group holds strands');
190
+
191
+ this.groups.push(group);
192
+ }
193
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A {@link Groom} as bytes: its groups, each as the renderer reads it, so a load is a copy and nothing is rebuilt.
3
+ *
4
+ * Per group: its name (UTF-8), point count and strand count (u32 each), the quantization box (six f32), the widest and
5
+ * the mean width (f32 each), the decimation table (a u8 count, then f32 each), the rest points (u32, `GROOM_POINT_WORDS`
6
+ * a point) and the strands' variation bytes. The group count (u32) leads.
7
+ */
8
+ export class GroomSerializationAdapter extends BinaryClassSerializationAdapter<any> {
9
+ constructor();
10
+ klass: typeof Groom;
11
+ /**
12
+ * @param {import("../../../core/binary/BinaryBuffer.js").BinaryBuffer} buffer
13
+ * @param {Groom} value
14
+ */
15
+ serialize(buffer: import("../../../core/binary/BinaryBuffer.js").BinaryBuffer, value: Groom): void;
16
+ /**
17
+ * @param {import("../../../core/binary/BinaryBuffer.js").BinaryBuffer} buffer
18
+ * @param {Groom} value
19
+ */
20
+ deserialize(buffer: import("../../../core/binary/BinaryBuffer.js").BinaryBuffer, value: Groom): void;
21
+ }
22
+ import { BinaryClassSerializationAdapter } from "../../ecs/storage/binary/BinaryClassSerializationAdapter.js";
23
+ import { Groom } from "./Groom.js";
24
+ //# sourceMappingURL=GroomSerializationAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroomSerializationAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/hair/GroomSerializationAdapter.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH;;IACI,oBAAc;IAGd;;;OAGG;IACH,kBAHW,OAAO,sCAAsC,EAAE,YAAY,SAC3D,KAAK,QAuBf;IAED;;;OAGG;IACH,oBAHW,OAAO,sCAAsC,EAAE,YAAY,SAC3D,KAAK,QA+Bf;CACJ;gDA5E+C,6DAA6D;sBACxD,YAAY"}