mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 14:57:00 +02:00
added light to whiteboard
This commit is contained in:
parent
ac2effb33c
commit
e9bdb872bd
1 changed files with 9 additions and 0 deletions
|
@ -79,6 +79,14 @@ var drawingSurface = Entities.addEntity({
|
|||
|
||||
});
|
||||
|
||||
var lightPosition = Vec3.sum(center, Vec3.multiply(-2, Quat.getFront(rotation)));
|
||||
var light = Entities.addEntity({
|
||||
type: 'Light',
|
||||
position: lightPosition,
|
||||
dimensions: {x: 5, y: 5, z: 5},
|
||||
color: {red: 255, green: 255, blue: 255}
|
||||
});
|
||||
|
||||
var eraseModelPosition = Vec3.sum(center, {x: 0, y: 2, z: 0 });
|
||||
scriptURL = Script.resolvePath("eraseBoardEntityScript.js");
|
||||
var eraser = Entities.addEntity({
|
||||
|
@ -179,6 +187,7 @@ function cleanup() {
|
|||
Entities.deleteEntity(colorIndicatorBorder);
|
||||
Entities.deleteEntity(eraser);
|
||||
Entities.deleteEntity(colorIndicatorBox);
|
||||
Entities.deleteEntity(light);
|
||||
colorBoxes.forEach(function(colorBox) {
|
||||
Entities.deleteEntity(colorBox);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue