threejs-debug-compose 0.1.0 → 0.1.1
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/README.md +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,12 +8,12 @@ Composable TSL debug views for a Three.js WebGPU render pipeline.
|
|
|
8
8
|
|
|
9
9
|
The demo renders the scene into compact WebGPU MRT passes, exposes Beauty/Normal/Depth plus packed material buffers, and composites them through a fullscreen `RenderPipeline`.
|
|
10
10
|
|
|
11
|
-

|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
15
|
```tsx
|
|
16
|
-
import { DebugViews } from "
|
|
16
|
+
import { DebugViews } from "threejs-debug-compose/react"
|
|
17
17
|
|
|
18
18
|
<DebugViews
|
|
19
19
|
views={[
|
|
@@ -127,7 +127,7 @@ import { float, vec4 } from "three/tsl"
|
|
|
127
127
|
Interactive GUI for switching views at runtime:
|
|
128
128
|
|
|
129
129
|
```tsx
|
|
130
|
-
import { useDebugViewsControls } from "
|
|
130
|
+
import { useDebugViewsControls } from "threejs-debug-compose/react"
|
|
131
131
|
|
|
132
132
|
const controls = useDebugViewsControls({
|
|
133
133
|
viewLabels: ["Beauty", "Normal", "Depth", "Base Color / Albedo"],
|
|
@@ -148,7 +148,8 @@ For custom shader/debug nodes that may be recreated between React renders, prefe
|
|
|
148
148
|
|
|
149
149
|
```tsx
|
|
150
150
|
import { float, vec4 } from "three/tsl"
|
|
151
|
-
import { createCustomDebugView, DEFAULT_DEBUG_VIEWS
|
|
151
|
+
import { createCustomDebugView, DEFAULT_DEBUG_VIEWS } from "threejs-debug-compose"
|
|
152
|
+
import { DebugViews } from "threejs-debug-compose/react"
|
|
152
153
|
|
|
153
154
|
const fresnelView = createCustomDebugView({
|
|
154
155
|
id: "shader:fresnel",
|