unify vertex and intersection shader