Skip to content

Force premultipliedAlpha for subtractive blending too#5828

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
vincentfretin:blending-subtractive-premultipliedAlpha
Jun 13, 2026
Merged

Force premultipliedAlpha for subtractive blending too#5828
dmarcos merged 1 commit into
aframevr:masterfrom
vincentfretin:blending-subtractive-premultipliedAlpha

Conversation

@vincentfretin

Copy link
Copy Markdown
Contributor

three.js's WebGLState requires material.premultipliedAlpha = true for both SubtractiveBlending and MultiplyBlending. The previous fix (#5810) only handled multiply, so subtractive blending (e.g. in the showcase/ui example) still emitted "THREE.WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true". Extend the force to subtractive.

I got the infinite error log on the https://localhost:8080/showcase/ui/ example. (npm run start:https in the repo)

three.js's WebGLState requires material.premultipliedAlpha = true for
both SubtractiveBlending and MultiplyBlending. The previous fix (aframevr#5810)
only handled multiply, so subtractive blending (e.g. in the showcase/ui
example) still emitted "THREE.WebGLState: SubtractiveBlending requires
material.premultipliedAlpha = true". Extend the force to subtractive.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dmarcos dmarcos merged commit 59c9016 into aframevr:master Jun 13, 2026
1 check passed
@dmarcos

dmarcos commented Jun 13, 2026

Copy link
Copy Markdown
Member

thank you!

@vincentfretin vincentfretin deleted the blending-subtractive-premultipliedAlpha branch June 13, 2026 16:28
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.

2 participants