Skip to content
Snippets Groups Projects
Commit a634c7a5 authored by Alexander Rose's avatar Alexander Rose
Browse files

adjust lines mapping/vertex indices

- to work well with position iterator for coloring
parent 353c5d6d
No related branches found
No related tags found
No related merge requests found
......@@ -89,10 +89,10 @@ export namespace LinesBuilder {
function fillMappingAndIndices(n: number, mb: Float32Array, ib: Uint32Array) {
for (let i = 0; i < n; ++i) {
const mo = i * 8;
mb[mo] = -1; mb[mo + 1] = 1;
mb[mo + 2] = -1; mb[mo + 3] = -1;
mb[mo + 4] = 1; mb[mo + 5] = 1;
mb[mo + 6] = 1; mb[mo + 7] = -1;
mb[mo] = -1; mb[mo + 1] = -1;
mb[mo + 2] = 1; mb[mo + 3] = -1;
mb[mo + 4] = -1; mb[mo + 5] = 1;
mb[mo + 6] = 1; mb[mo + 7] = 1;
}
for (let i = 0; i < n; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment