mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Switched sit.js spheres to billboards
This commit is contained in:
parent
bd7b17a787
commit
a9ceec4627
1 changed files with 10 additions and 8 deletions
|
@ -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 });
|
||||||
|
|
Loading…
Reference in a new issue