Skip to content

Commit

Permalink
improved transparency example (#3112)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored Jan 12, 2022
1 parent f12d6a1 commit 47d1357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/modelviewer.dev/examples/augmentedreality/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ <h4></h4>
<example-snippet stamp-to="transparentBackground" highlight-as="html">
<template>
<div class="demo" style="background: linear-gradient(#ffffff, #ada996); overflow-x: hidden;">
<span style="position: absolute; text-align: center; font-size: 100px; top:50%;">Background</span>
<model-viewer camera-controls src="../../shared-assets/models/glTF-Sample-Models/2.0/AlphaBlendModeTest/glTF-Binary/AlphaBlendModeTest.glb" ar ar-modes="webxr scene-viewer quick-look" alt="A 3D transparency test" style="background-color: unset;"></model-viewer>
<span style="position: absolute; text-align: center; font-size: 100px; line-height: 100px; left: 50%; transform: translateX(-50%);">Background<br>is visible<br>through<br>transparent<br>objects.</span>
<model-viewer camera-controls src="../../shared-assets/models/glTF-Sample-Models/2.0/ToyCar/glTF-Binary/ToyCar.glb" ar ar-modes="webxr scene-viewer quick-look" alt="A 3D transparency test" style="background-color: unset;"></model-viewer>
</div>
</template>
</example-snippet>
Expand Down
1 change: 1 addition & 0 deletions packages/modelviewer.dev/scripts/ci-before-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ DEPLOYABLE_STATIC_FILES=( \
shared-assets/models/glTF-Sample-Models/2.0/WaterBottle \
shared-assets/models/glTF-Sample-Models/2.0/MaterialsVariantsShoe \
shared-assets/models/glTF-Sample-Models/2.0/Buggy \
shared-assets/models/glTF-Sample-Models/2.0/ToyCar \
shared-assets/environments \
shared-assets/icons \
)
Expand Down

0 comments on commit 47d1357

Please sign in to comment.