Skip to content

Commit

Permalink
fix: fix dirctional light error (#1838)
Browse files Browse the repository at this point in the history
* fix: fix directional light error

* chore: commit changeset
  • Loading branch information
Aarebecca authored Nov 15, 2024
1 parent 81b9cbc commit f3fe467
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-ligers-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@antv/g-plugin-3d': patch
---

fix directional light error
2 changes: 2 additions & 0 deletions packages/g-plugin-3d/src/lights/DirectionalLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export interface DirectionalLightProps extends LightProps {
}

export class DirectionalLight extends Light {
static PARSED_STYLE_LIST = new Set([...Light.PARSED_STYLE_LIST, 'direction']);

define = 'NUM_DIR_LIGHTS';
order = 10;

Expand Down

0 comments on commit f3fe467

Please sign in to comment.