Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-8095

Moving CustomMaterials to the material library will remove the dynamic property qualification

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • QDS 3.8
    • QDS 3.8
    • Material Editor
    • None
    • 1
    • d72f5674b5 (qt-creator/qt-creator/8.0) d72f5674b5 (qt-creator/qt-creator/qds/3.8) d72f5674b5 (qt-creator/qt-creator/9.0) d72f5674b5 (qt-creator/qt-creator/master) d72f5674b5 (qt-creator/qt-creator/qds/dev) d72f5674b5 (qt-creator/tqtc-qt-creator/8.0)
    • QDS Oulu - 2022 Week 43/44

    Description

      When moving CustomMaterials to the material library we remove the dynamic property qualification

      For example:

       CustomMaterial {
                  id: customMaterial
                  fragmentShader: "shaders/flaremat.frag"
                  destinationBlend: CustomMaterial.OneMinusSrcAlpha
      
                  
                  property TextureInput smoke: TextureInput {
                      texture: Texture {
                          source: "images/smoke.png"
                      }
                      enabled: true
                  }
                  objectName: "customMaterial"
                  sourceBlend: CustomMaterial.SrcAlpha
                  cullMode: Material.NoCulling
      
                  property real uTime: 0
                  property TextureInput tex: TextureInput {
                      texture: Texture {
                          source: "images/headlightflare.png"
                      }
                      enabled: true
                  }
                  vertexShader: "shaders/flaremat.vert"
              }
      

      Is turned into

       CustomMaterial {
                  id: customMaterial
                  fragmentShader: "shaders/flaremat.frag"
                  destinationBlend: CustomMaterial.OneMinusSrcAlpha
                  
                  smoke: TextureInput {
                      texture: Texture {
                          source: "images/smoke.png"
                      }
                      enabled: true
                  }
                  objectName: "customMaterial"
                  sourceBlend: CustomMaterial.SrcAlpha
                  cullMode: Material.NoCulling
      
                  uTime: 0
                  tex: TextureInput {
                      texture: Texture {
                          source: "images/headlightflare.png"
                      }
                      enabled: true
                  }
                  vertexShader: "shaders/flaremat.vert"
              }
      
      

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes