Skip to content

Replace premultipliedAlpha property with getter/setter#331

Open
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:premultiply-alpha-setter
Open

Replace premultipliedAlpha property with getter/setter#331
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:premultiply-alpha-setter

Conversation

@mrxz
Copy link
Copy Markdown
Collaborator

@mrxz mrxz commented May 4, 2026

In Spark 0.1 the premultipliedAlpha property could be changed on the fly. Since 2.0.0 this no longer works, as it's only propagated to the underlying material in the constructor. This PR replaces the premultipliedAlpha property with a getter/setter pair that uses the underlying material.premultipliedAlpha property directly.

Additionally some of the new properties in SparkRendererOptions weren't using proper JSDoc comments, these have been fixed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant