HDR cannot enable when build to webGL platform

Problem description

When Unity project published as WebGL platform, HDR cannot be enabled.

  1. When Using built-in pipeline, set ProjectSettings -->Graphics -->Tier Settings, checked “Use HDR” for all Tiers, and set HDR Mode correct; Set Camera to use forward rendering and HDR to use project settings;

  2. When Using URP pipeline, checked HDR under Quality of the render asset in inspector; Set Camera to use forward rendering and HDR to use project settings.

  3. Under two pipelines, use Script in the Start() method and set mainCamera. useHDR=true;

In all conditions,I found that HDR cannot be turned on

Unity version

2022.3 LTS, Unity 6.0

Graphics API use webGL2

Platform

Chrome v128

How are you determining HDR is not being used?

There are two places where HDR fits in. Rendering pipeline, HDR is used to render to floating-point textures so there isn’t a loss of precision for rendering. For display, HDR means that the floating-point texture is used for display, and not converted to an LDR format for display.

Unfortunately web browsers do not support HDR displays for canvases, so with WebGL it will always get converted to an LDR format for display. But it still uses the HDR floating-point texture for the render pipeline.

Are you asking about the HDR render pipeline, or the HDR display?