minor fixes
This commit is contained in:
parent
d90c41565e
commit
14a988baa5
@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Benedek László - IH1RZJ - első beadandó: Lego Batman</title>
|
<title>Benedek László - IH1RZJ - masodik beadandó: Lego Batman</title>
|
||||||
<script async src="./dist/es-module-shims.js"></script>
|
<script async src="./dist/es-module-shims.js"></script>
|
||||||
<script type="importmap">
|
<script type="importmap">
|
||||||
{
|
{
|
||||||
@ -175,7 +175,7 @@
|
|||||||
renderer = new THREE.WebGLRenderer({ antialias: true, canvas: canvas, alpha: true });
|
renderer = new THREE.WebGLRenderer({ antialias: true, canvas: canvas, alpha: true });
|
||||||
renderer.shadowMap.enabled = true;
|
renderer.shadowMap.enabled = true;
|
||||||
renderer.setSize(window.innerWidth, window.innerHeight);
|
renderer.setSize(window.innerWidth, window.innerHeight);
|
||||||
renderer.setClearColor(0xadadad);
|
renderer.setClearColor("black");
|
||||||
|
|
||||||
camera = new THREE.PerspectiveCamera(fov, window.innerWidth / window.innerHeight, near, far);
|
camera = new THREE.PerspectiveCamera(fov, window.innerWidth / window.innerHeight, near, far);
|
||||||
camera.position.set(0, 10, 50);
|
camera.position.set(0, 10, 50);
|
||||||
|
55
scene.json
55
scene.json
@ -104,13 +104,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"materials": {
|
"materials": {
|
||||||
"purple_frame": {
|
|
||||||
"type": "MeshBasicMaterial",
|
|
||||||
"options": {
|
|
||||||
"color": "rgb(255, 0, 255)",
|
|
||||||
"wireframe": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"black": {
|
"black": {
|
||||||
"type": "MeshStandardMaterial",
|
"type": "MeshStandardMaterial",
|
||||||
"options": {
|
"options": {
|
||||||
@ -118,11 +111,26 @@
|
|||||||
"roughness": 0.1
|
"roughness": 0.1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"white_frame": {
|
"yellow": {
|
||||||
"type": "MeshBasicMaterial",
|
"type": "MeshStandardMaterial",
|
||||||
"options": {
|
"options": {
|
||||||
"color": "rgb(255, 255, 255)",
|
"color": "rgb(253, 255, 0)",
|
||||||
"wireframe": true
|
"roughness": 0.1,
|
||||||
|
"metalness": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"blue": {
|
||||||
|
"type": "MeshStandardMaterial",
|
||||||
|
"options": {
|
||||||
|
"color": "rgb(80, 92, 124)",
|
||||||
|
"roughness": 0.1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dark_blue": {
|
||||||
|
"type": "MeshStandardMaterial",
|
||||||
|
"options": {
|
||||||
|
"color": "rgb(40, 46, 60)",
|
||||||
|
"roughness": 0.1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"skin": {
|
"skin": {
|
||||||
@ -144,7 +152,7 @@
|
|||||||
"batman_logo": {
|
"batman_logo": {
|
||||||
"type": "OBJ",
|
"type": "OBJ",
|
||||||
"url": "batman.obj",
|
"url": "batman.obj",
|
||||||
"material": "black",
|
"material": "yellow",
|
||||||
"position": [
|
"position": [
|
||||||
0,
|
0,
|
||||||
50,
|
50,
|
||||||
@ -526,6 +534,11 @@
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
-1
|
-1
|
||||||
|
],
|
||||||
|
"rotation": [
|
||||||
|
0,
|
||||||
|
180,
|
||||||
|
0
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -592,6 +605,21 @@
|
|||||||
},
|
},
|
||||||
"lights": {
|
"lights": {
|
||||||
"children": {
|
"children": {
|
||||||
|
"front_light": {
|
||||||
|
"type": "SpotLight",
|
||||||
|
"position": [
|
||||||
|
0,
|
||||||
|
-13,
|
||||||
|
30
|
||||||
|
],
|
||||||
|
"intensity": 10000,
|
||||||
|
"target": "chin",
|
||||||
|
"color": "rgb(150, 0, 0)"
|
||||||
|
},
|
||||||
|
"front_light_helper": {
|
||||||
|
"type": "SpotLightHelper",
|
||||||
|
"target": "front_light"
|
||||||
|
},
|
||||||
"right_backlight": {
|
"right_backlight": {
|
||||||
"type": "DirectionalLight",
|
"type": "DirectionalLight",
|
||||||
"target": "backlight_tagret",
|
"target": "backlight_tagret",
|
||||||
@ -662,7 +690,8 @@
|
|||||||
50
|
50
|
||||||
],
|
],
|
||||||
"angle": 20,
|
"angle": 20,
|
||||||
"intensity": 10000000,
|
"intensity": 5000000,
|
||||||
|
"color": "rgb(195, 163, 33)",
|
||||||
"castShadow": true,
|
"castShadow": true,
|
||||||
"target": "batman_logo"
|
"target": "batman_logo"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user