Set default enable2DGS to false. Update docs and include DoF focus blur settings. Make procedural-splats work better on Android. Fix touch controls on examples. (#65)

This commit is contained in:
Andreas Sundquist
2025-06-24 00:42:38 -07:00
committed by GitHub
parent 70c9cb90a9
commit 06b1564246
6 changed files with 12 additions and 6 deletions
-1
View File
@@ -41,7 +41,6 @@
renderer,
apertureAngle: 0.02,
focalDistance: 5.0,
enable2DGS: false,
});
scene.add(spark);
+1
View File
@@ -14,6 +14,7 @@
width: 100%;
height: 100%;
outline: none; /* Remove default focus outline */
touch-action: none;
}
#main-gui {
position: absolute;
+1 -1
View File
@@ -39,7 +39,7 @@
</script>
<script type="module">
import * as THREE from "three";
import { SplatMesh, SparkControls, SparkRenderer } from "@sparkjsdev/spark";
import { SplatMesh, SparkRenderer } from "@sparkjsdev/spark";
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { getAssetFileURL } from "/examples/js/get-asset-url.js";
+3 -1
View File
@@ -8,6 +8,9 @@
body {
margin: 0;
}
canvas {
touch-action: none;
}
</style>
</head>
@@ -28,7 +31,6 @@
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement)