Skip to content

Fix #12775: Change default texture to transparent#13409

Open
gy1016 wants to merge 1 commit into
CesiumGS:mainfrom
gy1016:fix-default-texture-transparent
Open

Fix #12775: Change default texture to transparent#13409
gy1016 wants to merge 1 commit into
CesiumGS:mainfrom
gy1016:fix-default-texture-transparent

Conversation

@gy1016

@gy1016 gy1016 commented Apr 15, 2026

Copy link
Copy Markdown

Changes

This PR fixes #12775 by changing the default texture and cube map from white [255, 255, 255, 255]\ to transparent [0, 0, 0, 0].

Problem

When constructing a new Material, users may see a white flash during material loading. This is because the Update-loop-based image loading model that Material employs causes a brief period where the white default texture is visible.

Solution

Make the default texture transparent instead of white. This way, materials won't flash white into existence before loading.

Files Changed

  • \packages/engine/Source/Renderer/Context.js: Changed defaultTexture and defaultCubeMap from [255, 255, 255, 255]\ to [0, 0, 0, 0]\
  • \CHANGES.md: Added entry for this fix

Testing

  • No test changes required as existing tests only check if defaultTexture is used, not its color value
  • Manual testing recommended to verify no visual regressions

Changed defaultTexture and defaultCubeMap from white [255,255,255,255]
to transparent [0,0,0,0] to prevent white flashing during material loading.
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for the pull request, @gy1016! Welcome to the Cesium community!

In order for us to review your PR, please complete the following steps:

Review Pull Request Guidelines to make sure your PR gets accepted quickly.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default texture should be transparent instead of white

2 participants