Last active
August 10, 2017 01:24
-
-
Save SamGondelman/017d3e07ac3a8aeb1f6f6b8df38a9007 to your computer and use it in GitHub Desktop.
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
"use strict"; | |
// AATest.js | |
// | |
// Created by Sam Gondelman on 8/8/2017 | |
// Copyright 2017 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
// | |
(function() { // BEGIN LOCAL_SCOPE | |
var test1 = Overlays.addOverlay("web3d", { | |
url: "qml/hifi/dialogs/AttachmentsDialog.qml", | |
position: Vec3.sum(Vec3.sum(MyAvatar.position, Vec3.multiply(4.0, Vec3.FRONT)), Vec3.multiply(-1.5, Vec3.RIGHT)), | |
dimensions: {x: 0.2, y: 0.2, z: 0.2}, | |
resolution: 100, | |
dpi: 1, | |
alpha: 1.0, | |
isAA: true, | |
visible: true | |
}); | |
var test2 = Overlays.addOverlay("web3d", { | |
url: "qml/hifi/dialogs/AttachmentsDialog.qml", | |
position: Vec3.sum(Vec3.sum(MyAvatar.position, Vec3.multiply(4.0, Vec3.FRONT)), Vec3.multiply(-0.5, Vec3.RIGHT)), | |
dimensions: {x: 0.2, y: 0.2, z: 0.2}, | |
resolution: 100, | |
dpi: 1, | |
alpha: 0.5, | |
isAA: true, | |
visible: true | |
}); | |
var test3 = Overlays.addOverlay("web3d", { | |
url: "qml/hifi/dialogs/AttachmentsDialog.qml", | |
position: Vec3.sum(Vec3.sum(MyAvatar.position, Vec3.multiply(4.0, Vec3.FRONT)), Vec3.multiply(0.5, Vec3.RIGHT)), | |
dimensions: {x: 0.2, y: 0.2, z: 0.2}, | |
resolution: 100, | |
dpi: 1, | |
alpha: 1.0, | |
isAA: false, | |
visible: true | |
}); | |
var test4 = Overlays.addOverlay("web3d", { | |
url: "qml/hifi/dialogs/AttachmentsDialog.qml", | |
position: Vec3.sum(Vec3.sum(MyAvatar.position, Vec3.multiply(4.0, Vec3.FRONT)), Vec3.multiply(1.5, Vec3.RIGHT)), | |
dimensions: {x: 0.2, y: 0.2, z: 0.2}, | |
resolution: 100, | |
dpi: 1, | |
alpha: 0.5, | |
isAA: false, | |
visible: true | |
}); | |
function cleanup() { | |
Overlays.deleteOverlay(test1); | |
Overlays.deleteOverlay(test2); | |
Overlays.deleteOverlay(test3); | |
Overlays.deleteOverlay(test4); | |
} | |
Script.scriptEnding.connect(cleanup); | |
}()); // END LOCAL_SCOPE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment