Skip to content

Tone mapping ruins the constant background color #61

Open
@LiangliangNan

Description

@LiangliangNan

Hi, thanks for the great project!

In the shader code in tonemap.glsl, tonemap is applied to all pixels, which is not correct if a constant background color is desired. See the effects below:

Without tone mapping:
Screen Shot 2021-12-29 at 12 20 30

With tone mapping:
Screen Shot 2021-12-29 at 12 21 39

I think whether it is background can be recorded as the w component in pathTraceTexture. Maybe there are other better ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions