Commit 983986bb authored by Esguerra Montana's avatar Esguerra Montana
Browse files

Update index.html

parent 656f232a
Pipeline #9431 passed with stage
in 6 seconds
...@@ -84,8 +84,21 @@ async function activateXR() { ...@@ -84,8 +84,21 @@ async function activateXR() {
roofGeometry.setIndex(new THREE.BufferAttribute(roofIndices, 1)); roofGeometry.setIndex(new THREE.BufferAttribute(roofIndices, 1));
// Create materials for walls and roof // Create materials for walls and roof
var wallMaterial = new THREE.MeshBasicMaterial({ color: 0x8B4513, side: THREE.DoubleSide }); var wallMaterial = new THREE.MeshPhysicalMaterial({
var roofMaterial = new THREE.MeshBasicMaterial({ color: 0xFF0000, side: THREE.DoubleSide }); color: 0x8B4513,
metalness: 0.7, // Make it metallic
roughness: 0.4, // Adjust for shininess
clearcoat: 0.3, // Add clear coat for a polished effect
clearcoatRoughness: 0.1
});
var roofMaterial = new THREE.MeshPhysicalMaterial({
color: 0xFF0000,
metalness: 0.9, // Make it more metallic
roughness: 0.2, // Adjust for more shininess
clearcoat: 0.3,
clearcoatRoughness: 0.1
});
// Create the wall and roof meshes // Create the wall and roof meshes
var wallMesh = new THREE.Mesh(wallGeometry, wallMaterial); var wallMesh = new THREE.Mesh(wallGeometry, wallMaterial);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment