feat: implement imposters at large zoom scales

This commit is contained in:
2024-03-20 01:40:42 +01:00
parent 70d7c57e46
commit 05e13733e2
11 changed files with 231 additions and 66 deletions

View File

@ -4,6 +4,7 @@
import Graph from "$lib/components/graph/Graph.svelte";
import { MemoryRuntimeExecutor } from "$lib/runtime-executor";
import { MemoryNodeRegistry } from "$lib/node-registry";
import { LinearSRGBColorSpace } from "three";
const nodeRegistry = new MemoryNodeRegistry();
const runtimeExecutor = new MemoryRuntimeExecutor(nodeRegistry);
@ -14,7 +15,7 @@
if (graph) {
graphManager.load(JSON.parse(graph));
} else {
graphManager.load(graphManager.createTemplate("grid", 10, 10));
graphManager.load(graphManager.createTemplate("tree", 5));
}
graphManager.on("save", (graph) => {
@ -47,7 +48,12 @@
<!-- </div> -->
<div id="canvas-wrapper">
<Canvas shadows={false} renderMode="on-demand" colorManagementEnabled={false}>
<Canvas
shadows={false}
renderMode="on-demand"
colorManagementEnabled={false}
colorSpace={LinearSRGBColorSpace}
>
<!-- <PerfMonitor /> -->
<Graph graph={graphManager} bind:debug />
</Canvas>