mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 05:28:12 +08:00
reduce dot scaling upon zoom (#963)
* remove obsolete code * change point scaling with zoom distance
This commit is contained in:
@@ -31,7 +31,7 @@ export default function(regl) {
|
||||
getFlags(flag, isNaN, isSelected, isHighlight);
|
||||
|
||||
float size = pointSize(nPoints, minViewportDimension, isSelected, isHighlight);
|
||||
gl_PointSize = size * pow(distance, 1.2);
|
||||
gl_PointSize = size * pow(distance, 0.5);
|
||||
|
||||
float z = isNaN ? zBottom : (isHighlight ? zTop : zMiddle);
|
||||
vec3 xy = projView * vec3(position, 1.);
|
||||
|
||||
Reference in New Issue
Block a user