mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Turned off jitter with FXAA
This commit is contained in:
parent
bed7752a1a
commit
d10b5a16f2
1 changed files with 10 additions and 7 deletions
|
@ -482,16 +482,14 @@ JitterSample::SampleSequence::SampleSequence(){
|
|||
}
|
||||
|
||||
void JitterSample::configure(const Config& config) {
|
||||
_freeze = config.freeze;
|
||||
if (config.stop || _freeze) {
|
||||
_freeze = config.stop || config.freeze;
|
||||
if (config.freeze) {
|
||||
auto pausedIndex = config.getIndex();
|
||||
if (_sampleSequence.currentIndex != pausedIndex) {
|
||||
_sampleSequence.currentIndex = pausedIndex;
|
||||
}
|
||||
} else {
|
||||
if (_sampleSequence.currentIndex < 0) {
|
||||
_sampleSequence.currentIndex = config.getIndex();
|
||||
}
|
||||
} else if (config.stop) {
|
||||
_sampleSequence.currentIndex = -1;
|
||||
}
|
||||
_scale = config.scale;
|
||||
}
|
||||
|
@ -505,7 +503,12 @@ void JitterSample::run(const render::RenderContextPointer& renderContext, Output
|
|||
current = -1;
|
||||
}
|
||||
}
|
||||
jitter = _sampleSequence.offsets[(current < 0 ? SEQUENCE_LENGTH : current)];
|
||||
|
||||
jitter.x = 0.0f;
|
||||
jitter.y = 0.0f;
|
||||
if (current >= 0) {
|
||||
jitter = _sampleSequence.offsets[current];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue