开发者

zooming out in webgl

I saw here Click to zoom in WebGL how to zoom in to a particular point. How can I reverse that functionality- i.e. 开发者_如何学Pythonzoom out?


Change the statement

  vec3.subtract(eye,dir) ;

to

  vec3.add(eye,dir) ;

This moves the eye in the opposite direction from before.

Here's the modified live example: http://jsfiddle.net/3wwdU/1/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜