mirror of
https://github.com/storytold/spark.git
synced 2026-10-20 08:04:33 +00:00
Add preBlurAmount and blurAmount sliders to examples/editor. Move other settings out into main right gui panel. (#54)
This commit is contained in:
committed by
GitHub
parent
aca62084d6
commit
09bfa95bce
@@ -468,11 +468,14 @@
|
|||||||
const normalColor = dyno.dynoBool(false);
|
const normalColor = dyno.dynoBool(false);
|
||||||
gui.add(normalColor, "value").name("Normal color").onChange(() => updateFrameSplats());
|
gui.add(normalColor, "value").name("Normal color").onChange(() => updateFrameSplats());
|
||||||
|
|
||||||
|
gui.add(spark, "maxStdDev", 0.1, 3.0, 0.01).name("Max Gsplat stddev").listen();
|
||||||
|
gui.add(spark, "falloff", 0, 1, 0.01).name("Gaussian falloff").listen();
|
||||||
|
gui.add(spark, "preBlurAmount", 0, 2, 0.1).name("Blur amount (no AA)");
|
||||||
|
gui.add(spark, "blurAmount", 0, 2, 0.1).name("Blur amount (AA)");
|
||||||
|
|
||||||
const splatsFolder = secondGui.addFolder("Files");
|
const splatsFolder = secondGui.addFolder("Files");
|
||||||
|
|
||||||
const editFolder = gui.addFolder("Edit Splats").close();
|
const editFolder = gui.addFolder("Edit Splats").close();
|
||||||
editFolder.add(spark, "maxStdDev", 0.1, 3.0, 0.01).name("Max Gsplat stddev").listen();
|
|
||||||
editFolder.add(spark, "falloff", 0, 1, 0.01).name("Gaussian falloff").listen();
|
|
||||||
|
|
||||||
function updateFrameSplats() {
|
function updateFrameSplats() {
|
||||||
frame.children.forEach((child) => {
|
frame.children.forEach((child) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user