mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:36:41 +02:00
171 lines
4.5 KiB
QML
171 lines
4.5 KiB
QML
//
|
|
// Antialiasing.qml
|
|
//
|
|
// Created by Sam Gateau on 8/14/2017
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
// Copyright 2024 Overte e.V.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 1.4
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import stylesUit 1.0
|
|
import controlsUit 1.0 as HifiControls
|
|
|
|
import "../configSlider"
|
|
import "../../lib/plotperf"
|
|
|
|
import "../../lib/prop" as Prop
|
|
|
|
|
|
Column{
|
|
id: antialiasing
|
|
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
|
|
Prop.PropScalar {
|
|
label: "MSAA"
|
|
object: Render.getConfig("RenderMainView.PreparePrimaryBufferForward")
|
|
property: "numSamples"
|
|
min: 1
|
|
max: 32
|
|
integral: true
|
|
}
|
|
|
|
Prop.PropEnum {
|
|
label: "Deferred AA Method"
|
|
object: Render.getConfig("RenderMainView.AntialiasingSetup")
|
|
property: "mode"
|
|
enums: [
|
|
"Off",
|
|
"TAA",
|
|
"FXAA",
|
|
]
|
|
}
|
|
Prop.PropEnum {
|
|
id: jitter
|
|
label: "Jitter"
|
|
object: Render.getConfig("RenderMainView.AntialiasingSetup")
|
|
property: "state"
|
|
enums: [
|
|
"Off",
|
|
"Paused",
|
|
"On",
|
|
]
|
|
}
|
|
Separator {}
|
|
|
|
Prop.PropScalar {
|
|
visible: (Render.getConfig("RenderMainView.AntialiasingSetup").state == 1)
|
|
label: "Sample Index"
|
|
object: Render.getConfig("RenderMainView.AntialiasingSetup")
|
|
property: "index"
|
|
// min: -1
|
|
// max: 32
|
|
readOnly: true
|
|
integral: true
|
|
}
|
|
Row {
|
|
visible: (Render.getConfig("RenderMainView.AntialiasingSetup").state == 1)
|
|
spacing: 10
|
|
|
|
HifiControls.Button {
|
|
text: "<"
|
|
onClicked: { Render.getConfig("RenderMainView.AntialiasingSetup").prev(); }
|
|
}
|
|
HifiControls.Button {
|
|
text: ">"
|
|
onClicked: { Render.getConfig("RenderMainView.AntialiasingSetup").next(); }
|
|
}
|
|
}
|
|
ConfigSlider {
|
|
label: qsTr("Jitter scale")
|
|
integral: false
|
|
config: Render.getConfig("RenderMainView.AntialiasingSetup")
|
|
property: "scale"
|
|
max: 2.0
|
|
min: 0.25
|
|
height: 38
|
|
}
|
|
Separator {}
|
|
Prop.PropBool {
|
|
label: "Constrain color"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "constrainColor"
|
|
}
|
|
Prop.PropScalar {
|
|
label: "Covariance gamma"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "covarianceGamma"
|
|
max: 1.5
|
|
min: 0.5
|
|
}
|
|
Separator {}
|
|
Prop.PropBool {
|
|
label: "Feedback history color"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "feedbackColor"
|
|
}
|
|
Prop.PropBool {
|
|
label: "History bicubic fetch"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "bicubicHistoryFetch"
|
|
}
|
|
Prop.PropScalar {
|
|
label: "Source blend"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "blend"
|
|
max: 1.0
|
|
min: 0.0
|
|
}
|
|
Prop.PropScalar {
|
|
label: "Post sharpen"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "sharpen"
|
|
max: 1.0
|
|
min: 0.0
|
|
}
|
|
Separator {}
|
|
Prop.PropBool {
|
|
label: "Debug"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "debug"
|
|
}
|
|
Prop.PropBool {
|
|
label: "Show Debug Cursor"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "showCursorPixel"
|
|
}
|
|
Prop.PropScalar {
|
|
label: "Debug Region <"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "debugX"
|
|
max: 1.0
|
|
min: 0.0
|
|
}
|
|
Prop.PropBool {
|
|
label: "Closest Fragment"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "showClosestFragment"
|
|
}
|
|
Prop.PropScalar {
|
|
label: "Debug Velocity Threshold [pix]"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "debugShowVelocityThreshold"
|
|
max: 50
|
|
min: 0.0
|
|
}
|
|
Prop.PropScalar {
|
|
label: "Debug Orb Zoom"
|
|
object: Render.getConfig("RenderMainView.Antialiasing")
|
|
property: "debugOrbZoom"
|
|
max: 32.0
|
|
min: 1.0
|
|
}
|
|
}
|
|
|