Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pixplot/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,11 @@
p = p * s;

// translate the cell; translation = current; targetTranslation = destination
vec3 p0 = p + translation;
vec3 p1 = p + targetTranslation;
vec3 pos = mix(p0, p1, percent);

vec3 pos = mix(translation, targetTranslation, percent);
//pos += p;
// get the ultimate cell position
vec4 world = modelViewMatrix * vec4(pos, 1.0);
world += vec4(p, 1.0);
gl_Position = projectionMatrix * world;
}
</script>
Expand Down