Skip to content

Commit

Permalink
fix(website): improve example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Nov 11, 2023
1 parent 4ca7cf9 commit 8ca0819
Show file tree
Hide file tree
Showing 39 changed files with 308 additions and 756 deletions.
345 changes: 0 additions & 345 deletions docs/api-reference/shadertools/modules/image-processing.md

This file was deleted.

13 changes: 8 additions & 5 deletions docs/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,21 @@
"api-reference/shadertools/shader-modules",
"api-reference/shadertools/modules/fp32",
"api-reference/shadertools/modules/fp64",
"api-reference/shadertools/modules/image-processing",
"api-reference/shadertools/modules/pbr",
"api-reference/shadertools/modules/picking",
"api-reference/shadertools/modules/project"
]
},

{
"type": "category",
"label": "Shader Passes",
"items": [
"api-reference/shadertools/passes/image-processing"
]
},
"api-reference/shadertools/README",
"api-reference/shadertools/shader-assembler",
"api-reference/shadertools/shader-info",
"api-reference/shadertools/core-shader-modules",
"api-reference/shadertools/effects-shader-modules"
"api-reference/shadertools/shader-info"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ Improvements in particular to the `Buffer`, `TransformFeedback` and `Framebuffer
#### Shader Modules

- `fp64` - fp64 module works under more platforms/GPUs/drivers
- [`picking`](/docs/api-reference/shadertools/core-shader-modules) shader module is moved from deck.gl to luma.gl and has been enhanced to also support object highlighting.
- `picking` shader module is moved from deck.gl to luma.gl and has been enhanced to also support object highlighting.

## Version 4.0

Expand Down
5 changes: 3 additions & 2 deletions examples/showcase/instancing/app.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {Device, Framebuffer, makeRandomNumberGenerator, UniformStore, NumberArray, glsl} from '@luma.gl/core';
//
import type {ShaderUniformType, NumberArray} from '@luma.gl/core';
import {Device, Framebuffer, makeRandomNumberGenerator, UniformStore, glsl} from '@luma.gl/core';
import type {AnimationProps, ModelProps} from '@luma.gl/engine';
import {AnimationLoopTemplate, CubeGeometry, Timeline, Model} from '@luma.gl/engine';
import {readPixelsToArray} from '@luma.gl/webgl';
import {colorPicking, dirlightMaterial} from '@luma.gl/shadertools';
import {Matrix4, radians} from '@math.gl/core';
import {ShaderUniformType} from 'modules/core/src';

const INFO_HTML = `
<p>
Expand Down
Loading

0 comments on commit 8ca0819

Please sign in to comment.