Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Esguerra Montana
Web AR
Commits
983986bb
Commit
983986bb
authored
Jun 16, 2024
by
Esguerra Montana
Browse files
Update index.html
parent
656f232a
Pipeline
#9431
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
983986bb
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment