<!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_grey'>Change Shader to grey</button>
					<button id='s_texture'>Change Shader to texture</button>
					<button id='s_sobel'>Change Shader to sobel edge detection</button>
				</div>
				<div class='ui-block'>
					<div style='display: inline;'>Change distance : </div>
					<div style='display: inline;'>Fine: </div>
					<input type="range" min="1" max="50" value="1" class="slider" id="distancefine">
					<div style='display: inline;'>Coarse: </div>
					<input type="range" min="1" max="1000" value="30" class="slider" id="distance">
				</div>
				<div class='ui-block'>
					<div style='display: inline;'>Change circle size : </div>
					<input type="range" min="0" max="50" value="2" class="slider" id="circlesize">
				</div>
				<div class='ui-block'>
					<div style='display: inline;'>Change fov : </div>
					<input type="range" min="15" max="150" value="45" class="slider" id="fov">
				</div>
				<div class='ui-block'>
					<div style='display: inline;'>Change base rotation speed : </div>
					<input type="range" min="0" max="5" value="1" step='0.0001' class="slider" id="rotspeed">
				</div>
				<div class='ui-block'>
					<div style='display: inline;'>Change rotation : </div>
					<div style='display: inline;'>X: </div>
					<input type="range" min="0" max="6.2830" value="0" step='0.0001' class="slider" id="rotx">
					<div style='display: inline;'>Y: </div>
					<input type="range" min="0" max="6.2830" value="0" step='0.0001' class="slider" id="roty">
					<div style='display: inline;'>Z: </div>
					<input type="range" min="0" max="6.2830" value="0" step='0.0001' class="slider" id="rotz">
				</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>
					<button id='o_mecha'>Set object to mecha</button>
					<button id='o_racer'>Set object to racer</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>
					<button id='t_racer'>Set texture to racer</button>
					<button id='t_racer_wireframe'>Set texture to racer wireframe</button>
				</div>
				<div class='ui-block'>
					<a href='https://git.gaetanbrochard.dev/gbrochar/webgl'>This project's git</a>
					<br>
					<a href='https://git.gaetanbrochard.dev/gbrochar'>My git</a>
					<p>If you're on mobile, you need to set the shader to texture or sobel to change object, then you can change the shader</p>
				</div>
			</div>
		</div>
		<script src="js/bundle.js"></script>
	</body>
</html>
