@react-three/tsl 10.0.0-canary.975e1e7 → 10.0.0-canary.98dbd28

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/tsl",
3
- "version": "10.0.0-canary.975e1e7",
3
+ "version": "10.0.0-canary.98dbd28",
4
4
  "description": "TSL resource hooks for react-three-fiber: uniforms, nodes, buffers, GPU storage and render pipelines on WebGPU",
5
5
  "keywords": [
6
6
  "react",
@@ -49,14 +49,14 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@react-three/fiber": "^10.0.0-alpha.6",
52
- "react": ">=19.0 <19.3",
52
+ "react": ">=19.0 <19.4",
53
53
  "three": ">=0.185.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/three": "^0.185.0",
57
57
  "@webgpu/types": "^0.1.64",
58
58
  "three": ">=0.185.0",
59
- "@react-three/fiber": "10.0.0-canary.975e1e7"
59
+ "@react-three/fiber": "10.0.0-canary.98dbd28"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "unbuild",
package/readme.md CHANGED
@@ -3,7 +3,7 @@
3
3
  TSL resource hooks for [react-three-fiber](https://github.com/pmndrs/react-three-fiber) on WebGPU: shared uniforms, nodes, buffers, GPU storage and render pipelines.
4
4
 
5
5
  ```bash
6
- npm install @react-three/tsl
6
+ npm install @react-three/tsl@alpha
7
7
  ```
8
8
 
9
9
  ```tsx
@@ -32,7 +32,7 @@ function Driver() {
32
32
  }
33
33
 
34
34
  export const App = () => (
35
- <Canvas renderer>
35
+ <Canvas>
36
36
  <Wobble />
37
37
  <Driver />
38
38
  </Canvas>
@@ -46,8 +46,8 @@ export const App = () => (
46
46
  | `useBuffers`, `useGPUStorage` | Buffers and storage textures for compute |
47
47
  | `useRenderPipeline` | Post-processing with three's `RenderPipeline` (scene pass, MRT, output node) |
48
48
 
49
- Resources belong to the renderer: a primary canvas, its secondary canvases (`renderer={{ primaryCanvas }}`) and every portal inside them share one set. They live on the primary canvas's `RootState` (`state.uniforms`, `state.nodes`, `state.buffers`, `state.gpuStorage`); secondaries hold the same objects and portals inherit them from their parent (a portal's scene and camera stay its own), so `state.uniforms` reads the same everywhere.
49
+ Resources belong to the renderer: a `<Canvas primary>`, the canvases sharing its renderer (every other WebGPU canvas, or `share="id"`) and every portal inside them share one set. They live on the primary canvas's `RootState` (`state.uniforms`, `state.nodes`, `state.buffers`, `state.gpuStorage`); secondaries hold the same objects and portals inherit them from their parent (a portal's scene and camera stay its own), so `state.uniforms` reads the same everywhere.
50
50
 
51
- Works under any Canvas that runs the WebGPU renderer: `@react-three/fiber` with the `renderer` prop, or `@react-three/fiber/webgpu`. It reaches fiber only through the three-free `@react-three/fiber/extension` entry, so it adds no renderer and no second copy of fiber to your bundle.
51
+ Works under any Canvas that runs the WebGPU renderer: `@react-three/fiber` or `@react-three/fiber/webgpu` (not `/legacy`). It reaches fiber only through the three-free `@react-three/fiber/extension` entry, so it adds no renderer and no second copy of fiber to your bundle.
52
52
 
53
53
  Full documentation: [WebGPU & TSL](https://github.com/pmndrs/react-three-fiber/tree/v10/docs/webgpu).