Skip to content

fix: make Html occlusion material transparent#2736

Open
raashish1601 wants to merge 1 commit into
pmndrs:masterfrom
raashish1601:codex/2352-html-occlusion-transparent-material
Open

fix: make Html occlusion material transparent#2736
raashish1601 wants to merge 1 commit into
pmndrs:masterfrom
raashish1601:codex/2352-html-occlusion-transparent-material

Conversation

@raashish1601

Copy link
Copy Markdown

Why

Closes #2352.

Html's default blending occlusion plane uses a shader that writes vec4(0.0, 0.0, 0.0, 0.0), but the generated shaderMaterial was not marked as transparent. That means the alpha channel can be ignored by the material pipeline, leaving an opaque backing square behind simple HTML content.

What

Mark the default occlusion shaderMaterial as transparent so its zero-alpha fragment is actually blended away. Custom material props are left untouched.

Checks

  • corepack yarn prettier --check src/web/Html.tsx
  • corepack yarn eslint src/web/Html.tsx
  • corepack yarn typecheck
  • corepack yarn build (passes with existing Rollup unused-import warnings and outdated Browserslist data warning)
  • git diff --check

@vercel

vercel Bot commented May 17, 2026

Copy link
Copy Markdown

@raashish1601 is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

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.

White background on Html elements with occlude="blending"

1 participant