Skip to content
Snippets Groups Projects
Commit d1de5cae authored by OHGYUSEOK's avatar OHGYUSEOK
Browse files

Update README.md

parent 577124ad
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ Description 버튼은 실습 코드의 설명과 기능에 대해 간략하게 ...@@ -188,7 +188,7 @@ Description 버튼은 실습 코드의 설명과 기능에 대해 간략하게
mat4.lookAt(vMat, camera, [0.0,0.0,0.0], [0.0, 1.0, 0.0]); mat4.lookAt(vMat, camera, [0.0,0.0,0.0], [0.0, 1.0, 0.0]);
``` ```
그 후에 vMat_x, vMat_y, vMat_z를 마우스 드래그를 통해 조작할 수 있는 Code를 작성했다. 우선 마우스의 휠의 움직임으로 vMat_z의 값을 조작할 수 있는 Code이다. 그 후에 vMat_x, vMat_y, vMat_z를 마우스 드래그를 통해 조작할 수 있는 Code를 작성했다. 우선 마우스의 휠의 움직임으로 vMat_z의 값을 조작할 수 있는 Code이다.
+ e.wheelDelta가 0보다 작을 떄, **즉 마우스 휠을 뒤로 돌렸을 때 vMat_z를 증가**시킨다. **반대로 마우스 휠을 앞으로 돌렸을 때 vMat_z를 감소**시킨다. + e.wheelDelta가 0보다 작을 떄, **즉 마우스 휠을 뒤로 돌렸을 때 vMat_z를 증가**시킨다. **반대로 마우스 휠을 앞으로 돌렸을 때 vMat_z를 감소**시킨다. vMat_z는 최소 0까지 이동할 수 있다.
``` ```
function wheel(){ function wheel(){
canvas.onmousewheel=function(e){ canvas.onmousewheel=function(e){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment