mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:28:46 +02:00
default light properties
This commit is contained in:
parent
c3cd733c2f
commit
8debb33c6a
1 changed files with 10 additions and 1 deletions
|
@ -342,7 +342,16 @@ var toolBar = (function () {
|
||||||
type: "Light",
|
type: "Light",
|
||||||
position: position,
|
position: position,
|
||||||
dimensions: { x: DEFAULT_DIMENSION, y: DEFAULT_DIMENSION, z: DEFAULT_DIMENSION },
|
dimensions: { x: DEFAULT_DIMENSION, y: DEFAULT_DIMENSION, z: DEFAULT_DIMENSION },
|
||||||
color: { red: 255, green: 0, blue: 0 }
|
isSpotlight: false,
|
||||||
|
diffuseColor: { red: 255, green: 255, blue: 255 },
|
||||||
|
ambientColor: { red: 255, green: 255, blue: 255 },
|
||||||
|
specularColor: { red: 0, green: 0, blue: 0 },
|
||||||
|
|
||||||
|
constantAttenuation: 1,
|
||||||
|
linearAttenuation: 0,
|
||||||
|
quadraticAttenuation: 0,
|
||||||
|
exponent: 0,
|
||||||
|
cutoff: 180, // in degrees
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
print("Can't create Light: Light would be out of bounds.");
|
print("Can't create Light: Light would be out of bounds.");
|
||||||
|
|
Loading…
Reference in a new issue