(Cg) Move cg shader variables to struct and allocate it at shader init