webgl/views/index.ejs

36 lines
1.0 KiB
Plaintext
Raw Normal View History

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>
<div id='ui'>
<div class='ui-block'>
<button id='button1'>Change Shader to black and white</button>
<button id='button2'>Change Shader to colored</button>
</div>
<div class='ui-block'>
<input id='input1' value='50'></input>
<button id='button3'>Change camera distance</button>
<div style='display: inline'>Max distance is 150</div>
</div>
2020-11-24 12:53:30 +00:00
<div class='ui-block'>
<button id='sphere'>Set obj to sphere</button>
<button id='teapot_normals'>Set obj to teapot with normals</button>
<button id='teapot'>Set obj to teapot</button>
</div>
</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>