Integrate & Improve FlexiCubes

Also updated the default .mtl file settings
This commit is contained in:
MrForExample
2024-04-12 16:49:42 +02:00
parent 086567f3e9
commit 85a083d87c
665 changed files with 1209 additions and 408 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
<script type="importmap">
{
"imports": {
"gsplat": "https://unpkg.com/gsplat@latest/dist/index.js"
"gsplat": "https://cdn.jsdelivr.net/npm/gsplat@latest/dist/index.js"
}
}
</script>
+2 -2
View File
@@ -22,8 +22,8 @@
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@latest/build/three.module.js",
"three/addons/": "https://unpkg.com/three@latest/examples/jsm/"
"three": "https://cdn.jsdelivr.net/npm/three@latest/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@latest/examples/jsm/"
}
}
</script>
+1 -1
View File
@@ -28,7 +28,7 @@ const scene = new THREE.Scene();
scene.background = new THREE.Color( 0x000000 );
scene.environment = pmremGenerator.fromScene( new RoomEnvironment( renderer ), 0.04 ).texture;
const ambientLight = new THREE.AmbientLight( 0xffffff );
const ambientLight = new THREE.AmbientLight( 0xffffff , 3.0 );
const camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 100 );
camera.position.set( 5, 2, 8 );