-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1e9263
commit cccfeaa
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,6 +313,11 @@ export function _drawLinesBevel(opt: DrawLinesOpt) { | |
for (let i = 0; i < vertices.length; i++) { | ||
attributes.pos[i * 2] = vertices[i].x + offset.x; | ||
attributes.pos[i * 2 + 1] = vertices[i].y + offset.y; | ||
if (opt.color) { | ||
attributes.color[i * 3] = opt.color.r; | ||
attributes.color[i * 3 + 1] = opt.color.g; | ||
attributes.color[i * 3 + 2] = opt.color.g; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mflerackers
Author
Member
|
||
} | ||
} | ||
|
||
drawRaw( | ||
|
@@ -510,6 +515,11 @@ export function _drawLinesRound(opt: DrawLinesOpt) { | |
for (let i = 0; i < vertices.length; i++) { | ||
attributes.pos[i * 2] = vertices[i].x + offset.x; | ||
attributes.pos[i * 2 + 1] = vertices[i].y + offset.y; | ||
if (opt.color) { | ||
attributes.color[i * 3] = opt.color.r; | ||
attributes.color[i * 3 + 1] = opt.color.g; | ||
attributes.color[i * 3 + 2] = opt.color.g; | ||
} | ||
} | ||
|
||
drawRaw( | ||
|
@@ -677,6 +687,11 @@ export function _drawLinesMiter(opt: DrawLinesOpt) { | |
for (let i = 0; i < vertices.length; i++) { | ||
attributes.pos[i * 2] = vertices[i].x + offset.x; | ||
attributes.pos[i * 2 + 1] = vertices[i].y + offset.y; | ||
if (opt.color) { | ||
attributes.color[i * 3] = opt.color.r; | ||
attributes.color[i * 3 + 1] = opt.color.g; | ||
attributes.color[i * 3 + 2] = opt.color.g; | ||
} | ||
} | ||
|
||
drawRaw( | ||
|
you did r, g, g, not r, g, b