Skip to content

Different default background colors of WebGLRenderer and WebGPURenderer #28751

@boytchev

Description

@boytchev

Description

The default background color of WebGLRenderer is black.
The default background color of WebGPURenderer is white.

It will improve the consistency if both renderers have the same default background colors.

Reproduction steps

  1. Create a WebGL renderer, a scene, a camera and render the scene. The background color is black.
  2. Create a WebGPU renderer, a scene, a camera and renderasync the scene. The background is white.

Code

(See the live examples for code)

Live example

Screenshots

WebGL black background (the canvas has red border):

image

WebGPU white background (the canvas has red border):

image

Version

r165

Device

Desktop

Browser

Chrome, Firefox

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions