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;