Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions examples/jsm/tsl/display/SSAAPassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ class SSAAPassNode extends PassNode {

//

this._pixelRatio = renderer.getPixelRatio();

const size = renderer.getSize( _size );
const size = renderer.getDrawingBufferSize( _size );

this.setSize( size.width, size.height );
this._sampleRenderTarget.setSize( this.renderTarget.width, this.renderTarget.height );
Expand Down
4 changes: 1 addition & 3 deletions examples/jsm/tsl/display/StereoCompositePassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,9 @@ class StereoCompositePassNode extends PassNode {

//

this._pixelRatio = renderer.getPixelRatio();

this.updateStereoCamera( renderer.coordinateSystem );

const size = renderer.getSize( _size );
const size = renderer.getDrawingBufferSize( _size );
this.setSize( size.width, size.height );

// left
Expand Down
4 changes: 1 addition & 3 deletions examples/jsm/tsl/display/StereoPassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,11 @@ class StereoPassNode extends PassNode {

//

this._pixelRatio = renderer.getPixelRatio();

stereo.cameraL.coordinateSystem = renderer.coordinateSystem;
stereo.cameraR.coordinateSystem = renderer.coordinateSystem;
stereo.update( camera );

const size = renderer.getSize( _size );
const size = renderer.getDrawingBufferSize( _size );
this.setSize( size.width, size.height );

renderer.autoClear = false;
Expand Down
5 changes: 2 additions & 3 deletions examples/webgl_postprocessing_ssaa.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
let gui, stats;

const params = {
sampleLevel: 4,
sampleLevel: 3,
unbiased: true,
camera: 'perspective',
clearColor: 'black',
Expand Down Expand Up @@ -174,7 +174,6 @@
// postprocessing

composer = new EffectComposer( renderer );
composer.setPixelRatio( 1 ); // ensure pixel ratio is always 1 for performance reasons
ssaaRenderPassP = new SSAARenderPass( scene, cameraP );
composer.addPass( ssaaRenderPassP );
ssaaRenderPassO = new SSAARenderPass( scene, cameraO );
Expand All @@ -194,7 +193,7 @@

cameraP.aspect = aspect;
cameraP.setViewOffset( width, height, params.viewOffsetX, 0, width, height );
cameraO.updateProjectionMatrix();
cameraP.updateProjectionMatrix();

cameraO.left = - height * aspect;
cameraO.right = height * aspect;
Expand Down
8 changes: 8 additions & 0 deletions src/Three.TSL.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ export const dispersion = TSL.dispersion;
export const distance = TSL.distance;
export const div = TSL.div;
export const dot = TSL.dot;
export const dot4I8Packed = TSL.dot4I8Packed;
export const dot4U8Packed = TSL.dot4U8Packed;
export const drawIndex = TSL.drawIndex;
export const dynamicBufferAttribute = TSL.dynamicBufferAttribute;
export const element = TSL.element;
Expand Down Expand Up @@ -446,6 +448,10 @@ export const outputStruct = TSL.outputStruct;
export const overloadingFn = TSL.overloadingFn;
export const overrideNode = TSL.overrideNode;
export const overrideNodes = TSL.overrideNodes;
export const pack4xI8 = TSL.pack4xI8;
export const pack4xI8Clamp = TSL.pack4xI8Clamp;
export const pack4xU8 = TSL.pack4xU8;
export const pack4xU8Clamp = TSL.pack4xU8Clamp;
export const packHalf2x16 = TSL.packHalf2x16;
export const packNormalToRGB = TSL.packNormalToRGB;
export const packSnorm2x16 = TSL.packSnorm2x16;
Expand Down Expand Up @@ -626,6 +632,8 @@ export const uniformCubeTexture = TSL.uniformCubeTexture;
export const uniformFlow = TSL.uniformFlow;
export const uniformGroup = TSL.uniformGroup;
export const uniformTexture = TSL.uniformTexture;
export const unpack4xI8 = TSL.unpack4xI8;
export const unpack4xU8 = TSL.unpack4xU8;
export const unpackHalf2x16 = TSL.unpackHalf2x16;
export const unpackNormal = TSL.unpackNormal;
export const unpackRGBToNormal = TSL.unpackRGBToNormal;
Expand Down
1 change: 1 addition & 0 deletions src/nodes/Nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export { default as ConditionalNode } from './math/ConditionalNode.js';
export { default as MathNode } from './math/MathNode.js';
export { default as OperatorNode } from './math/OperatorNode.js';
export { default as PackFloatNode } from './math/PackFloatNode.js';
export { default as Packed4x8IntegerNode } from './math/Packed4x8IntegerNode.js';
export { default as UnpackFloatNode } from './math/UnpackFloatNode.js';

// parsers
Expand Down
1 change: 1 addition & 0 deletions src/nodes/TSL.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export * from './math/BitcountNode.js';
export * from './math/Hash.js';
export * from './math/MathUtils.js';
export * from './math/PackFloatNode.js';
export * from './math/Packed4x8IntegerNode.js';
export * from './math/UnpackFloatNode.js';
export * from './math/TriNoise3D.js';

Expand Down
Loading
Loading