Skip to content

Commit 3db1bb8

Browse files
committed
chore: bump three
1 parent 16f85ab commit 3db1bb8

File tree

3 files changed

+66
-66
lines changed

3 files changed

+66
-66
lines changed

apps/examples/src/app/misc/webgpu-tsl/tsl.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import type { NodeRepresentation, ShaderNodeObject } from 'three/tsl';
1+
import type { ShaderNodeObject } from 'three/tsl';
22
import { Fn, If, PI2, atan, frontFacing, output, positionLocal, vec4 } from 'three/tsl';
33
import type { Node } from 'three/webgpu';
44

5-
type AngleInputs = { startAngle: NodeRepresentation; arcAngle: NodeRepresentation };
5+
type AngleInputs = { startAngle: ShaderNodeObject<Node>; arcAngle: ShaderNodeObject<Node> };
66

77
const inAngle = Fn(
8-
([position, startAngle, endAngle]: [ShaderNodeObject<Node>, NodeRepresentation, NodeRepresentation]) => {
8+
([position, startAngle, endAngle]: [ShaderNodeObject<Node>, ShaderNodeObject<Node>, ShaderNodeObject<Node>]) => {
99
const angle = atan(position.y, position.x).sub(startAngle).mod(PI2).toVar();
1010
return angle.greaterThan(0).and(angle.lessThan(endAngle));
1111
},
1212
);
1313

14-
export const outputNodeFn = Fn(({ startAngle, arcAngle, color }: AngleInputs & { color: NodeRepresentation }) => {
14+
export const outputNodeFn = Fn(({ startAngle, arcAngle, color }: AngleInputs & { color: ShaderNodeObject<Node> }) => {
1515
inAngle(positionLocal.xy, startAngle, arcAngle).discard();
1616
const finalOutput = output;
1717
If(frontFacing.not(), () => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@tweakpane/core": "^2.0.5",
5050
"@types/jest": "29.5.14",
5151
"@types/node": "20.14.12",
52-
"@types/three": "^0.177.0",
52+
"@types/three": "^0.178.0",
5353
"@typescript-eslint/utils": "8.34.0",
5454
"autoprefixer": "^10.4.21",
5555
"cypress": "14.4.1",
@@ -83,7 +83,7 @@
8383
"storybook": "9.0.15",
8484
"storybook-addon-deep-controls": "^0.9.4",
8585
"tailwindcss": "^4.1.11",
86-
"three": "^0.177.0",
86+
"three": "^0.178.0",
8787
"ts-jest": "^29.4.0",
8888
"ts-morph": "^26.0.0",
8989
"ts-node": "10.9.2",

pnpm-lock.yaml

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)