cleaned up a bit code for treatment of non-static uniform variables. all stored in shared memory