mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-25 16:48:11 +08:00
format inputs, whitespace, scaling
This commit is contained in:
@@ -33,11 +33,15 @@ export default function (regl) {
|
||||
uniforms: {
|
||||
distance: regl.prop('distance'),
|
||||
view: regl.prop('view'),
|
||||
projection: (context, props) =>
|
||||
mat4.perspective([],
|
||||
projection: (context, props) => {
|
||||
return mat4.perspective(
|
||||
[],
|
||||
Math.PI / 2,
|
||||
context.viewportWidth * props.scale / context.viewportHeight,
|
||||
0.01, 1000),
|
||||
0.01,
|
||||
1000
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
count: regl.prop('count'),
|
||||
|
||||
Reference in New Issue
Block a user