Integrate & Improve FlexiCubes
Also updated the default .mtl file settings
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user