initial implementation of WebGL-based brush renderer
This commit is contained in:
parent
b4c3260f49
commit
bb55e23979
14 changed files with 385 additions and 247 deletions
|
@ -42,7 +42,7 @@ export class User {
|
|||
return result;
|
||||
}
|
||||
|
||||
simulate(wall, interactions) {
|
||||
simulate(chunkAllocator, wall, interactions) {
|
||||
console.group("simulate", this.nickname);
|
||||
for (let interaction of interactions) {
|
||||
if (interaction.kind == "setBrush") {
|
||||
|
@ -71,6 +71,7 @@ export class User {
|
|||
|
||||
if (interaction.kind == "scribble" && this.#expectContKind(ContKind.Scribble)) {
|
||||
renderToChunksInArea(
|
||||
chunkAllocator,
|
||||
this.getScratchLayer(wall),
|
||||
this.simulation.renderArea,
|
||||
(pixmap, translationX, translationY) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue