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

Provide way to use for looped lights in materials

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • 6.6
    • None
    • Quick: 3D
    • None
    • 3
    • 2022 Qt Quick 3D: Week 39-40, 2022 Qt Quick 3D: Week 41-42, 2022 Qt Quick 3D: Week 43-44

    Description

      Currently the fragment shader for generated materials (default, custom, principaled, specularglossy) will generate lighting code for each punctual light in the scene.  That means that each time the number of lights in the scene changes, a new shader is needed.  Shader generation at runtime can cause frame drops while the shader compilation occurs.  On many devices this could be avoided by just using a for loop to iterate over the light structure and apply lighting for each light available with the same shader.

      Attachments

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

        Activity

          People

            kskau Kristoffer Skau
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change