mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 05:08:12 +08:00
replace viewportwidth with 1
This commit is contained in:
@@ -39,13 +39,7 @@ export default function(regl) {
|
|||||||
distance: regl.prop("distance"),
|
distance: regl.prop("distance"),
|
||||||
view: regl.prop("view"),
|
view: regl.prop("view"),
|
||||||
projection: (context, props) => {
|
projection: (context, props) => {
|
||||||
return mat4.perspective(
|
return mat4.perspective([], Math.PI / 2, 1, 0.01, 1000);
|
||||||
[],
|
|
||||||
Math.PI / 2,
|
|
||||||
context.viewportWidth * props.scale / context.viewportHeight,
|
|
||||||
0.01,
|
|
||||||
1000
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user