Skip to content

Instantly share code, notes, and snippets.

Jan Wrobel wrr

Block or report user

Report or block wrr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wrr
wrr / body-end.html
Created Sep 20, 2019
Change Shapespark teleport to view to be slower
View body-end.html
<script>
(function() {
// This is in meters / seconds^2 (default is 4)
WALK.TELEPORT_TO_VIEW_ACCELERATION = 1;
// This is in seconds (default is 3)
WALK.TELEPORT_TO_VIEW_MAX_TIME = 100;
}());
</script>
@wrr
wrr / body-end.html
Created Oct 30, 2019
Disable VR mode in Shapespark
View body-end.html
<script>
navigator.getVRDisplays = undefined;
</script>
@wrr
wrr / body-end.html
Created Nov 7, 2019
Add custom Shapespark menu button
View body-end.html
<script>
var viewer = WALK.getViewer();
var button = viewer.addMenuButton(
'https://cdnjs.cloudflare.com/ajax/libs/webicons/2.0.0/webicons/webicon-facebook.png');
button.addEventListener('click', function() {
viewer.openUrl(
'https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdemo.shapespark.com%2Fsofa-facebook-share', true)
});
</script>
You can’t perform that action at this time.