From f3fe467c00ffdd2e7279b5a84f650512121fef4b Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 15 Nov 2024 10:11:05 +0800 Subject: [PATCH] fix: fix dirctional light error (#1838) * fix: fix directional light error * chore: commit changeset --- .changeset/kind-ligers-melt.md | 5 +++++ packages/g-plugin-3d/src/lights/DirectionalLight.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/kind-ligers-melt.md diff --git a/.changeset/kind-ligers-melt.md b/.changeset/kind-ligers-melt.md new file mode 100644 index 000000000..3f6b74edf --- /dev/null +++ b/.changeset/kind-ligers-melt.md @@ -0,0 +1,5 @@ +--- +'@antv/g-plugin-3d': patch +--- + +fix directional light error diff --git a/packages/g-plugin-3d/src/lights/DirectionalLight.ts b/packages/g-plugin-3d/src/lights/DirectionalLight.ts index 10fe56088..dc0b35946 100644 --- a/packages/g-plugin-3d/src/lights/DirectionalLight.ts +++ b/packages/g-plugin-3d/src/lights/DirectionalLight.ts @@ -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;