-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove "under construction" notes and add fill in initial content! 🎉 …
…In the process, add more demos for explanation, as well as a new Texture Shadow demo that shows how to cast a shadow based on the non-transparent parts of a textured mesh.
- Loading branch information
Showing
35 changed files
with
937 additions
and
141 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
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
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
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
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 |
---|---|---|
@@ -1,38 +1,45 @@ | ||
|
||
# <code>class <b>ColladaModel</b></code> :id=ColladaModel | ||
# <code>class <b>ColladaModel</b> extends [Element3D](../core/Element3D.md)</code> :id=ColladaModel | ||
|
||
> :construction: :hammer: Under construction! :hammer: :construction: | ||
Defines the `<lume-collada-model>` element, short for `<lume-element3d | ||
has="collada-model">`, for loading 3D models in the Collada format (`.dae` | ||
files). | ||
|
||
Defines the `<lume-collada-model>` element, for loading 3D | ||
models in the Collada format (.dae files). It is similar to an `<img>` tag, but for 3D. | ||
See [`ColladaModelBehavior`](../behaviors/mesh-behaviors/models/ColladaModelBehavior) | ||
for attributes/properties available on this element. | ||
|
||
HTML Example: | ||
|
||
```html | ||
<lume-scene webgl> | ||
<lume-collada-model src="path/to/model.dae"></lume-collada-model> | ||
<lume-collada-model id="myModel" src="path/to/model.dae"></lume-collada-model> | ||
</lume-scene> | ||
<script> | ||
myModel.on('MODEL_LOAD', () => console.log('loaded')) | ||
</script> | ||
``` | ||
|
||
JavaScript Example: | ||
|
||
```js | ||
const scene = new Scene | ||
scene.webgl = true | ||
document.body.append(scene) | ||
const model = new ColladaModel | ||
model.src = 'path/to/model.dae' | ||
model.on('MODEL_LOAD', () => console.log('loaded')) | ||
scene.add(model) | ||
``` | ||
|
||
|
||
|
||
Inherits properties from [Element3D](../core/Element3D.md). | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Inherits methods from [Element3D](../core/Element3D.md). | ||
|
||
|
||
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
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
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
2 changes: 1 addition & 1 deletion
2
examples/buttons-with-shadow.md → examples/buttons-with-shadow/README.md
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
Oops, something went wrong.