-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/diarmidmackenzie/instanced-…
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<html> | ||
<head> | ||
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-extras@c5c5dcf/dist/aframe-extras.min.js"></script> | ||
<script src="../src/instanced-mesh.js"></script> | ||
<script src="./framed-block.js"></script> | ||
<link rel="stylesheet" href="./styles.css"> | ||
</head> | ||
<body> | ||
<div class="text-overlay"> | ||
<p>Empty instanced mesh.</p> | ||
<p>No objects should be visible, amd draw calls should be zero.</p> | ||
</div> | ||
<a class="code-link" | ||
target="_blank" | ||
href="https://github.com/diarmidmackenzie/instanced-mesh/blob/main/tests/empty-instanced-mesh.html"> | ||
view code | ||
</a> | ||
<a-scene stats renderer="colorManagement:true"> | ||
|
||
<a-entity id="rig" movement-controls> | ||
<a-entity id="camera" camera position="0 1.6 3" look-controls> | ||
</a-entity> | ||
</a-entity> | ||
|
||
<a-entity id="mesh1" framed-block="facecolor: white; framecolor: black" instanced-mesh="capacity:500"></a-entity> | ||
|
||
</a-scene> | ||
|
||
</body> |