Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
Commit0f4e5c5bd94d6bf298b6791715cc03ad1f053415 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-28 11:30:33 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-28 11:30:33 +0300
Filesabcdc2abc78d448f09aea245a2fa18e5cd2992b2 /Year 2/Computer Graphics with WebGL/Project/Project.html
uni-projects-0f4e5c5bd94d6bf298b6791715cc03ad1f053415.tar
uni-projects-0f4e5c5bd94d6bf298b6791715cc03ad1f053415.tar.gz
uni-projects-0f4e5c5bd94d6bf298b6791715cc03ad1f053415.zip
Parentad2776375379600364882b9515d049509509903b (diff)
[WGL/P] Fixed perspective updating
1 files changed, 1 insertions, 0 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/Project.html1
diff --git a/Year 2/Computer Graphics with WebGL/Project/Project.html b/Year 2/Computer Graphics with WebGL/Project/Project.html
index 5379b6d..7b41cbe 100644
--- a/Year 2/Computer Graphics with WebGL/Project/Project.html
+++ b/Year 2/Computer Graphics with WebGL/Project/Project.html
@@ -125,6 +125,7 @@ h2 {
gl.canvas.width = gl.canvas.offsetWidth;
gl.canvas.height = gl.canvas.offsetHeight;
gl.viewport(0,0,gl.canvas.width,gl.canvas.height);
+ perspective(PERSPECTIVE_ANGLE,gl.canvas.width/gl.canvas.height,PERSPECTIVE_NEAR,40000);
drawFrame();
}