add 3d mode to rendermode