Cleaned up the code where I passed the camera position/rotation/view vector/up vector to the kernel.