Replace secondary lights with lightspots
This commit is contained in:
parent
af9eeeeca0
commit
d2b4564460
2 changed files with 8 additions and 24 deletions
|
@ -516,22 +516,6 @@ var lightsLoop = maketimer(0.2, func {
|
|||
} else {
|
||||
nav_lights.setBoolValue(0);
|
||||
}
|
||||
|
||||
# landing lights
|
||||
landl = getprop("/controls/lighting/landing-lights[1]");
|
||||
landr = getprop("/controls/lighting/landing-lights[2]");
|
||||
|
||||
if (landl == 1 and getprop("sim/current-view/internal") == 1) {
|
||||
setprop("/sim/rendering/als-secondary-lights/use-landing-light", 1);
|
||||
} else {
|
||||
setprop("/sim/rendering/als-secondary-lights/use-landing-light", 0);
|
||||
}
|
||||
|
||||
if (landr == 1 and getprop("sim/current-view/internal") == 1) {
|
||||
setprop("/sim/rendering/als-secondary-lights/use-alt-landing-light", 1);
|
||||
} else {
|
||||
setprop("/sim/rendering/als-secondary-lights/use-alt-landing-light", 0);
|
||||
}
|
||||
});
|
||||
|
||||
var lTray = func {
|
||||
|
|
|
@ -95,12 +95,12 @@ var light_manager = {
|
|||
me.light4_zpos = 2.0;
|
||||
|
||||
# color values
|
||||
me.light1_r = 0.5;
|
||||
me.light1_g = 0.5;
|
||||
me.light1_b = 0.5;
|
||||
me.light2_r = 0.5;
|
||||
me.light2_g = 0.5;
|
||||
me.light2_b = 0.5;
|
||||
me.light1_r = 0.7;
|
||||
me.light1_g = 0.7;
|
||||
me.light1_b = 0.7;
|
||||
me.light2_r = 0.7;
|
||||
me.light2_g = 0.7;
|
||||
me.light2_b = 0.7;
|
||||
me.light3_r = 0.5;
|
||||
me.light3_g = 0.5;
|
||||
me.light3_b = 0.5;
|
||||
|
@ -172,13 +172,13 @@ var light_manager = {
|
|||
var sh = math.sin(heading);
|
||||
var ch = math.cos(heading);
|
||||
|
||||
if (ll1 == 1 and type_of_view == 0) {
|
||||
if (ll1 == 1) {
|
||||
me.light1_on();
|
||||
} else {
|
||||
me.light1_off();
|
||||
}
|
||||
|
||||
if (ll2 == 1 and type_of_view == 0) {
|
||||
if (ll2 == 1) {
|
||||
me.light2_on();
|
||||
} else {
|
||||
me.light2_off();
|
||||
|
|
Reference in a new issue