mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
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:
committed by
GitHub
parent
70c9cb90a9
commit
06b1564246
@@ -41,7 +41,6 @@
|
||||
renderer,
|
||||
apertureAngle: 0.02,
|
||||
focalDistance: 5.0,
|
||||
enable2DGS: false,
|
||||
});
|
||||
scene.add(spark);
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
outline: none; /* Remove default focus outline */
|
||||
touch-action: none;
|
||||
}
|
||||
#main-gui {
|
||||
position: absolute;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user