我使用 three.js 和 THREE.OrbitControls 进行动画我不知道如何通过单击按钮更改缩放我如何理解..对于缩放回答此功能
this.dollyIn = function ( dollyScale ) {
if ( dollyScale === undefined ) {
dollyScale = getZoomScale();
}
scale /= dollyScale;
};
this.dollyOut = function ( dollyScale ) {
if ( dollyScale === undefined ) {
dollyScale = getZoomScale();
}
scale *= dollyScale;
};
我需要发送什么来增加或减少缩放我如何为这个按钮表单做呢?
<input id="clickMe" type="button" value="+" onclick="..." />