2020-11-22 11:50:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-11-22 14:09:28 +00:00
|
|
|
<meta
|
|
|
|
name="Description"
|
|
|
|
content="Simple WebGL app to demonstrate my skills">
|
|
|
|
<title>WebGL</title>
|
2020-11-22 11:50:14 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="static/css/style.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-11-22 14:09:28 +00:00
|
|
|
<div id="root">
|
2020-11-23 05:38:10 +00:00
|
|
|
<canvas id='glCanvas' width='640' height='640'></canvas>
|
2020-11-24 11:10:57 +00:00
|
|
|
<div id='ui'>
|
2020-11-24 12:10:47 +00:00
|
|
|
<div class='ui-block'>
|
|
|
|
<button id='button1'>Change Shader to black and white</button>
|
|
|
|
<button id='button2'>Change Shader to colored</button>
|
2020-11-24 15:30:59 +00:00
|
|
|
<button id='button3'>Change Shader to flat</button>
|
2020-11-24 16:28:40 +00:00
|
|
|
<button id='button3'>Change Shader to texture</button>
|
2020-11-24 12:10:47 +00:00
|
|
|
</div>
|
|
|
|
<div class='ui-block'>
|
|
|
|
<input id='input1' value='50'></input>
|
2020-11-24 16:04:33 +00:00
|
|
|
<button id='changedistance'>Change camera distance</button>
|
2020-11-24 15:30:59 +00:00
|
|
|
<div style='display: inline'>Max distance is 1000</div>
|
|
|
|
</div>
|
|
|
|
<div class='ui-block'>
|
|
|
|
<input id='input2' value='5'></input>
|
2020-11-24 16:04:33 +00:00
|
|
|
<button id='changecirclesize'>Change circle size</button>
|
2020-11-24 12:10:47 +00:00
|
|
|
</div>
|
2020-11-24 12:53:30 +00:00
|
|
|
<div class='ui-block'>
|
2020-11-24 16:28:40 +00:00
|
|
|
<button id='o_sphere'>Set object to sphere</button>
|
|
|
|
<button id='o_teapot'>Set object to teapot</button>
|
|
|
|
<button id='o_fox'>Set object to fox</button>
|
|
|
|
</div>
|
|
|
|
<div class='ui-block'>
|
|
|
|
<button id='t_grey'>Set texture to white</button>
|
|
|
|
<button id='t_wall'>Set texture to wall</button>
|
|
|
|
<button id='t_fox'>Set texture to fox</button>
|
|
|
|
<button id='t_ice'>Set texture to ice</button>
|
2020-11-24 12:53:30 +00:00
|
|
|
</div>
|
2020-11-24 11:10:57 +00:00
|
|
|
</div>
|
2020-11-22 14:09:28 +00:00
|
|
|
</div>
|
2020-11-22 11:50:14 +00:00
|
|
|
<script src="js/bundle.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|