Compare commits
3 Commits
a0b2aa96ad
...
eb5b39529a
Author | SHA1 | Date | |
---|---|---|---|
eb5b39529a | |||
af8fdfd30e | |||
2adbecea71 |
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
textures/old/
|
@ -1,8 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<title>Daedalus</title>
|
|
||||||
<meta charset=utf-8 />
|
<meta charset=utf-8 />
|
||||||
|
<title>Daedalus</title>
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" id="favicon"/>
|
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" id="favicon"/>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
|
10
main.js
@ -1,5 +1,4 @@
|
|||||||
import * as THREE from 'three';
|
import * as THREE from 'three';
|
||||||
|
|
||||||
import { Octree } from 'three/addons/math/Octree.js';
|
import { Octree } from 'three/addons/math/Octree.js';
|
||||||
import { Capsule } from 'three/addons/math/Capsule.js';
|
import { Capsule } from 'three/addons/math/Capsule.js';
|
||||||
import { Water } from 'three/addons/objects/Water.js';
|
import { Water } from 'three/addons/objects/Water.js';
|
||||||
@ -8,9 +7,10 @@ import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
|
|||||||
import { OctreeHelper } from 'three/addons/helpers/OctreeHelper.js';
|
import { OctreeHelper } from 'three/addons/helpers/OctreeHelper.js';
|
||||||
import Stats from 'three/addons/libs/stats.module.js';
|
import Stats from 'three/addons/libs/stats.module.js';
|
||||||
|
|
||||||
|
import 'three-hex-tiling';
|
||||||
|
|
||||||
import MazeMesh from './MazeMesh.js';
|
import MazeMesh from './MazeMesh.js';
|
||||||
|
|
||||||
import 'three-hex-tiling';
|
|
||||||
|
|
||||||
const playerHeight = 0.5;
|
const playerHeight = 0.5;
|
||||||
const mazeWidth = 23
|
const mazeWidth = 23
|
||||||
@ -145,14 +145,14 @@ const groundMaterial = new THREE.MeshStandardMaterial({
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
aoMap: loader.load(
|
aoMap: loader.load(
|
||||||
'textures/angled-blocks-vegetation/ao.png',
|
'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
|
||||||
texture => {
|
texture => {
|
||||||
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
|
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
|
||||||
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
|
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
metalnessMap: loader.load(
|
metalnessMap: loader.load(
|
||||||
'textures/angled-blocks-vegetation/metallic.png',
|
'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
|
||||||
texture => {
|
texture => {
|
||||||
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
|
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
|
||||||
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
|
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
|
||||||
@ -166,7 +166,7 @@ const groundMaterial = new THREE.MeshStandardMaterial({
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
roughnessMap: loader.load(
|
roughnessMap: loader.load(
|
||||||
'textures/angled-blocks-vegetation/roughness.png',
|
'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
|
||||||
texture => {
|
texture => {
|
||||||
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
|
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
|
||||||
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
|
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
This asset was made with Poly, an AI-generated design asset marketplace that lets you find and create incredibly life-like, detailed, and artistic assets for your next project, in seconds.
|
|
||||||
|
|
||||||
Get started for free at https://withpoly.com
|
|
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 497 KiB |
Before Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 828 KiB |
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"prompt_text": "stone retaining wall, extreme fine details",
|
|
||||||
"patch": {
|
|
||||||
"ext": "png",
|
|
||||||
"dtype": "uint8",
|
|
||||||
"width": 512,
|
|
||||||
"height": 512,
|
|
||||||
"url": "https://static-dev.withpoly.com/v3-voronoi/textures/patches/909585e0-8b3f-4659-ae84-03f58ceaaaeb.png",
|
|
||||||
"patch_id": "EbJzaafatu"
|
|
||||||
},
|
|
||||||
"seamless_prompt_text": "stone retaining wall, extreme fine details",
|
|
||||||
"seamless_patch_scale": 0.8,
|
|
||||||
"upscale_prompt_text": "stone retaining wall, extreme fine details",
|
|
||||||
"upscale_resolution": 4096,
|
|
||||||
"is_seamless": true,
|
|
||||||
"pbr_mode": "organic",
|
|
||||||
"pbr_generate_color": true,
|
|
||||||
"pbr_generate_normal": true,
|
|
||||||
"pbr_generate_height": true,
|
|
||||||
"pbr_generate_ao": true,
|
|
||||||
"pbr_generate_roughness": true,
|
|
||||||
"pbr_generate_metallic": false
|
|
||||||
}
|
|
BIN
textures/angled-blocks-vegetation/ao-roughness-metalness.png
Normal file
After Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 7.0 MiB |
Before Width: | Height: | Size: 556 KiB |
Before Width: | Height: | Size: 5.6 MiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 9.6 MiB |
Before Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 115 KiB |