r2: move attribute defs to tr_glsldef