@tscircuit/3d-viewer 0.0.580 → 0.0.581

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 (2) hide show
  1. package/dist/index.js +24 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32710,7 +32710,7 @@ import * as THREE20 from "three";
32710
32710
  // package.json
32711
32711
  var package_default = {
32712
32712
  name: "@tscircuit/3d-viewer",
32713
- version: "0.0.579",
32713
+ version: "0.0.580",
32714
32714
  main: "./dist/index.js",
32715
32715
  module: "./dist/index.js",
32716
32716
  type: "module",
@@ -33388,6 +33388,7 @@ var Canvas = forwardRef(
33388
33388
  // src/react-three/Lights.tsx
33389
33389
  import { useEffect as useEffect15, useMemo as useMemo12 } from "react";
33390
33390
  import * as THREE17 from "three";
33391
+ var UNDERSIDE_LIGHT_FACTOR = 0.75;
33391
33392
  var Lights = ({
33392
33393
  boardDimensions,
33393
33394
  boardCenter,
@@ -33465,6 +33466,28 @@ var Lights = ({
33465
33466
  lightDistance * 0.85,
33466
33467
  lightDistance * 0.95
33467
33468
  ]);
33469
+ addDirectionalLight(
33470
+ "cad-viewer-underside-key-light",
33471
+ 16775406,
33472
+ 1.35 * UNDERSIDE_LIGHT_FACTOR,
33473
+ [
33474
+ keyLightDistance * 0.68,
33475
+ -keyLightDistance * 0.8,
33476
+ -keyLightDistance * 1.08
33477
+ ]
33478
+ );
33479
+ addDirectionalLight(
33480
+ "cad-viewer-underside-fill-light",
33481
+ 14477554,
33482
+ 0.25 * UNDERSIDE_LIGHT_FACTOR,
33483
+ [-lightDistance * 0.85, lightDistance * 0.55, -lightDistance * 0.75]
33484
+ );
33485
+ addDirectionalLight(
33486
+ "cad-viewer-underside-rim-light",
33487
+ 12184275,
33488
+ 0.5 * UNDERSIDE_LIGHT_FACTOR,
33489
+ [-lightDistance * 0.35, lightDistance * 0.85, -lightDistance * 0.95]
33490
+ );
33468
33491
  return rig;
33469
33492
  }, [boardCenter, boardDimensions, shadowsEnabled]);
33470
33493
  useEffect15(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.580",
3
+ "version": "0.0.581",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",