Skip to content

Postprocessing and MeshPhysicalMaterial transmission rendering issue in HalfFloat type #431

@epouliquen

Description

@epouliquen

Description of the bug

Any MeshPhysicalMaterial using transmission has rendering issue when HDR image is seen in refraction : It creates "burning" artifacts.

This appears only when the effectcomposer type is in HalfFloat or Float types. But using none of these types, refraction is ok but everything else has banding.

I don't understand why this happens because reading Three js Renderers sources show that they use Halfloat type texture for refraction renderTarget...

The issue happens for any kinf of effect pass of the postprocessing lib (except RenderPass) (I've tried with saturation, SSAO, ToneMapping etc).

To Reproduce

Please try this codesandbox to reproduce burning artifacts : https://codesandbox.io/s/halffloat-transmission-issue-2j3hr7?file=/src/index.js

Expected behavior

No blue parts (seems segative) as you can see in under screenshot

Screenshots

image

Library versions used

  • Three: 0.146.0
  • Post Processing: 6.29.1

Desktop

  • OS: Windows
  • Browser Chrom
  • Graphics hardware: NVIDIA

Metadata

Metadata

Assignees

No one assigned

    Labels

    external bugA bug that can't be fixed in this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions