Skip to content
GitLab
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
11 months ago
by
Esguerra Montana
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html
parent
656f232a
Pipeline
#9431
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+15
-2
public/index.html
with
15 additions
and
2 deletions
+15
-2
public/index.html
+
15
-
2
View file @
983986bb
...
...
@@ -84,8 +84,21 @@ async function activateXR() {
roofGeometry
.
setIndex
(
new
THREE
.
BufferAttribute
(
roofIndices
,
1
));
// Create materials for walls and roof
var
wallMaterial
=
new
THREE
.
MeshBasicMaterial
({
color
:
0x8B4513
,
side
:
THREE
.
DoubleSide
});
var
roofMaterial
=
new
THREE
.
MeshBasicMaterial
({
color
:
0xFF0000
,
side
:
THREE
.
DoubleSide
});
var
wallMaterial
=
new
THREE
.
MeshPhysicalMaterial
({
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
var
wallMesh
=
new
THREE
.
Mesh
(
wallGeometry
,
wallMaterial
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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