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
680a3fd7
Commit
680a3fd7
authored
Apr 30, 2017
by
amandaghassaei
Browse files
small changes
parent
c7a77f3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/dynamic/dynamicModel.js
View file @
680a3fd7
...
...
@@ -159,7 +159,7 @@ function initDynamicModel(globals){
function
render
(){
// var vectorLength =
2
;
// var vectorLength =
1
;
// globals.gpuMath.setProgram("packToBytes");
// globals.gpuMath.setUniformForProgram("packToBytes", "u_vectorLength", vectorLength, "1f");
// globals.gpuMath.setSize(textureDim*vectorLength, textureDim);
...
...
@@ -170,7 +170,7 @@ function initDynamicModel(globals){
// var pixels = new Uint8Array(height*textureDimCreases*4*vectorLength);
// globals.gpuMath.readPixels(0, 0, textureDimCreases * vectorLength, height, pixels);
// var parsedPixels = new Float32Array(pixels.buffer);
// for (var i = 0; i <
parsedPixels.length
; i+
=2
) {
// for (var i = 0; i <
1
; i+
+
) {
// console.log(parsedPixels[i])
// }
// } else {
...
...
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