mirror of
https://github.com/storytold/spark.git
synced 2026-10-17 00:12:59 +00:00
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:
committed by
GitHub
parent
0045be0c39
commit
7a4142c62a
@@ -22,7 +22,7 @@ const float INFINITY = 1.0 / 0.0;
|
||||
const float NEG_INFINITY = -INFINITY;
|
||||
|
||||
const float MAX_PIXEL_RADIUS = 512.0;
|
||||
const float MIN_ALPHA = 0.01;
|
||||
const float MIN_ALPHA = 0.5 * (1.0 / 255.0); // 0.00196
|
||||
const float MAX_STDDEV = sqrt(8.0);
|
||||
|
||||
float sqr(float x) {
|
||||
|
||||
Reference in New Issue
Block a user