Bizarelly the jitter was 2 pixel wide...?

This commit is contained in:
Olivier Prat 2018-04-17 12:24:12 +02:00
parent 08146a7618
commit d0d974d4f5
3 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -58,7 +58,7 @@ class JitterSample {
public:
enum {
SEQUENCE_LENGTH = 128
SEQUENCE_LENGTH = 16
};
using Config = JitterSampleConfig;

View file

@ -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);