Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@triplex/lib": "0.69.20",
"@triplex/ux": "0.72.4",
"@types/cors": "^2.8.17",
"@types/flexsearch": "^0.7.6",
"@types/raf-schd": "^4.0.3",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"@vercel/og": "^0.6.3",
"autoprefixer": "^10.4.14",
"bind-event-listener": "^3.0.0",
Expand All @@ -37,7 +37,7 @@
"react-dom": "^19.1.0",
"suspend-react": "^0.1.3",
"tailwindcss": "^3.2.4",
"three": "^0.172.0",
"three": "^0.182.0",
"ts-node": "^10.9.1",
"typescript": "^5.8.3",
"valibot": "^0.25.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/caustics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/postprocessing": "^3.0.4",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/edge-cases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/error-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"typedef": "echo \"Not implemented\""
},
"dependencies": {
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/rapier": "^2.1.0",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/gitplex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"dependencies": {
"@paper-design/shaders-react": "^0.0.21",
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@triplex/lib": "0.69.20",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"bind-event-listener": "3.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwindcss": "^3.2.4",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/luma-splats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"dependencies": {
"@lumaai/luma-web": "^0.1.14",
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/rapier": "^2.1.0",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/magic-box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"maath": "^0.6.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/mecha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/xr": "^6.6.17",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
2 changes: 1 addition & 1 deletion examples/missing-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
},
"dependencies": {
"@types/react": "^19.1.6",
"@types/three": "^0.171.0"
"@types/three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/no-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"typedef": "echo \"Not implemented\""
},
"dependencies": {
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/room/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"maath": "^0.6.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/snow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0",
"three": "^0.182.0",
"three-custom-shader-material": "^6.3.0"
}
}
6 changes: 3 additions & 3 deletions examples/test-fixture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/uikit": "^0.8.19",
"@react-three/xr": "^6.6.17",
"@triplex/api": "workspace:*",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/uikit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/rapier": "^2.1.0",
"@react-three/uikit": "^0.8.19",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
6 changes: 3 additions & 3 deletions examples/viverse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/viverse": "^0.1.11",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
4 changes: 4 additions & 0 deletions examples/webgpu/.triplex/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://triplex.dev/config.schema.json",
"webgpu": true
}
17 changes: 17 additions & 0 deletions examples/webgpu/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "@example/webgpu",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "echo \"Not implemented\"",
"typedef": "echo \"Not implemented\""
},
"dependencies": {
"@react-three/fiber": "10.0.0-alpha.1",
"@types/react": "^19.1.6",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.182.0"
}
}
24 changes: 24 additions & 0 deletions examples/webgpu/src/scene.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { useNodes, useUniforms } from "@react-three/fiber/webgpu";
import { Fn, positionLocal, sin, time, vec3 } from "three/tsl";

export function Box() {
const { uIntensity } = useUniforms({ uIntensity: 0.2 });

const nodes = useNodes(() => ({
wobble: Fn(() => vec3(sin(time), sin(time.mul(1.3)), sin(time.mul(2)))),
}));

return (
<>
<mesh>
<boxGeometry />
<meshStandardNodeMaterial
positionNode={positionLocal.add(nodes.wobble().mul(uIntensity))}
/>
</mesh>

<pointLight color="white" intensity={10} position={[1, 2, 2]} />
<ambientLight intensity={0.5} />
</>
);
}
22 changes: 22 additions & 0 deletions examples/webgpu/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"isolatedModules": true,
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "es2022"],
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
"paths": {
"@/*": ["./src/*"]
},
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"types": ["@react-three/fiber"]
},
"include": ["."],
"exclude": ["node_modules"]
}
6 changes: 3 additions & 3 deletions examples/xr-bowling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@react-three/drei": "^10.1.1",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@react-three/xr": "^6.6.17",
"@types/react": "^19.1.6",
"@types/three": "^0.171.0",
"@types/three": "^0.182.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"three": "^0.172.0"
"three": "^0.182.0"
}
}
4 changes: 2 additions & 2 deletions packages/@triplex/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@babel/plugin-syntax-jsx": "^7.24.1",
"@httptoolkit/httpolyglot": "^2.2.2",
"@react-three/fiber": "^9.1.2",
"@react-three/fiber": "10.0.0-alpha.1",
"@swc/cli": "^0.1.59",
"@swc/core": "^1.6.5",
"@triplex/lib": "0.69.20",
Expand All @@ -47,7 +47,7 @@
"node-forge": "^1.3.1",
"react": "^19.1.0",
"resolve-package-path": "^4.0.3",
"three": "^0.172.0",
"three": "^0.182.0",
"typescript": "^5.8.3",
"vite-plugin-glsl": "^1.4.1",
"vite-tsconfig-paths": "^5.1.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/@triplex/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export async function createServer({
try {
const template = rootHTML({
loadingIndicator: loadingLogo({
color: "rgb(59 130 246)",
color: "white",
position: "hint",
variant: "stroke",
}),
Expand Down
Loading
Loading