@casmo/tree.js 0.3.0 → 0.4.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 (36) hide show
  1. package/README.md +186 -1
  2. package/dist/effects/effects.d.ts +51 -6
  3. package/dist/effects/effects.d.ts.map +1 -1
  4. package/dist/effects/glow.d.ts +5 -0
  5. package/dist/effects/glow.d.ts.map +1 -1
  6. package/dist/effects/grade.d.ts +3 -0
  7. package/dist/effects/grade.d.ts.map +1 -1
  8. package/dist/effects/highlight.d.ts +35 -0
  9. package/dist/effects/highlight.d.ts.map +1 -0
  10. package/dist/effects/index.d.ts +5 -1
  11. package/dist/effects/index.d.ts.map +1 -1
  12. package/dist/effects/inner-lines.d.ts +39 -0
  13. package/dist/effects/inner-lines.d.ts.map +1 -0
  14. package/dist/effects/live.d.ts +12 -0
  15. package/dist/effects/live.d.ts.map +1 -0
  16. package/dist/effects/mask.d.ts +23 -11
  17. package/dist/effects/mask.d.ts.map +1 -1
  18. package/dist/effects/outline.d.ts +12 -0
  19. package/dist/effects/outline.d.ts.map +1 -1
  20. package/dist/effects/pass.d.ts +27 -0
  21. package/dist/effects/pass.d.ts.map +1 -0
  22. package/dist/effects/screen.d.ts +31 -0
  23. package/dist/effects/screen.d.ts.map +1 -0
  24. package/dist/effects/suggested.d.ts +5 -0
  25. package/dist/effects/suggested.d.ts.map +1 -1
  26. package/dist/effects/tree-id.d.ts +50 -0
  27. package/dist/effects/tree-id.d.ts.map +1 -0
  28. package/dist/effects.js +772 -57
  29. package/dist/effects.js.map +1 -1
  30. package/dist/forest/Forest.d.ts +2 -0
  31. package/dist/forest/Forest.d.ts.map +1 -1
  32. package/dist/{forest-ChEaWJrf.js → forest-lg61rhKM.js} +5 -1
  33. package/dist/{forest-ChEaWJrf.js.map → forest-lg61rhKM.js.map} +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/react.js +1 -1
  36. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as treeScale, B as hexToLinear, C as loadTexture, D as groundTintAmount, E as textureReady, F as KEYFRAME_EPSILON, G as seasonShift, H as leafSeasonAttribute, I as evaluateSeason, J as woodSeasonAttribute, K as segmentWeight, L as fruitSeason, M as hashTreeData, N as crownDistance, O as clampGrowth, P as crownNormal, R as fruitSeasonAttribute, S as getTextureOptions, T as setTextureOptions, U as partSeasonAt, V as leafSeason, W as sampleTrack, X as createRandom, Y as wrapSeason, _ as createBarkMaterial, b as BARK_REPEAT, c as Tree, d as sceneWind, f as applySeasonToLeafMaterial, g as assertWebGPURenderer, h as UnsupportedRendererError, i as ForestVariant, j as hashGeometry, k as growPositions, l as WindResponse, m as createSeasonNodes, n as Forest, o as loadStyle, p as createFruitSeasonNodes, q as srgbToLinear, r as ForestTree, s as createTree, t as createForest, u as Wind, v as createLeafMaterial, w as resolveTextureUrl, x as DEFAULT_TEXTURE_BASE_PATH, y as isFlatShading, z as fruitTracks } from "./forest-ChEaWJrf.js";
1
+ import { A as treeScale, B as hexToLinear, C as loadTexture, D as groundTintAmount, E as textureReady, F as KEYFRAME_EPSILON, G as seasonShift, H as leafSeasonAttribute, I as evaluateSeason, J as woodSeasonAttribute, K as segmentWeight, L as fruitSeason, M as hashTreeData, N as crownDistance, O as clampGrowth, P as crownNormal, R as fruitSeasonAttribute, S as getTextureOptions, T as setTextureOptions, U as partSeasonAt, V as leafSeason, W as sampleTrack, X as createRandom, Y as wrapSeason, _ as createBarkMaterial, b as BARK_REPEAT, c as Tree, d as sceneWind, f as applySeasonToLeafMaterial, g as assertWebGPURenderer, h as UnsupportedRendererError, i as ForestVariant, j as hashGeometry, k as growPositions, l as WindResponse, m as createSeasonNodes, n as Forest, o as loadStyle, p as createFruitSeasonNodes, q as srgbToLinear, r as ForestTree, s as createTree, t as createForest, u as Wind, v as createLeafMaterial, w as resolveTextureUrl, x as DEFAULT_TEXTURE_BASE_PATH, y as isFlatShading, z as fruitTracks } from "./forest-lg61rhKM.js";
2
2
  import { C as CURRENT_SCHEMA_VERSION, E as MAX_BRANCH_LEVELS, S as BARK_TYPES, T as LEAF_TYPES, _ as DEFAULT_GROUND_TINT, a as SUGGESTED_MATERIAL_FEATURES, b as DEFAULT_TRANSLUCENCY, c as extendDefinition, d as TreeDefinitionError, f as DEFAULT_BRANCH_LEVEL, g as DEFAULT_FRUIT_COLOR, h as DEFAULT_FRUIT_AMOUNT, l as fetchDefinition, m as DEFAULT_FRUIT, n as styleLabel, o as materialFeaturesOf, p as DEFAULT_DEFINITION, r as styleOfShading, s as withMaterialFeatures, t as STYLE_NAMES, u as parseDefinition, v as DEFAULT_OCCLUSION, w as FRUIT_TYPES, x as coneCurve, y as DEFAULT_ROOTS } from "./names-BE9he6CS.js";
3
3
  import { t as SEASON_PROFILES } from "./profiles-BAiyeFlh.js";
4
4
  import { BufferAttribute, BufferGeometry, Color, DoubleSide, Group, Mesh, MeshStandardMaterial } from "three/webgpu";
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { O as clampGrowth, Y as wrapSeason, a as forestTreeKey, d as sceneWind, o as loadStyle, s as createTree, t as createForest } from "./forest-ChEaWJrf.js";
1
+ import { O as clampGrowth, Y as wrapSeason, a as forestTreeKey, d as sceneWind, o as loadStyle, s as createTree, t as createForest } from "./forest-lg61rhKM.js";
2
2
  import { use, useEffect, useLayoutEffect, useMemo, useState } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  // src/react/useTreeStyle.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casmo/tree.js",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Procedural trees for three.js (WebGPURenderer, TSL node materials).",
5
5
  "keywords": [
6
6
  "three",