kopia lustrzana https://github.com/robhawkes/vizicities
Fixed pixel ratio issue with post processing
rodzic
42bf0c4518
commit
550ddd421d
|
@ -4288,7 +4288,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
var composer = new _vendorEffectComposer2['default'](renderer);
|
||||
|
||||
var updateSize = function updateSize() {
|
||||
composer.setSize(container.clientWidth, container.clientHeight);
|
||||
var pixelRatio = window.devicePixelRatio;
|
||||
composer.setSize(container.clientWidth * pixelRatio, container.clientHeight * pixelRatio);
|
||||
};
|
||||
|
||||
window.addEventListener('resize', updateSize, false);
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,8 @@ export default function(renderer, container) {
|
|||
var composer = new EffectComposer(renderer);
|
||||
|
||||
var updateSize = function() {
|
||||
composer.setSize(container.clientWidth, container.clientHeight);
|
||||
var pixelRatio = window.devicePixelRatio;
|
||||
composer.setSize(container.clientWidth * pixelRatio, container.clientHeight * pixelRatio);
|
||||
};
|
||||
|
||||
window.addEventListener('resize', updateSize, false);
|
||||
|
|
Ładowanie…
Reference in New Issue