The 3D calculation was performed in 2D. In OpenGL 2.1 or OpenGL ES, there was no function for calculating a three-dimensional texture. Therefore, it needed to convert the 3D texture to 2D. To perform 3D calculations of 18x18x18 size, 18 textures of 18x18 size were required. Therefore, a single texture performed all grid operations at once.The outcome was moved to the pixel accessible by the CPU and stored in an array. Map the values stored in the array to brightness values between 1 and 255, and send them to the LEDs in order.
Double Width
Off
Component