update flat shading sample