I created this water sim out of LEGO bricks as a personal project. I started by modeling a detailed 1x1 flat LEGO brick, then added the proper material and subsurface scattering properties to make it look like real plastic. I then created a fluid simulation and replaced the fluid with instances of the LEGO brick, along with a procedurally generated random offset to give the bricks a more natural spacing, as though it could have been put together by hand. The base color of each brick is determined by a height-based shader that creates frothy light water at the top and deeper blues below. Modeling, surfacing, physics, and rendering done in Blender.