Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60181

Incorrect roughness to mip level mapping in PBR shaders

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.9.0 Beta 1
    • Fix Version/s: 5.9.0 Beta 2, 5.9.0 RC
    • Component/s: Qt3D
    • Labels:
      None
    • Commits:
      6b231725b2b5e0f2d797f8939bd02637d0196942 afbf3d45f6e440b1d71d62a85289bd8fcc98a134

      Description

      When using IBL with PBR shaders the calculation of the mip level from the roughness value relies upon the env maps having a size on 2k (I think). When using smaller env maps, we end up calculating mip levels that are too high and contain bad/missing data leading to broken lighting for very rough materials.

      Check this roughness to mip mapping function and try to use one independent of the env map size or expose properties to control it.

        Attachments

        For Gerrit Dashboard: QTBUG-60181
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              seanharmer Sean Harmer
              Reporter:
              seanharmer Sean Harmer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes