src/effect/TemporalSuperSampling.js
function (renderer, camera) {
        var viewport = renderer.viewport;
        var dpr = viewport.devicePixelRatio || renderer.getDevicePixelRatio();
        var width = viewport.width * dpr;
        var height = viewport.height * dpr;

        var offset = this._haltonSequence[this._frame % this._haltonSequence.length];

        var translationMat = new Matrix4();
        translationMat.array[12] = (offset[0] * 2.0 - 1.0) / width;
        translationMat.array[13] = (offset[1] * 2.0 - 1.0) / height;

        Matrix4.mul(camera.projectionMatrix, translationMat, camera.projectionMatrix);

        Matrix4.invert(camera.invProjectionMatrix, camera.projectionMatrix);
    }
function (renderer, camera) {
        var viewport = renderer.viewport;
        var dpr = viewport.devicePixelRatio || renderer.getDevicePixelRatio();
        var width = viewport.width * dpr;
        var height = viewport.height * dpr;

        var offset = this._haltonSequence[this._frame % this._haltonSequence.length];

        var translationMat = new Matrix4();
        translationMat.array[12] = (offset[0] * 2.0 - 1.0) / width;
        translationMat.array[13] = (offset[1] * 2.0 - 1.0) / height;

        Matrix4.mul(camera.projectionMatrix, translationMat, camera.projectionMatrix);

        Matrix4.invert(camera.invProjectionMatrix, camera.projectionMatrix);
    }
function ( renderer , camera ) { var viewport = renderer . viewport ; var dpr = viewport . devicePixelRatio || renderer . getDevicePixelRatio ( ) ; var width = viewport . width * dpr ; var height = viewport . height * dpr ; var offset = this . _haltonSequence [ this . _frame % this . _haltonSequence . length ] ; var translationMat = new Matrix4 ( ) ; translationMat . array [ 12 ] = ( offset [ 0 ] * 2.0 - 1.0 ) / width ; translationMat . array [ 13 ] = ( offset [ 1 ] * 2.0 - 1.0 ) / height ; Matrix4 . mul ( camera . projectionMatrix , translationMat , camera . projectionMatrix ) ; Matrix4 . invert ( camera . invProjectionMatrix , camera . projectionMatrix ) ; }
Jitter camera projectionMatrix
@parma {clay.Renderer} renderer
@param {clay.Camera} camera
Jitter camera projectionMatrix