fix native and web screenshot rendering

This commit is contained in:
2026-03-23 23:05:08 -07:00
parent 29107bc141
commit 0d47228782
7 changed files with 322 additions and 26 deletions

View File

@@ -28,7 +28,11 @@ export default function SurfaceView({ meshData }) {
const width = container.clientWidth;
const height = width; // 1:1 aspect
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: false });
const renderer = new THREE.WebGLRenderer({
antialias: true,
alpha: false,
preserveDrawingBuffer: true,
});
renderer.setSize(width, height);
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setClearColor(0x0f172a);