Skip to content

Instantly share code, notes, and snippets.

View hardy613's full-sized avatar
🕸️
Developing

Scott Hardy hardy613

🕸️
Developing
  • Earth
View GitHub Profile
async function loadMeshes() {
const newMeshes = await BABYLON.SceneLoader.ImportMeshAsync(null, "ColladaFiles/", babItem, sceneBAB);
for(const mesh of newMeshes){
mesh.castShadow = true;
mesh.receiveShadows=true;
mesh.parent= renderItemsBAB[currentCab.obj["cabNumber"]];
mesh.id=currentCab.obj["cabNumber"];
shadowGenerator.getShadowMap().renderList.push(mesh);
}
console.log(currentCab.obj["cabNumber"])