Skip to content

Commit bbaf027

Browse files
Add files via upload
1 parent 3d10582 commit bbaf027

File tree

4 files changed

+306
-0
lines changed

4 files changed

+306
-0
lines changed

chapter5.html

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<html>
2+
<head>
3+
<title>Learning WebGL Book Example Codes</title>
4+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
5+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
7+
<!-- <script src="https://code.jquery.com/jquery-1.10.2.js"></script> -->
8+
<script src="./jquery.js"></script>
9+
</head>
10+
<body>
11+
<div class="jumbotron text-center">
12+
<h1>Learning WebGL Book Example Code</h1>
13+
<p>Contains the example code for the version 1.0 and 2.0.</p>
14+
</div>
15+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
16+
<a class="navbar-brand" href="#">Navbar</a>
17+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
18+
<span class="navbar-toggler-icon"></span>
19+
</button>
20+
21+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
22+
<ul class="navbar-nav mr-auto">
23+
<li class="nav-item active">
24+
<a class="nav-link" href="./index.html">Home <span class="sr-only">(Chapter 3)</span></a>
25+
</li>
26+
<li class="nav-item active">
27+
<a class="nav-link" href="./chapter5.html">Chapter 5 <span class="sr-only">(current)</span></a>
28+
</li>
29+
<li class="nav-item active">
30+
<a class="nav-link" href="./chapter6.html">Chapter 6 <span class="sr-only">(current)</span></a>
31+
</li>
32+
<li class="nav-item active">
33+
<a class="nav-link" href="./chapter7.html">Chapter 7 <span class="sr-only">(current)</span></a>
34+
</li>
35+
<li class="nav-item active">
36+
<a class="nav-link" href="./chapter8.html">Chapter 8 <span class="sr-only">(current)</span></a>
37+
</li>
38+
</ul>
39+
</div>
40+
</nav>
41+
<div class="container">
42+
<div class="jumbotron text-center">
43+
<h3>Chapter 5 talks about the concepts of transform in WebGL.</h3>
44+
</div>
45+
<div class="row">
46+
<h1>WebGL 1.0</h1>
47+
<a href="./Book example codes/Chapter 5/1.0/5_aeroplanes.html" class="btn btn-primary ">Aeroplane</a>
48+
<a href="./Book example codes/Chapter 5/1.0/5_tweaking_shape.html" class="btn btn-primary ">Tweaked Shape</a>
49+
<a href="./Book example codes/Chapter 5/1.0/5_Two_triangle transform.html" class="btn btn-primary ">Two Triangle Transform</a>
50+
<a href="./Book example codes/Chapter 5/1.0/5_Two_triangle animation.html" class="btn btn-primary">Two triange animation</a>
51+
</div>
52+
<div class="row">
53+
<h1>WebGL 2.0</h1>
54+
<a href="./Book example codes/Chapter 5/2.0/5_aeroplanes.html" class="btn btn-primary ">Aeroplane</a>
55+
<a href="./Book example codes/Chapter 5/2.0/5_tweaking_shape.html" class="btn btn-primary ">Tweaked Shape</a>
56+
<a href="./Book example codes/Chapter 5/2.0/5_Two_triangle transform.html" class="btn btn-primary ">Two Triangle Transform</a>
57+
<a href="./Book example codes/Chapter 5/2.0/5_Two_triangle animation.html" class="btn btn-primary">Two triange animation</a>
58+
</div>
59+
</div>
60+
<!--Navigation bar-->
61+
<div id="nav-placeholder">
62+
63+
</div>
64+
<!-- <script>
65+
$(document).ready(function(){
66+
// $("button").click(function(){
67+
$("#nav-placeholder").load('./navbar.html');
68+
// });
69+
});
70+
</script> -->
71+
<!-- Copyright -->
72+
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
73+
© 2023 Copyright:
74+
<a class="text-reset fw-bold" href="https://sites.google.com/view/professorsingh/home">Professor Bhupendra Singh</a>
75+
</div>
76+
<!-- Copyright -->
77+
</body>
78+
<!-- <script src="Hello_WebGL2.0.js"></script></body> -->
79+
</html>

chapter6.html

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<html>
2+
<head>
3+
<title>Learning WebGL Book Example Codes</title>
4+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
5+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
7+
<!-- <script src="https://code.jquery.com/jquery-1.10.2.js"></script> -->
8+
<script src="./jquery.js"></script>
9+
</head>
10+
<body>
11+
<div class="jumbotron text-center">
12+
<h1>Learning WebGL Book Example Code</h1>
13+
<p>Contains the example code for the version 1.0 and 2.0.</p>
14+
</div>
15+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
16+
<a class="navbar-brand" href="#">Navbar</a>
17+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
18+
<span class="navbar-toggler-icon"></span>
19+
</button>
20+
21+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
22+
<ul class="navbar-nav mr-auto">
23+
<li class="nav-item active">
24+
<a class="nav-link" href="./index.html">Home <span class="sr-only">(Chapter 3)</span></a>
25+
</li>
26+
<li class="nav-item active">
27+
<a class="nav-link" href="./chapter5.html">Chapter 5 <span class="sr-only">(current)</span></a>
28+
</li>
29+
<li class="nav-item active">
30+
<a class="nav-link" href="./chapter6.html">Chapter 6 <span class="sr-only">(current)</span></a>
31+
</li>
32+
<li class="nav-item active">
33+
<a class="nav-link" href="./chapter7.html">Chapter 7 <span class="sr-only">(current)</span></a>
34+
</li>
35+
<li class="nav-item active">
36+
<a class="nav-link" href="./chapter8.html">Chapter 8 <span class="sr-only">(current)</span></a>
37+
</li>
38+
</ul>
39+
</div>
40+
</nav>
41+
<div class="container">
42+
<div class="jumbotron text-center">
43+
<h3>Chapter 6 talks about the coloring a geometry in WebGL.</h3>
44+
</div>
45+
<div class="row">
46+
<h1>WebGL 1.0</h1>
47+
<a href="./Book example codes/Chapter 6/1.0/6_colored_pentagon.html" class="btn btn-primary ">A Colored Pentagon</a>
48+
<a href="./Book example codes/Chapter 6/1.0/6_random_triangles.html" class="btn btn-primary ">Random colored triangles</a>
49+
<a href="./Book example codes/Chapter 6/1.0/6_red_and_blue_triangles.html" class="btn btn-primary ">Red and Blue trianges</a>
50+
<a href="./Book example codes/Chapter 6/1.0/6_Tri_color_triangle.html" class="btn btn-primary">Tri colored triangle</a>
51+
</div>
52+
<div class="row">
53+
<h1>WebGL 2.0</h1>
54+
<a href="./Book example codes/Chapter 6/2.0/6_colored_pentagon.html" class="btn btn-primary ">A Colored Pentagon</a>
55+
<a href="./Book example codes/Chapter 6/2.0/6_random_triangles.html" class="btn btn-primary ">Random colored triangles</a>
56+
<a href="./Book example codes/Chapter 6/2.0/6_red_and_blue_triangles.html" class="btn btn-primary ">Red and Blue trianges</a>
57+
<a href="./Book example codes/Chapter 6/2.0/6_Tri_color_triangle.html" class="btn btn-primary">Tri colored triangle</a>
58+
</div>
59+
</div>
60+
<!--Navigation bar-->
61+
<div id="nav-placeholder">
62+
63+
</div>
64+
<!-- <script>
65+
$(document).ready(function(){
66+
// $("button").click(function(){
67+
$("#nav-placeholder").load('./navbar.html');
68+
// });
69+
});
70+
</script> -->
71+
<!-- Copyright -->
72+
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
73+
© 2023 Copyright:
74+
<a class="text-reset fw-bold" href="https://sites.google.com/view/professorsingh/home">Professor Bhupendra Singh</a>
75+
</div>
76+
<!-- Copyright -->
77+
</body>
78+
<!-- <script src="Hello_WebGL2.0.js"></script></body> -->
79+
</html>

chapter7.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<html>
2+
<head>
3+
<title>Learning WebGL Book Example Codes</title>
4+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
5+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
7+
<!-- <script src="https://code.jquery.com/jquery-1.10.2.js"></script> -->
8+
<script src="./jquery.js"></script>
9+
</head>
10+
<body>
11+
<div class="jumbotron text-center">
12+
<h1>Learning WebGL Book Example Code</h1>
13+
<p>Contains the example code for the version 1.0 and 2.0.</p>
14+
</div>
15+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
16+
<a class="navbar-brand" href="#">Navbar</a>
17+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
18+
<span class="navbar-toggler-icon"></span>
19+
</button>
20+
21+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
22+
<ul class="navbar-nav mr-auto">
23+
<li class="nav-item active">
24+
<a class="nav-link" href="./index.html">Home <span class="sr-only">(Chapter 3)</span></a>
25+
</li>
26+
<li class="nav-item active">
27+
<a class="nav-link" href="./chapter5.html">Chapter 5 <span class="sr-only">(current)</span></a>
28+
</li>
29+
<li class="nav-item active">
30+
<a class="nav-link" href="./chapter6.html">Chapter 6 <span class="sr-only">(current)</span></a>
31+
</li>
32+
<li class="nav-item active">
33+
<a class="nav-link" href="./chapter7.html">Chapter 7 <span class="sr-only">(current)</span></a>
34+
</li>
35+
<li class="nav-item active">
36+
<a class="nav-link" href="./chapter8.html">Chapter 8 <span class="sr-only">(current)</span></a>
37+
</li>
38+
</ul>
39+
</div>
40+
</nav>
41+
<div class="container">
42+
<div class="jumbotron text-center">
43+
<h3>Chapter 7 talks about using textures to add realism in a scene in WebGL.</h3>
44+
</div>
45+
<div class="row">
46+
<h1>WebGL 1.0</h1>
47+
<a href="./Book example codes/Chapter 7/1.0/7_Texture_example.html" class="btn btn-primary ">Texture Example</a>
48+
</div>
49+
<div class="row">
50+
<h1>WebGL 2.0</h1>
51+
<a href="./Book example codes/Chapter 7/2.0/7_Texture_example.html" class="btn btn-primary ">Texture Example</a></div>
52+
</div>
53+
</div>
54+
<!--Navigation bar-->
55+
<div id="nav-placeholder">
56+
57+
</div>
58+
<!-- <script>
59+
$(document).ready(function(){
60+
// $("button").click(function(){
61+
$("#nav-placeholder").load('./navbar.html');
62+
// });
63+
});
64+
</script> -->
65+
<!-- Copyright -->
66+
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
67+
© 2023 Copyright:
68+
<a class="text-reset fw-bold" href="https://sites.google.com/view/professorsingh/home">Professor Bhupendra Singh</a>
69+
</div>
70+
<!-- Copyright -->
71+
</body>
72+
<!-- <script src="Hello_WebGL2.0.js"></script></body> -->
73+
</html>

chapter8.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<html>
2+
<head>
3+
<title>Learning WebGL Book Example Codes</title>
4+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
5+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
7+
<!-- <script src="https://code.jquery.com/jquery-1.10.2.js"></script> -->
8+
<script src="./jquery.js"></script>
9+
</head>
10+
<body>
11+
<div class="jumbotron text-center">
12+
<h1>Learning WebGL Book Example Code</h1>
13+
<p>Contains the example code for the version 1.0 and 2.0.</p>
14+
</div>
15+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
16+
<a class="navbar-brand" href="#">Navbar</a>
17+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
18+
<span class="navbar-toggler-icon"></span>
19+
</button>
20+
21+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
22+
<ul class="navbar-nav mr-auto">
23+
<li class="nav-item active">
24+
<a class="nav-link" href="./index.html">Home <span class="sr-only">(Chapter 3)</span></a>
25+
</li>
26+
<li class="nav-item active">
27+
<a class="nav-link" href="./chapter5.html">Chapter 5 <span class="sr-only">(current)</span></a>
28+
</li>
29+
<li class="nav-item active">
30+
<a class="nav-link" href="./chapter6.html">Chapter 6 <span class="sr-only">(current)</span></a>
31+
</li>
32+
<li class="nav-item active">
33+
<a class="nav-link" href="./chapter7.html">Chapter 7 <span class="sr-only">(current)</span></a>
34+
</li>
35+
<li class="nav-item active">
36+
<a class="nav-link" href="./chapter8.html">Chapter 8 <span class="sr-only">(current)</span></a>
37+
</li>
38+
</ul>
39+
</div>
40+
</nav>
41+
<div class="container">
42+
<div class="jumbotron text-center">
43+
<h3>Chapter 8 talks about the 3D concepts and implementations in WebGL.</h3>
44+
</div>
45+
<div class="row">
46+
<h1>WebGL 1.0</h1>
47+
<a href="./Book example codes/Chapter 8/1.0/8_3D_rectangle.HTML" class="btn btn-primary ">3 D Rectangle</a>
48+
<a href="./Book example codes/Chapter 8/1.0/8_3D_cuboid.HTML" class="btn btn-primary ">3 D Cuboid</a>
49+
</div>
50+
<div class="row">
51+
<h1>WebGL 2.0</h1>
52+
<a href="./Book example codes/Chapter 8/1.0/8_3D_rectangle.HTML" class="btn btn-primary ">3 D Rectangle</a>
53+
<a href="./Book example codes/Chapter 8/1.0/8_3D_cuboid.HTML" class="btn btn-primary ">3 D Cuboid</a>
54+
</div>
55+
</div>
56+
<!--Navigation bar-->
57+
<div id="nav-placeholder">
58+
59+
</div>
60+
<!-- <script>
61+
$(document).ready(function(){
62+
// $("button").click(function(){
63+
$("#nav-placeholder").load('./navbar.html');
64+
// });
65+
});
66+
</script> -->
67+
<!-- Copyright -->
68+
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
69+
© 2023 Copyright:
70+
<a class="text-reset fw-bold" href="https://sites.google.com/view/professorsingh/home">Professor Bhupendra Singh</a>
71+
</div>
72+
<!-- Copyright -->
73+
</body>
74+
<!-- <script src="Hello_WebGL2.0.js"></script></body> -->
75+
</html>

0 commit comments

Comments
 (0)