Local fixes

Changed textures into constant memory buffers