I received a static .glb model that I have successfully loaded and lit,etc in my threejs project. However, how should I approach on how to give shadows on the model? (see picture below on where the shadow should be)
If you have control over how the 3D model is created, I would bake ambient occlusion into a respective texture. Notice that glTF does not support lightmaps.
I would only advice to use SSAO if you can’t use the above approach. There is an official example that demonstrates this technique. Notice that the quality of SSAOPass mainly depends on your scene’s scale. If you need a large camera frustum, you have to modify SSAOPass at the following place and use e.g. THREE.UnsignedIntType. It’s even better to use WebGL 2 and assign THREE.FloatType.
This will ensure a higher depth precision which will avoid flickering and artifacts when using SSAO. However, it will also make the pass more expensive to use.