|
@@ -71,11 +71,13 @@ THREE.AnaglyphEffect = function ( renderer, width, height ) {
|
|
|
|
|
|
this.setSize = function ( width, height ) {
|
|
this.setSize = function ( width, height ) {
|
|
|
|
|
|
- _renderTargetL.setSize( width, height );
|
|
|
|
- _renderTargetR.setSize( width, height );
|
|
|
|
-
|
|
|
|
renderer.setSize( width, height );
|
|
renderer.setSize( width, height );
|
|
|
|
|
|
|
|
+ var pixelRatio = renderer.getPixelRatio();
|
|
|
|
+
|
|
|
|
+ _renderTargetL.setSize( width * pixelRatio, height * pixelRatio );
|
|
|
|
+ _renderTargetR.setSize( width * pixelRatio, height * pixelRatio );
|
|
|
|
+
|
|
};
|
|
};
|
|
|
|
|
|
this.render = function ( scene, camera ) {
|
|
this.render = function ( scene, camera ) {
|