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

RHI QMetalRoughMaterial roughness parameter issue with QEnvironmentLight

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.0
    • Qt3D
    • None
    • C++, Windows 10, NVIDIA GeForce RTX 3070 Laptop GPU
    • Windows

    Description

      In QMetalRoughMaterial the roughness parameter has no effect when using QEnvironmentLight and the RHI. I have tried it with the "opengl", "vulkan", and "d3d11" backends for the RHI, they all have the same issue.  If I define "DEBUG_SPECULAR_LODS" in the  "metalrough.inc.frag" shader code it does show that different roughness values pick different values for "lod", but the  "textureLod(envLight_specular, l, lod).rgb" call seems to yield the same result regardless of the "lod" value handed to it.

       

      If I switch from the RHI to the non-RHI desktop OpenGL backend, the roughness works as expected.  

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            daz_cjones Christopher Jones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes