mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Merging and adding Olivier's fixes to taa
This commit is contained in:
parent
e0110ff7e6
commit
1c3b4b0c9b
3 changed files with 9 additions and 9 deletions
|
@ -317,7 +317,7 @@ mat3 taa_evalNeighbourColorVariance(vec3 sourceColor, vec2 fragUV, vec2 fragVelo
|
|||
|
||||
|
||||
vec3 mu = sumSamples / vec3(9.0);
|
||||
vec3 sigma = sqrt(sumSamples2 / vec3(9.0) - mu * mu);
|
||||
vec3 sigma = sqrt(max(sumSamples2 / vec3(9.0) - mu * mu, vec3(0.0)));
|
||||
|
||||
float gamma = params.covarianceGamma;
|
||||
vec3 cmin = mu - gamma * sigma;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
(function() {
|
||||
var TABLET_BUTTON_NAME = "TAA";
|
||||
var QMLAPP_URL = Script.resolvePath("./Antialiasing.qml");
|
||||
var QMLAPP_URL = Script.resolvePath("./antialiasing.qml");
|
||||
|
||||
|
||||
var onLuciScreen = false;
|
||||
|
|
|
@ -12,8 +12,8 @@ import QtQuick 2.7
|
|||
import QtQuick.Controls 1.4
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
import "../lib/styles-uit"
|
||||
import "../lib/controls-uit" as HifiControls
|
||||
import "qrc:///qml/styles-uit"
|
||||
import "qrc:///qml/controls-uit" as HifiControls
|
||||
|
||||
|
||||
import "configSlider"
|
||||
|
@ -129,7 +129,7 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
}
|
||||
HifiControls.ConfigSlider {
|
||||
ConfigSlider {
|
||||
label: qsTr("Covariance gamma")
|
||||
integral: false
|
||||
config: Render.getConfig("RenderMainView.Antialiasing")
|
||||
|
@ -145,7 +145,7 @@ Rectangle {
|
|||
onCheckedChanged: { Render.getConfig("RenderMainView.Antialiasing")["feedbackColor"] = checked }
|
||||
}
|
||||
|
||||
HifiControls.ConfigSlider {
|
||||
ConfigSlider {
|
||||
label: qsTr("Source blend")
|
||||
integral: false
|
||||
config: Render.getConfig("RenderMainView.Antialiasing")
|
||||
|
@ -172,7 +172,7 @@ Rectangle {
|
|||
onCheckedChanged: { Render.getConfig("RenderMainView.Antialiasing")["showCursorPixel"] = checked }
|
||||
}
|
||||
}
|
||||
HifiControls.ConfigSlider {
|
||||
ConfigSlider {
|
||||
label: qsTr("Debug Region <")
|
||||
integral: false
|
||||
config: Render.getConfig("RenderMainView.Antialiasing")
|
||||
|
@ -186,7 +186,7 @@ Rectangle {
|
|||
checked: Render.getConfig("RenderMainView.Antialiasing")["showClosestFragment"]
|
||||
onCheckedChanged: { Render.getConfig("RenderMainView.Antialiasing")["showClosestFragment"] = checked }
|
||||
}
|
||||
HifiControls.ConfigSlider {
|
||||
ConfigSlider {
|
||||
label: qsTr("Debug Velocity Threshold [pix]")
|
||||
integral: false
|
||||
config: Render.getConfig("RenderMainView.Antialiasing")
|
||||
|
@ -194,7 +194,7 @@ Rectangle {
|
|||
max: 50
|
||||
min: 0.0
|
||||
}
|
||||
HifiControls.ConfigSlider {
|
||||
ConfigSlider {
|
||||
label: qsTr("Debug Orb Zoom")
|
||||
integral: false
|
||||
config: Render.getConfig("RenderMainView.Antialiasing")
|
||||
|
|
Loading…
Reference in a new issue