Working on lights
This commit is contained in:
1 parent
442d3a7945
commit
e3542b59f7
6 files changed
+237
-36
No files matched your search
+7
-15
@@ -262,6 +262,7 @@ namespace ZL
|
||||
|
||||
uniInteriorParams.teleportsJsonPath = "resources/config2/teleports_uni_interior.json";
|
||||
uniInteriorParams.triggerZonesJsonPath = "resources/config2/trigger_zones_uni_interior.json";
|
||||
uniInteriorParams.lightsJsonPath = "resources/config2/lights_uni_interior.json";
|
||||
uniInteriorParams.scriptPath = "resources/start_uni_interior.lua";
|
||||
uniInteriorParams.interactiveObjectsJsonPath = "resources/config2/interactive_objects_uni_interior.json";
|
||||
uniInteriorParams.playerPosition = Eigen::Vector3f(0.942694, 0, -9.63104);
|
||||
@@ -288,6 +289,7 @@ namespace ZL
|
||||
//uniExteriorParams.navigationJsonPaths = { "resources/navigation/uni_exterior2_all.json" };
|
||||
uniExteriorParams.teleportsJsonPath = "resources/config2/teleports_uni_exterior.json";
|
||||
uniExteriorParams.triggerZonesJsonPath = "resources/config2/trigger_zones_uni_exterior.json";
|
||||
uniExteriorParams.lightsJsonPath = "resources/config2/lights_uni_exterior.json";
|
||||
uniExteriorParams.scriptPath = "resources/start_uni_exterior.lua";
|
||||
uniExteriorParams.playerPosition = Eigen::Vector3f(5, 0, -18.4);
|
||||
uniExteriorParams.npcsJsonPath = "resources/config2/npcs_uni_exterior.json";
|
||||
@@ -308,6 +310,7 @@ namespace ZL
|
||||
params_dorm.npcsJsonPath = "resources/config2/npcs_dorm.json";
|
||||
params_dorm.dialoguesJsonPath = "resources/dialogue/dorm_dialogues.json";
|
||||
|
||||
/*
|
||||
params_dorm.navigationJsonPaths = {
|
||||
"resources/navigation/dorm3_bca.json",
|
||||
"resources/navigation/dorm3_ca.json",
|
||||
@@ -315,7 +318,7 @@ namespace ZL
|
||||
"resources/navigation/dorm3_a.json",
|
||||
"resources/navigation/dorm3_b.json",
|
||||
"resources/navigation/dorm3_all_open.json",
|
||||
};
|
||||
};*/
|
||||
/*
|
||||
params_dorm.navigationJsonPaths = {
|
||||
"resources/navigation/dorm2_bca2.json",
|
||||
@@ -336,7 +339,7 @@ namespace ZL
|
||||
"resources/navigation/dorm2_b.txt",
|
||||
"resources/navigation/dorm2_all_open.txt",
|
||||
};*/
|
||||
/*
|
||||
|
||||
params_dorm.navigationJsonPaths = {
|
||||
"resources/navigation/dorm0_large.json",
|
||||
"resources/navigation/dorm0_large.json",
|
||||
@@ -344,11 +347,12 @@ namespace ZL
|
||||
"resources/navigation/dorm0_large.json",
|
||||
"resources/navigation/dorm0_large.json",
|
||||
"resources/navigation/dorm0_large.json",
|
||||
};*/
|
||||
};
|
||||
|
||||
|
||||
params_dorm.teleportsJsonPath = "resources/config2/teleports_dorm.json";
|
||||
params_dorm.triggerZonesJsonPath = "resources/config2/trigger_zones_dorm.json";
|
||||
params_dorm.lightsJsonPath = "resources/config2/lights_dorm.json";
|
||||
params_dorm.scriptPath = "resources/start_dorm.lua";
|
||||
params_dorm.interactiveObjectsJsonPath = "resources/config2/interactive_objects_dorm.json";
|
||||
params_dorm.playerPosition = Eigen::Vector3f(6.76345, 0, -14.6022);
|
||||
@@ -422,18 +426,6 @@ namespace ZL
|
||||
});
|
||||
}
|
||||
|
||||
// Add test spotlight to every location for night-mode testing.
|
||||
{
|
||||
PointLight testLight;
|
||||
//testLight.position = Eigen::Vector3f(-3.5951f, 3.0f, 0.280929f);
|
||||
testLight.position = Eigen::Vector3f(-3.5951f, 6.0f, 0.280929f);
|
||||
testLight.direction = Eigen::Vector3f(0.0f, -1.0f, 0.0f); // straight down
|
||||
//testLight.color = Eigen::Vector3f(2.0f, 1.6f, 1.2f);
|
||||
testLight.color = Eigen::Vector3f(4.0f, 3.2f, 2.4f);
|
||||
for (auto& [name, loc] : locations)
|
||||
loc->pointLights.push_back(testLight);
|
||||
}
|
||||
|
||||
currentLocation = locations["location_dorm"];
|
||||
currentLocation->scriptEngine.callLocationEnterCallback();
|
||||
|
||||
|
||||
Reference in new issue
Block a user