Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebGL Tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OHGYUSEOK
WebGL Tutorial
Commits
d1de5cae
Commit
d1de5cae
authored
5 years ago
by
OHGYUSEOK
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
577124ad
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+1
-1
1 addition, 1 deletion
README.md
with
1 addition
and
1 deletion
README.md
+
1
−
1
View file @
d1de5cae
...
@@ -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){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment