add shader flags for different shape rules