mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Working prototype. Initialization not consistent.
This commit is contained in:
committed by
Andreas Sundquist
parent
df6b1d8f4a
commit
d707f283f5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user