Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//L.80行付近
<script type="text/javascript">var pagetype = "game", defaultmap = "JapanOtakuCity.babylon", antialias = true, adaptive = true, wasm = true, offline=false, folder = "scenes/", title = "BJS_Exporter";</script>
//最終行付近
if (BABYLON.SceneManager && BABYLON.SceneManager.RegisterLoader) {
BABYLON.SceneManager.RegisterLoader(defaultSceneLoader);
}
window.addEventListener("DOMContentLoaded", () => { defaultSceneLoader(folder, defaultmap); });
//L200行付近
var defaultSceneLoader = (root, name) => {
scene = null;
loaded = false;
showSceneLoader();
executeSceneLoader(root, name);
};
L130付近
var executeSceneLoader = (root, name) => {
progressSceneLoader();
BABYLON.SceneLoader.Load(root, name, engine, (newscene) => {
scene = newscene;
//省略
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment