By Cullen Carns
CSC 471 - Winter 2020
This project procedurally generates unique lightning bolts and flashes them across the sky. The bolts are recursively generated through eleven iterations of randomly offsetting midpoints and randomly branching. The number of iterations, branchiness, and bendiness are fields which affect the lightning generation. The lightning generates a line mesh of several thousand vertices. The mesh is then rendered with only a select number of vertices, a sort of sliding window effect, in order to make the lightning crawl across the sky. During this time, a point light travels along the line mesh based on which part of the mesh is being drawn.