https://drive.google.com/file/d/0BwP9Dg ... sp=sharing
I am attempting to create dynamic lights and shadows using bump mapping. The idea is that we are taking a bird's eye view of the scene which the sun is orbiting (rising and setting) around. Clouds should scroll across the screen and block the light from the sun, and shadows should project out from all sprites based on the sun's position and height. The bump-mapping part was easy enough when starting from the C2 example, but I don't know how to cast shadows or what webGL effects to use to make the clouds display correctly. Looking forward to your advice. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
Note that the shadows I'm talking about here are different from the ones provided by the Shadow Caster Plugin, which is focused more on visibility. Shadows here are sprites with an opacity and angle, rather than raycasts. Think like this: