A GPGPU Conway's game of life, with PBR, shadows and AO.
If there are no cells, click here to randomize.
The GPGPU Conway version uses ping-pong textures to run the simulation.
The current position texture is used to determine the state of the cell when drawing. Each cell is a box geometry merged into a bigger one.
The cell object is rendered with a Custom version of MeshStandardMaterial, adding the lookup to the nearby cells to determine the degree of ambient occlusion. The fragment shader then adds the AO term with the rest of the BRDF in the Physical material.
Heavily based on Iñigo Quílez's work on Voxel Lines and Occlusion.
Based on Matt DesLauriers's Custom mesh standard material.