initial implementation of WebGL-based brush renderer

This commit is contained in:
りき萌 2025-09-05 20:20:45 +02:00
parent b4c3260f49
commit bb55e23979
14 changed files with 385 additions and 247 deletions

View file

@ -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) => {