Switched sit.js spheres to billboards

This commit is contained in:
Atlante45 2014-07-11 10:50:46 -07:00
parent bd7b17a787
commit a9ceec4627

View file

@ -166,14 +166,16 @@ function SeatIndicator(modelProperties, seatIndex) {
modelProperties.sittingPoints[seatIndex].rotation); modelProperties.sittingPoints[seatIndex].rotation);
this.scale = MyAvatar.scale / 12; this.scale = MyAvatar.scale / 12;
this.sphere = Overlays.addOverlay("sphere", { this.sphere = Overlays.addOverlay("billboard", {
position: this.position, subImage: { x: 0, y: buttonHeight, width: buttonWidth, height: buttonHeight},
size: this.scale, url: buttonImageUrl,
solid: true, position: this.position,
color: { red: 0, green: 0, blue: 255 }, scale: this.scale * 4,
alpha: 0.3, solid: true,
visible: true color: { red: 0, green: 0, blue: 255 },
}); alpha: 0.3,
visible: true
});
this.show = function(doShow) { this.show = function(doShow) {
Overlays.editOverlay(this.sphere, { visible: doShow }); Overlays.editOverlay(this.sphere, { visible: doShow });