format inputs, whitespace, scaling

This commit is contained in:
Colin Megill
2018-03-26 02:22:32 -07:00
parent 15a29f0211
commit d2797e3611
+7 -3
View File
@@ -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'),