updates and bugfixes to lighting
envmaps