new! fast! WebGL renderer
This commit is contained in:
parent
bf4d538651
commit
83754a0282
6 changed files with 408 additions and 36 deletions
|
@ -22,6 +22,7 @@ export class Painter {
|
|||
let x = Math.floor(-chunkX * wall.chunkSize + centerX);
|
||||
let y = Math.floor(-chunkY * wall.chunkSize + centerY);
|
||||
let chunk = wall.getOrCreateChunk(chunkX, chunkY);
|
||||
chunk.markModified();
|
||||
|
||||
let renderResult = haku.renderValue(chunk.pixmap, x, y);
|
||||
if (renderResult.status != "ok") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue