Skip to content

Confused on the definition and effect of toneMapping #4756

@domenic

Description

@domenic

This is probably just my ignorance, but I was trying to review the toneMapping feature and found these two definitions of it:

https://gpuweb.github.io/gpuweb/#dom-gpucanvasconfiguration-tonemapping

The tone mapping determines how the content of textures returned by getCurrentTexture() are to be displayed.

https://gpuweb.github.io/gpuweb/#canvas-color-space

The toneMapping determines the handling of values outside of the [0, 1] interval in the color space of the screen.

These seem like very different things. The former, which is the actual <dfn>, says that it only affects getCurrentTexture(). The latter seems to imply it affects display of content to the screen.

Are both true?


Additionally, I could not find any normative statement (of the form "the browser must behave this way") connected to the toneMapping property. The statements above are phrased as statements of fact (see this taxonomy), but not requirements on browsers. Are there requirements about tone mapping somewhere in the spec?

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU APIcopyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions