48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta
|
|
name="Description"
|
|
content="Simple WebGL app to demonstrate my skills">
|
|
<title>WebGL</title>
|
|
|
|
<link rel="stylesheet" href="static/css/style.css">
|
|
</head>
|
|
<body>
|
|
<div id="root">
|
|
<canvas id='glCanvas' width='640' height='640'></canvas>
|
|
<div id='ui'>
|
|
<div class='ui-block'>
|
|
<button id='s_blackandwhite'>Change Shader to black and white</button>
|
|
<button id='s_color'>Change Shader to colored</button>
|
|
<button id='s_flat'>Change Shader to flat</button>
|
|
<button id='s_texture'>Change Shader to texture</button>
|
|
</div>
|
|
<div class='ui-block'>
|
|
<input id='input1' value='250'></input>
|
|
<button id='changedistance'>Change camera distance</button>
|
|
<div style='display: inline'>Max distance is 1000</div>
|
|
</div>
|
|
<div class='ui-block'>
|
|
<input id='input2' value='30'></input>
|
|
<button id='changecirclesize'>Change circle size</button>
|
|
</div>
|
|
<div class='ui-block'>
|
|
<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_wall'>Set texture to wall</button>
|
|
<button id='t_ice'>Set texture to ice</button>
|
|
<button id='t_noise'>Set texture to noise</button>
|
|
<button id='t_fox'>Set texture to fox</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="js/bundle.js"></script>
|
|
</body>
|
|
</html>
|