billboardRotationExample - how to change snowflake to brick of image?

I want to cut the image to array of color bricks and manipulate them in the same way as snowflackes.
Should I pass texture to shader and do some computation inside? or build mesh in proper way?