Reputation: 8392
The HTML5 canvas has the gradients and shadow elements to add shadowing effects. However, it seems that having a light source mentioned would have the shadow effects be more realistic. Is there any such method to mention a light source or is one being planned ?
Upvotes: 0
Views: 884
Reputation: 2040
No, but you can use scripts such as Three.js that provides suchs features.
Upvotes: 2
Reputation: 3542
No, the canvas API does not include any built in "lighting" features.
Upvotes: 0