add circlesize again
This commit is contained in:
parent
cd5559fd41
commit
940de78d9e
|
@ -58,6 +58,14 @@ export function initMatrices(gl: any, params: any) {
|
|||
mat4.rotateY(normalModelMatrixTemplate,
|
||||
normalModelMatrixTemplate,
|
||||
params.squareRotation);
|
||||
mat4.translate(
|
||||
viewMatrix,
|
||||
viewMatrix,
|
||||
[
|
||||
params.circleSize * Math.cos(params.squareRotation),
|
||||
params.circleSize * Math.sin(params.squareRotation),
|
||||
0,
|
||||
]);
|
||||
if (i % 3 == 1) {
|
||||
addx = Math.floor(i / 9 + 1) * params.range * 1.5;
|
||||
} else if (i % 3 == 2) {
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
<div class='ui-block'>
|
||||
<div style='display: inline;'>Change circle size: </div>
|
||||
<input type="range" min="0" max="50" value="2" class="slider" id="circlesize">
|
||||
<input type="range" min="0" max="5" value="0.5" step='0.001' class="slider" id="circlesize">
|
||||
</div>
|
||||
<div class='ui-block'>
|
||||
<div style='display: inline;'>Change fov: </div>
|
||||
|
|
Loading…
Reference in New Issue