-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cameraHelper not defined for update #5099
Open
IanSweeneyAC
wants to merge
5
commits into
aframevr:master
Choose a base branch
from
IanSweeneyAC:5098_directionalLight_HelperSize
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,104 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Shadows</title> | ||
<meta name="description" content="Shadows - A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
</head> | ||
<body> | ||
<a-scene background="color: #111" shadow="type: basic" stats> | ||
<a-assets> | ||
<a-mixin id="wall" | ||
geometry="primitive: box; height: 30; width: 30; depth: 2" | ||
material="color: #333; metalness: 0; roughness: 1" | ||
shadow="cast: false; receive: true"></a-mixin> | ||
</a-assets> | ||
|
||
<a-entity position="0 8.4 -8"> | ||
<a-entity light="color: #AAA; type: ambient"></a-entity> | ||
|
||
<!-- Center point light. --> | ||
<a-entity geometry="primitive: sphere; radius: 0.15" | ||
material="color: #FAFAFA; shader: flat" | ||
light="castShadow: true; color: #FAFAFA; intensity: 0.5; shadowBias: 0.01 | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Shadows</title> | ||
<meta name="description" | ||
content="Shadows - A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
</head> | ||
|
||
<body> | ||
<a-scene background="color: #111" | ||
shadow="type: basic" | ||
stats> | ||
<a-assets> | ||
<a-mixin id="wall" | ||
geometry="primitive: box; height: 30; width: 30; depth: 2" | ||
material="color: #333; metalness: 0; roughness: 1" | ||
shadow="cast: false; receive: true"></a-mixin> | ||
</a-assets> | ||
|
||
<a-entity position="0 0.5 0" | ||
light="castShadow: true; | ||
color: #FFFFFF; | ||
intensity: 1.5; | ||
shadowCameraVisible: true; | ||
shadowCameraLeft: -3; | ||
shadowCameraRight: 3; | ||
shadowCameraTop: 5.2; | ||
shadowCameraBottom: 2; | ||
shadowBias: -0.00001; | ||
shadowCameraNear: 0; | ||
type: directional; | ||
shadowMapWidth: 1024; | ||
shadowMapHeight: 1024"> | ||
</a-entity> | ||
|
||
<a-entity position="0 8.4 -8"> | ||
<a-entity light="color: #AAA; type: ambient"></a-entity> | ||
|
||
<!-- Center point light. --> | ||
<a-entity geometry="primitive: sphere; radius: 0.15" | ||
material="color: #FAFAFA; shader: flat" | ||
light="castShadow: true; color: #FAFAFA; intensity: 0.5; | ||
shadowBias:-0.0001; | ||
shadowCameraNear: 1; type: point; shadowMapWidth: 1024; shadowMapHeight: 1024" | ||
position="0 -1 1" | ||
animation="property: scale; to: 2 2 2; dur: 3000; dir: alternate; loop: true" | ||
animation="property: intensity; to: 1; dur: 3000; dir: alternate; loop: true"></a-entity> | ||
|
||
<!-- Animating point light. --> | ||
<a-entity animation="property: rotation; to: 0 360 360; dur: 5000; easing: linear; loop: true"> | ||
<a-entity geometry="primitive: sphere; radius: 0.25" | ||
material="color: #EF2D5E; shader: flat" | ||
light="castShadow: true; color: #EF2D5E; intensity: 1; shadowBias: 0.01 | ||
position="0 -1 1" | ||
animation="property: scale; to: 2 2 2; dur: 3000; dir: alternate; loop: true" | ||
animation="property: intensity; to: 1; dur: 3000; dir: alternate; loop: true"></a-entity> | ||
|
||
<!-- Animating point light. --> | ||
<a-entity animation="property: rotation; to: 0 360 360; dur: 5000; easing: linear; loop: true"> | ||
<a-entity geometry="primitive: sphere; radius: 0.25" | ||
material="color: #EF2D5E; shader: flat" | ||
light="castShadow: true; color: #EF2D5E; intensity: 1; | ||
shadowBias: -0.0001; | ||
shadowCameraNear: 1; type: point; shadowMapWidth: 1024; shadowMapHeight: 1024" | ||
position="0 5 5"></a-entity> | ||
</a-entity> | ||
position="0 5 5"></a-entity> | ||
</a-entity> | ||
|
||
<!-- Torus. --> | ||
<a-entity geometry="primitive: torusKnot; radius: 4; radiusTubular: 0.1; | ||
<!-- Torus. --> | ||
<a-entity geometry="primitive: torusKnot; radius: 4; radiusTubular: 0.1; | ||
segmentsRadial: 150; segmentsTubular: 20; p: 17; q: 4;" | ||
material="color: #EF2D5E; metalness: 0.75" | ||
shadow="cast: true; receive: true" | ||
position="0 -1 2" | ||
animation="property: rotation; dur: 36000; to: 0 360 0; loop: true; easing: linear"> | ||
</a-entity> | ||
|
||
<!-- Walls. --> | ||
<a-entity mixin="wall" position="0 0 -10"></a-entity> | ||
<a-entity mixin="wall" position="-10 0 0" rotation="0 90 0"></a-entity> | ||
<a-entity mixin="wall" position="10 0 0" rotation="0 90 0"></a-entity> | ||
<a-entity mixin="wall" position="0 10 0" rotation="90 0 0"></a-entity> | ||
<a-entity mixin="wall" position="0 -10 0" rotation="90 0 0"></a-entity> | ||
material="color: #EF2D5E; metalness: 0.75" | ||
shadow="cast: true; receive: true" | ||
position="0 -1 2" | ||
animation="property: rotation; dur: 36000; to: 0 360 0; loop: true; easing: linear"> | ||
</a-entity> | ||
|
||
<!-- Meshes --> | ||
<a-entity geometry="primitive: box" material="color: #EF2D5E; metalness: 0" shadow position="0 0 -4"></a-entity> | ||
<a-entity geometry="primitive: sphere" material="color: #EF2D5E; metalness: 0" shadow position="-2 0 -4"></a-entity> | ||
<a-entity geometry="primitive: cylinder" material="color: #EF2D5E; metalness: 0" shadow position="2 0 -4"></a-entity> | ||
</a-scene> | ||
</body> | ||
<!-- Walls. --> | ||
<a-entity mixin="wall" | ||
position="0 0 -10"></a-entity> | ||
<a-entity mixin="wall" | ||
position="-10 0 0" | ||
rotation="0 90 0"></a-entity> | ||
<a-entity mixin="wall" | ||
position="10 0 0" | ||
rotation="0 90 0"></a-entity> | ||
<a-entity mixin="wall" | ||
position="0 10 0" | ||
rotation="90 0 0"></a-entity> | ||
<a-entity mixin="wall" | ||
position="0 -10 0" | ||
rotation="90 0 0"></a-entity> | ||
</a-entity> | ||
|
||
<!-- Meshes --> | ||
<a-entity geometry="primitive: box" | ||
material="color: #EF2D5E; metalness: 0" | ||
shadow | ||
position="0 0 -4"></a-entity> | ||
<a-entity geometry="primitive: sphere" | ||
material="color: #EF2D5E; metalness: 0" | ||
shadow | ||
position="-2 0 -4"></a-entity> | ||
<a-entity geometry="primitive: cylinder" | ||
material="color: #EF2D5E; metalness: 0" | ||
shadow | ||
position="2 0 -4"></a-entity> | ||
</a-scene> | ||
</body> | ||
|
||
</html> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.