Skip to content

Commit

Permalink
docs: postprocess imports from luma.gl/effects (#9436)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored Feb 18, 2025
1 parent 6953688 commit 31132ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/core/post-process-effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Parameters:
## Example

```js
import {brightnessContrast} from '@luma.gl/shadertools';
import {brightnessContrast} from '@luma.gl/effects';
import {PostProcessEffect} from '@deck.gl/core';

const postProcessEffect = new PostProcessEffect(brightnessContrast, {
Expand Down
8 changes: 4 additions & 4 deletions docs/developer-guide/using-effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ The post-processing effect applies screen space pixel manipulation effects to th
*Interactive demo of PostProcessEffect*


`@luma.gl/shadertools` provides a collection of [shader modules](https://luma.gl/docs/api-reference/shadertools/shader-passes/image-processing) that implements some common image processing algorithms. You may also refer to their source code to see how to implement your own.
`@luma.gl/effects` provides a collection of [shader modules](https://luma.gl/docs/api-reference/shadertools/shader-passes/image-processing) that implements some common image processing algorithms. You may also refer to their source code to see how to implement your own.

<Tabs groupId="language">
<TabItem value="js" label="JavaScript">

```js
import {brightnessContrast} from '@luma.gl/shadertools';
import {brightnessContrast} from '@luma.gl/effects';
import {Deck, PostProcessEffect} from '@deck.gl/core';

const postProcessEffect = new PostProcessEffect(brightnessContrast, {
Expand All @@ -190,7 +190,7 @@ const deckInstance = new Deck({
<TabItem value="ts" label="TypeScript">

```ts
import {brightnessContrast, BrightnessContrastProps} from '@luma.gl/shadertools';
import {brightnessContrast, BrightnessContrastProps} from '@luma.gl/effects';
import {Deck, PostProcessEffect} from '@deck.gl/core';

const postProcessEffect = new PostProcessEffect(brightnessContrast, {
Expand All @@ -210,7 +210,7 @@ const deckInstance = new Deck({
```tsx
import React from 'react';
import DeckGL from '@deck.gl/react';
import {brightnessContrast, BrightnessContrastProps} from '@luma.gl/shadertools';
import {brightnessContrast, BrightnessContrastProps} from '@luma.gl/effects';
import {PostProcessEffect} from '@deck.gl/core';

const postProcessEffect = new PostProcessEffect(brightnessContrast, {
Expand Down

0 comments on commit 31132ef

Please sign in to comment.