mirror of
https://github.com/storytold/spark.git
synced 2026-10-17 00:12:59 +00:00
Expand internal splat scale encoding to e^[-12,9]. Lower zero cut-off to e^-30. Fix background color selection in editor. (#110)
This commit is contained in:
committed by
GitHub
parent
c8394665ec
commit
dc07e02a33
@@ -143,6 +143,7 @@
|
||||
orbit: false,
|
||||
reversePointerDir: false,
|
||||
reversePointerSlide: false,
|
||||
backgroundColor: "#000000",
|
||||
openFiles: () => {
|
||||
fileInput.click();
|
||||
},
|
||||
@@ -485,8 +486,10 @@
|
||||
spark.focalDistance = Math.exp(value);
|
||||
});
|
||||
gui.add(spark, "apertureAngle", 0, 0.01 * Math.PI, 0.001).name("Aperture angle").listen();
|
||||
scene.background = new THREE.Color(0, 0, 0);
|
||||
gui.addColor(scene, "background").name("Background color").listen();
|
||||
scene.background = new THREE.Color(guiOptions.backgroundColor);
|
||||
gui.addColor(guiOptions, "backgroundColor").name("Background color").onChange((value) => {
|
||||
scene.background.set(value);
|
||||
});
|
||||
|
||||
const debugFolder = gui.addFolder("Debug").close();
|
||||
const normalColor = dyno.dynoBool(false);
|
||||
|
||||
Reference in New Issue
Block a user