Format
This commit is contained in:
parent
3755177843
commit
4d96749087
2 changed files with 5 additions and 4 deletions
|
|
@ -146,9 +146,9 @@ export const PolygonFactory = (
|
||||||
private get actualVertices(): Array<vec2> {
|
private get actualVertices(): Array<vec2> {
|
||||||
return this.vertices.length < vertexCount
|
return this.vertices.length < vertexCount
|
||||||
? ([
|
? ([
|
||||||
...this.vertices,
|
...this.vertices,
|
||||||
...new Array(vertexCount - this.vertices.length).fill(this.vertices[0]),
|
...new Array(vertexCount - this.vertices.length).fill(this.vertices[0]),
|
||||||
] as Array<vec2>)
|
] as Array<vec2>)
|
||||||
: this.vertices;
|
: this.vertices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,8 @@ export class ParallelCompiler {
|
||||||
console.error(
|
console.error(
|
||||||
formatLog(
|
formatLog(
|
||||||
'parallel-compiler',
|
'parallel-compiler',
|
||||||
`Error: ${error}\nSource (line ${line}):\n${shader.source.split('\n')[line - 1]
|
`Error: ${error}\nSource (line ${line}):\n${
|
||||||
|
shader.source.split('\n')[line - 1]
|
||||||
}`
|
}`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue