54 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.9 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'>
 | |
| 					<div style='display: inline;'>Change distance : </div>
 | |
| 					<input type="range" min="1" max="1000" value="250" class="slider" id="distance">
 | |
| 				</div>
 | |
| 				<div class='ui-block'>
 | |
| 					<div style='display: inline;'>Change circle size : </div>
 | |
| 					<input type="range" min="1" max="50" value="10" 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'>
 | |
| 					<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 class='ui-block'>
 | |
| 					<p>If you're on mobile, you need to set the shader to texture to change object, then you can change the shader</p>
 | |
| 				</div>
 | |
| 			</div>
 | |
| 		</div>
 | |
| 		<script src="js/bundle.js"></script>
 | |
| 	</body>
 | |
| </html>
 |