Try to factorize shader using variadic templates.