black_hole

Shaders

Overview

The project relies heavily on GLSL shaders for both visualization and computation.

geodesic.comp (Compute Shader)

This is the heart of the simulation. It runs for every pixel in the viewport.

Inputs

Key Functions

grid.vert & grid.frag

Used for the CPU-generated grid visualization.

draw.vert & draw.frag (Implied)

Used to render the full-screen quad that displays the texture generated by the compute shader.