upload via FTP with c#

Quick and easy way to get files uploaded with c#; static void Upload(string pathSource, string pathDest, string ftpServer, string ftpUsername, string ftpPassword ) { using (WebClient client = new WebClient()) { client.Credentials = new NetworkCredential(ftpUsername, ftpPassword); try { client.UploadFile(ftpServer + pathDest, “STOR”, pathSource); } catch(System.Net.WebException…

Some old voxel lighting code

If you look at some of the previous posts you will see this code or a variant of it in use. It may be useful to some. It is very much a hack and i hope to revisit it perhaps in c++ or java. public…