SCurveTonemap.qml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (C) 2020 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick
  4. import QtQuick3D
  5. Effect {
  6. property real shoulderSlope: 1.0 // 0.0 - 3.0
  7. property real shoulderEmphasis: 0 // -1.0 - 1.0
  8. property real toeSlope: 1.0 // 0.0 - 3.0
  9. property real toeEmphasis: 0 // -1.0 - 1.0
  10. property real contrastBoost: 0 // -1.0 - 2.0
  11. property real saturationLevel: 1 // 0.0 - 2.0
  12. property real gammaValue: 2.2 // 0.1 - 8.0
  13. property bool useExposure: false
  14. property real whitePoint: 1.0 // 0.01 - 128.0
  15. property real exposureValue: 1.0 // 0.01 - 16.0
  16. Shader {
  17. id: tonemapShader
  18. stage: Shader.Fragment
  19. shader: "qrc:/qtquick3deffects/shaders/scurvetonemap.frag"
  20. }
  21. Buffer {
  22. // LDR output
  23. id: defaultOutput
  24. format: Buffer.RGBA8
  25. }
  26. passes: [
  27. Pass {
  28. shaders: [ tonemapShader ]
  29. output: defaultOutput
  30. }
  31. ]
  32. }