Working prototype. Initialization not consistent.

This commit is contained in:
Andreas Sundquist
2025-07-22 14:45:06 -07:00
committed by Andreas Sundquist
parent df6b1d8f4a
commit d707f283f5
5 changed files with 51 additions and 20 deletions
+7 -4
View File
@@ -498,6 +498,11 @@
gui.addColor(guiOptions, "backgroundColor").name("Background color").onChange((value) => {
scene.background.set(value);
});
// spark.defaultView.stochastic = true;
gui.add(spark.defaultView, "stochastic").name("Stochastic sort-free").listen().onChange(() => {
// spark.prepareViewpoint();
touch();
});
const debugFolder = gui.addFolder("Debug").close();
const normalColor = dyno.dynoBool(false);
@@ -524,10 +529,6 @@
debugFolder.add(spark.defaultView, "sort32").name("Float32 sort").listen();
debugFolder.add(spark, "maxPixelRadius", 1, 1024, 1).name("Max pixel radius").listen();
debugFolder.add(spark, "minAlpha", 0, 1, 0.001).name("Min alpha").listen();
spark.defaultView.stochastic = true;
debugFolder.add(spark.defaultView, "stochastic").name("Stochastic sort-free").listen().onChange(() => {
spark.prepareViewpoint();
});
debugFolder.add(spark, "premultipliedAlpha").name("Premultiplied alpha").listen();
const accumFolder = debugFolder.addFolder("Accumulator encoding").close();;
@@ -778,6 +779,8 @@
lastTime = time;
stats.begin();
renderer.clear(true, true, false);
if (guiOptions.autoRotate) {
frame.rotation.y += deltaTime / 5000;
}