Skip to content

Commit

Permalink
fix(website): Fix examples (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Aug 25, 2024
1 parent 4f4f328 commit 29af549
Show file tree
Hide file tree
Showing 48 changed files with 287 additions and 249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"require": "./dist/index.cjs"
},
"dependencies": {
"@luma.gl/constants": "9.1.0-alpha.16"
"@luma.gl/constants": "9.1.0-alpha.17"
}
}
8 changes: 4 additions & 4 deletions docs/tutorials/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ Open the file `package.json` (created when we initialized npm), and add the foll
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
},
"devDependencies": {
"typescript": "^5.5.0",
Expand All @@ -129,8 +129,8 @@ The full contents of the `package.json` should be the following (dependency vers
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
},
"devDependencies": {
"typescript": "^5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/lighting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The tutorial pages have not yet been updated for luma.gl v9.
:::

<DeviceTabs />
<LightingExample />
<LightingExample devices={["webgl2"]} />

To add lighting, we'll use one of built-in luma.gl shader modules for the first time.
To start, we'll add the `phongLighting` module from **@luma.gl/shadertools** to our imports:
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/transform-feedback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The tutorial pages have not yet been updated for luma.gl v9.
:::

<DeviceTabs />
<TransformFeedbackExample />
<TransformFeedbackExample devices={["webgl2"]} />


In luma.gl, transform feedback is primarily exposed via the [BufferTransform](/docs/api-reference/engine/compute/buffer-transform) class, which simplifies usage by managing input and output buffers. We'll demonstrate its usage by setting up a simple animation that runs completely on the GPU.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/transform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The tutorial pages have not yet been updated for luma.gl v9.
:::

<DeviceTabs />
<TransformExample />
<TransformExample devices={["webgl2"]} />

Transform feedback allows us to capture vertex shader results from one pass and
use them in subsequent passes. It is a powerful tool that can be used to set up massively parrallelized animations
Expand Down
8 changes: 4 additions & 4 deletions examples/api/animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions examples/api/cubemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/constants": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/constants": "9.1.0-alpha.17",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions examples/api/texture-3d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/instancing/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default class AppAnimationLoopTemplate extends AnimationLoopTemplate {
// Draw the cubes
const renderPass = device.beginRenderPass({
clearColor: [0, 0, 0, 1],
clearDepth: true
clearDepth: 1
});

this.cube.draw(renderPass);
Expand Down
10 changes: 5 additions & 5 deletions examples/showcase/instancing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions examples/showcase/persistence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions examples/showcase/postprocessing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"dependencies": {
"@loaders.gl/core": "^4.2.0",
"@loaders.gl/gltf": "^4.2.0",
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/gltf": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/gltf": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/hello-cube/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions examples/tutorials/hello-gltf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"dependencies": {
"@loaders.gl/core": "^4.2.0",
"@loaders.gl/gltf": "^4.2.0",
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/gltf": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/gltf": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions examples/tutorials/hello-instanced-cubes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/hello-instancing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16"
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17"
},
"devDependencies": {
"typescript": "^5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/hello-triangle-geometry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import {webgpuAdapter} from '@luma.gl/webgpu';
import AnimationLoopTemplate from './app.ts';

makeAnimationLoop(AnimationLoopTemplate, {adapters: [/* webgpuAdapter, */ webglAdapter]}).start();
makeAnimationLoop(AnimationLoopTemplate, {adapters: [/* webgpuAdapter, */ webgl2Adapter]}).start();
</script>
<body>
</body>
10 changes: 5 additions & 5 deletions examples/tutorials/hello-triangle-geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16"
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17"
},
"devDependencies": {
"typescript": "^5.5.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/hello-triangle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/hello-two-cubes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/lighting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@math.gl/core": "4.1.0-alpha.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/shader-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16"
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17"
},
"devDependencies": {
"typescript": "^5.5.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/shader-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16"
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17"
},
"devDependencies": {
"typescript": "^5.5.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/tutorials/transform-feedback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/core": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/webgpu": "9.1.0-alpha.16"
"@luma.gl/core": "9.1.0-alpha.17",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@luma.gl/webgpu": "9.1.0-alpha.17"
},
"devDependencies": {
"typescript": "^5.1.6",
Expand Down
6 changes: 3 additions & 3 deletions examples/tutorials/transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"serve": "vite preview"
},
"dependencies": {
"@luma.gl/engine": "9.1.0-alpha.16",
"@luma.gl/shadertools": "9.1.0-alpha.16",
"@luma.gl/webgl": "9.1.0-alpha.16",
"@luma.gl/engine": "9.1.0-alpha.17",
"@luma.gl/shadertools": "9.1.0-alpha.17",
"@luma.gl/webgl": "9.1.0-alpha.17",
"@probe.gl/log": "^4.0.8"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 29af549

Please sign in to comment.