Lower MIN_ALPHA from 0.01 to 0.5/255, the lowest conceivable value that could be encoded in a Uint8, allowing highly transparent objects to render better. (#37)

Add "sortRadial" option to Editor to allow toggling between radial and Z-depth sorting.
This commit is contained in:
Andreas Sundquist
2025-06-06 12:53:19 -07:00
committed by GitHub
parent 0045be0c39
commit 7a4142c62a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -72,7 +72,7 @@
import { getAssetFileURL } from "/examples/js/get-asset-url.js";
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.01, 1000);
camera.position.set(0, 0, 1);
const canvas = document.getElementById("canvas");
@@ -463,6 +463,7 @@
gui.add(guiOptions, "stats").name("Show frame stats").onChange((value) => {
stats.dom.style.display = value ? "block" : "none";
});
gui.add(forge.defaultView, "sortRadial").name("Radial sort").listen();
gui.add(grid, "opacity", 0, 1, 0.01).name("Grid opacity").listen();
const normalColor = dyno.dynoBool(false);