Indeed. There is really great article about shadowcasting: http://www.catalinzima.com/2010/07/m...ic-2d-shadows/ check it out. It will helps a lot in understanding shader based technique.