Some fixes.
Started work on cubemap shadowmapping.
TODO: fix performance. check cubemap generation