Return to site

Compute shader example opengl 4.3

broken image

For 1,000 stars, this means we haveġ,000 x 1,000 = 1,000,000 million calculations to perform for each frame.

broken image

Star is effected by each other star’s gravity. In this example, we will simulate a star field using an ‘N-Body simulation’. Of times faster than just by using the CPU.

broken image

Using the compute shader, you can use the GPU to perform calculations thousands

broken image