After successfully converting my first cloth simulation from OpenGL to WebGL using three.js, I noticed that it looks a bit dull. I am hoping to add ambient occlusion for nicely shaded effects when the cloth collides with a ball. Unfortunately, my knowledge of shaders is limited, so I would greatly appreciate any resources on this topic that could aid in my development with three.js (such as tutorials or book recommendations), as my searches on Google have been unfruitful.
Does anyone have any suggestions on how to implement ambient occlusion?
Thanks to WestLangley, the shading issue has been resolved! Now onto other questions: Any useful resources on shaders for three.js, or even HLSL skills in general?