Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
d30fa6c6
Commit
d30fa6c6
authored
May 02, 2017
by
amandaghassaei
Browse files
small changes
parent
709bcbd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/threeView.js
View file @
d30fa6c6
...
...
@@ -158,6 +158,9 @@ function initThreeView(globals) {
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
var
width
=
window
.
innerWidth
;
var
height
=
window
.
innerHeight
;
ssaoPass
.
uniforms
[
'
size
'
].
value
.
set
(
width
,
height
);
var
pixelRatio
=
renderer
.
getPixelRatio
();
var
newWidth
=
Math
.
floor
(
width
/
pixelRatio
)
||
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment