mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
Adjust eyebrow filter strength
This commit is contained in:
parent
42a4fd8884
commit
b6890be73d
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ void DdeFaceTracker::decodePacket(const QByteArray& buffer) {
|
|||
// Use BrowsU_C to control both brows' up and down
|
||||
float browUp = _coefficients[_browUpCenterIndex];
|
||||
if (isFiltering) {
|
||||
const float BROW_VELOCITY_FILTER_STRENGHT = 0.8f;
|
||||
const float BROW_VELOCITY_FILTER_STRENGHT = 0.75f;
|
||||
float velocity = fabs(browUp - _lastBrowUp) / _averageMessageTime;
|
||||
float velocityFilter = glm::clamp(velocity * BROW_VELOCITY_FILTER_STRENGHT, 0.0f, 1.0f);
|
||||
_filteredBrowUp = velocityFilter * browUp + (1.0f - velocityFilter) * _filteredBrowUp;
|
||||
|
|
Loading…
Reference in a new issue