mirror of
https://github.com/lubosz/overte.git
synced 2025-04-15 19:47:38 +02:00
Bizarelly the jitter was 2 pixel wide...?
This commit is contained in:
parent
08146a7618
commit
d0d974d4f5
3 changed files with 4 additions and 4 deletions
|
@ -515,8 +515,8 @@ void JitterSample::run(const render::RenderContextPointer& renderContext) {
|
|||
auto width = (float)args->_viewport.z;
|
||||
auto height = (float)args->_viewport.w;
|
||||
|
||||
auto jx = 2.0f * jit.x / width;
|
||||
auto jy = 2.0f * jit.y / height;
|
||||
auto jx = jit.x / width;
|
||||
auto jy = jit.y / height;
|
||||
|
||||
if (!args->isStereo()) {
|
||||
auto projMat = viewFrustum.getProjection();
|
||||
|
|
|
@ -58,7 +58,7 @@ class JitterSample {
|
|||
public:
|
||||
|
||||
enum {
|
||||
SEQUENCE_LENGTH = 128
|
||||
SEQUENCE_LENGTH = 16
|
||||
};
|
||||
|
||||
using Config = JitterSampleConfig;
|
||||
|
|
|
@ -32,7 +32,7 @@ void main(void) {
|
|||
vec3 worldPos = (getViewInverse() * vec4(eyePos, 1.0)).xyz;
|
||||
|
||||
vec3 prevEyePos = (getPreviousView() * vec4(worldPos, 1.0)).xyz;
|
||||
vec4 prevClipPos = (frameTransform._previousProjection[stereoSide.x] * vec4(prevEyePos, 1.0));
|
||||
vec4 prevClipPos = (frameTransform._projection[stereoSide.x] * vec4(prevEyePos, 1.0));
|
||||
vec2 prevUV = 0.5 * (prevClipPos.xy / prevClipPos.w) + vec2(0.5);
|
||||
|
||||
//vec2 imageSize = getWidthHeight(0);
|
||||
|
|
Loading…
Reference in a new issue