Rework shaders and vertex expansion code.