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