-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Link, Triangle, Line, Shadows
- Loading branch information
Etienne
committed
Jul 3, 2017
1 parent
ffe783f
commit b35ad52
Showing
15 changed files
with
269 additions
and
99 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
## [Line](#line) | |||
|
|||
### Extends: [Entity](#entity) | |||
|
|||
The line component draws a line given a start coordinate and end coordinate. | |||
|
|||
myLine = new Line | |||
start: '0 1 0' | |||
end: '2 0 -5' | |||
color: Color.red | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [line.start](#line-start) *<string>* | |||
|
|||
Set the start point coordinate. Default is 0 0 0 | |||
|
|||
myLine = new Line | |||
start: '0 1 0' | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [link.end](#link-end) *<string>* | |||
|
|||
Set the end coordinate. Default is 0 0 0 | |||
|
|||
myLine = new Line | |||
end: '0 1 0' | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [link.color](#link-color) *<string>* | |||
|
|||
Set the color of the line. Default is #74BEC1. | |||
|
|||
myLine = new Line | |||
color: "#FF00CC" | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [link.visible](#link-visible) *<string>* | |||
|
|||
Whether the material visible. Default is true. | |||
|
|||
myLine = new Line | |||
visible: no |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
## [Link](#link) | |||
|
|||
### Extends: [Entity](#entity) | |||
|
|||
A link in VR can be anything such as grabbing onto an object, placing something on our head, clicking something, even eating something! The default implementation of links are portals or windows, using a 360° image thumbnail to preview the destination. | |||
|
|||
myLink = new Link | |||
position: '0 0 1' | |||
href: "index.html" | |||
title: "My Homepage" | |||
image: "assets/homeThumbnail.png" | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [link.href](#link-href) *<string>* | |||
|
|||
Set the destiantion URL where the link points to. | |||
|
|||
myLink = new Link | |||
href: "cool.html" | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [link.title](#link-title) *<string>* | |||
|
|||
Set the text displayed on the link. The href or page URL is used if not defined. | |||
|
|||
myLink = new Link | |||
title: "Hahaha" | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [link.href](#link-href) *<string>* | |||
|
|||
Set the link preview, a 360° image used as scene preview in the portal. | |||
|
|||
myLink = new Link | |||
image: "assets/homeThumbnail.png" |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,44 @@ | |||
## [Triangle](#triangle) | |||
|
|||
### Extends: [Entity](#entity) | |||
|
|||
Time to creates a triangle. | |||
|
|||
myTriangle = new Triangle | |||
color: "#FF926B" | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [triangle.width](#triangle-width) *<float>* | |||
|
|||
Set the width of the triangle. Default is 1. | |||
|
|||
myTriangle = new Triangle | |||
width: 2 | |||
|
|||
------------------------------------------------------- | |||
|
|||
### [triangle.height](#triangle-height) *<float>* | |||
|
|||
Set the height of the triangle. Default is 1. | |||
|
|||
myTriangle = new Triangle | |||
height: 5 | |||
------------------------------------------------------- | |||
|
|||
#### [triangle.color](#triangle-color) *<color>* | |||
|
|||
Defines the color of the triangle. Default is white. | |||
|
|||
myTriangle = new Triangle | |||
color: Color.blue | |||
|
|||
------------------------------------------------------- | |||
|
|||
#### [triangle.src](#triangle-src) *<string/AssetImage>* | |||
|
|||
Defines the material used when rendering the triangle. | |||
|
|||
myTriangle = new Triangle | |||
src: "assets/texture.png" |
This file was deleted.
Oops, something went wrong.
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.