I recently exported two models from Blender, each saved as a separate json file using the latest three.js exporter. However, when I attempted to load them into my test app and enable shadow casting, the shadows were not appearing at all. Any thoughts on what might be causing this issue?
var renderer, camera, scene, controls;
/////// JSON DATA ////
var static_objects = [
{
name:"ground",
pos:{
x:-45.0, y:-1, z:14.0
},
size:20,
model_url: "obj.moon_ground.json",
},
{
name:"cylinder",
pos:{
x:-20.0, y:5.0, z:0.0
},
size:10,
model_url:"obj.cylinder.json",
}
];
var ObjectsToLoad = static_objects.length || 0;
///////////////////////////
...
(init functions and rendering process remains the same)
...
initAll();