mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 15:28:49 +02:00
Final touches to Polaroids
This commit is contained in:
parent
655a411865
commit
7ade5b07a6
1 changed files with 4 additions and 4 deletions
|
@ -278,8 +278,8 @@ function onMessage(message) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var polaroid_print_sound = SoundCache.getSound(Script.resolvePath("assets/sounds/sound-print-photo.wav"));
|
var POLAROID_PRINT_SOUND = SoundCache.getSound(Script.resolvePath("assets/sounds/sound-print-photo.wav"));
|
||||||
var model_url = 'http://hifi-content.s3.amazonaws.com/alan/dev/Test/snapshot.fbx';
|
var POLAROID_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/alan/dev/Test/snapshot.fbx';
|
||||||
|
|
||||||
function printToPolaroid(image_url) {
|
function printToPolaroid(image_url) {
|
||||||
var polaroid_url = image_url;
|
var polaroid_url = image_url;
|
||||||
|
@ -296,7 +296,7 @@ function printToPolaroid(image_url) {
|
||||||
|
|
||||||
"name": "New Snapshot",
|
"name": "New Snapshot",
|
||||||
"description": "Printed from Snaps",
|
"description": "Printed from Snaps",
|
||||||
"modelURL": model_url,
|
"modelURL": POLAROID_MODEL_URL,
|
||||||
|
|
||||||
"position": model_pos,
|
"position": model_pos,
|
||||||
"rotation": model_rot,
|
"rotation": model_rot,
|
||||||
|
@ -319,7 +319,7 @@ function printToPolaroid(image_url) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var polaroid = Entities.addEntity(properties);
|
var polaroid = Entities.addEntity(properties);
|
||||||
Audio.playSound(polaroid_print_sound, {
|
Audio.playSound(POLAROID_PRINT_SOUND, {
|
||||||
position: model_pos,
|
position: model_pos,
|
||||||
localOnly: false,
|
localOnly: false,
|
||||||
volume: 0.2
|
volume: 0.2
|
||||||
|
|
Loading…
Reference in a new issue