three实现三维房间灯光可视化调节参数效果代码

代码语言:html

所属分类:三维

代码描述:three实现三维房间灯光可视化调节参数效果代码

代码标签: three 三维 房间 灯光 可视化 调节 参数

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  
  
  
<style>
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	background: #000;
	font-family: "Arial", sans-serif;
	overflow: hidden;
	position: relative;
	cursor: -webkit-grab;
	cursor: grab;
}

body:active {
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

#canvas-container {
	width: 100vw;
	height: 100vh;
	position: relative;
}

.ui-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
	color: white;
}

.title {
	position: absolute;
	top: 5%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 2.5rem;
	font-weight: 100;
	letter-spacing: 8px;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}

.controls {
	position: absolute;
	top: 15%;
	left: 3%;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	line-height: 1.6;
	max-width: 300px;
	background: rgba(0, 0, 0, 0.3);
	padding: 1.5rem;
	border-radius: 10px;
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.lighting-controls {
	position: absolute;
	top: 15%;
	right: 3%;
	background: rgba(0, 0, 0, 0.4);
	padding: 1.5rem;
	border-radius: 10px;
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	pointer-events: all;
}

.lighting-controls h3 {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 1rem;
	font-size: 1rem;
	font-weight: 300;
}

.control-group {
	margin-bottom: 1rem;
}

.control-group label {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	margin-bottom: 0.3rem;
}

.control-group input[type="range"] {
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	outline: none;
	-webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
}

.control-group input[type="color"] {
	width: 40px;
	height: 25px;
	border: none;
	border.........完整代码请登录后点击上方下载按钮下载查看

网友评论0