Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: Simplify composer setup in GTAO demo. #27319

Merged
merged 3 commits into from
Dec 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Examples: More clean up.
  • Loading branch information
Mugen87 committed Dec 5, 2023
commit a5c663bcf493080ae2c9bae5e8cca3d10788e5d7
5 changes: 2 additions & 3 deletions examples/webgl_postprocessing_gtao.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
container.appendChild( stats.dom );

renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );

Expand All @@ -84,8 +83,8 @@
controls.enablePan = false;
controls.enableDamping = true;

const width = window.innerWidth * window.devicePixelRatio;
const height = window.innerHeight * window.devicePixelRatio;
const width = window.innerWidth;
const height = window.innerHeight;

composer = new EffectComposer( renderer );

Expand Down