Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Mar 20, 2024
1 parent e886c26 commit 4ae7d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/upgrade-guide.md
Expand Up @@ -105,6 +105,9 @@ loaders.gl dependencies are updated to v4. Although most version differences are
- If the layer prop `dataTransform` is used to pre-process data, the loaded data object might have changed. For example, `CSVLoader` now yields [a new table format](https://loaders.gl/docs/specifications/category-table).
- For a complete list of breaking changes and improvements, see [loaders.gl 4.0 upgrade guide](https://loaders.gl/docs/upgrade-guide#upgrading-to-v40).

### Others

- Custom effects: the `Effect` interface has changed. `preRender` and `postRender` no longer receives device/context as an argument, implement the `setup()` lifecycle method instead.

## Upgrading from deck.gl v8.8 to v8.9

Expand Down
5 changes: 2 additions & 3 deletions modules/core/src/effects/lighting/lighting-effect.ts
Expand Up @@ -90,12 +90,11 @@ export default class LightingEffect implements Effect {
}
this._applyDefaultLights();

const useShadow = this.directionalLights.some(light => light.shadow);
if (useShadow !== this.shadow && this.context) {
this.shadow = this.directionalLights.some(light => light.shadow);
if (this.context) {
// Create resources if necessary
this.setup(this.context);
}
this.shadow = useShadow;
this.props = props;
}

Expand Down

0 comments on commit 4ae7d8e

Please sign in to comment.