• Stars
    star
    208
  • Rank 189,015 (Top 4 %)
  • Language
    C#
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C# OpenGL Particle Simulation, GPU accelerated

C# OpenGL Newtonian-Particle-Simulator

gif img1

This is a very simplistic particle engine. The whole pipeline consists out of a single shader program. The vertex shader computes and renders particles at the same time. The fragment shader just outputs the computed colors with blending enabled. The actual particles are stored in a Shader Storage Buffer which is a really useful arbitrary read/write interface of global GPU memory.

Requires OpenGL 4.5.

Also see https://youtu.be/NhnoNYqIhTI.

KeyBoard:

  • W, A, S, D => Movment
  • E => Toggle cursor visibility
  • T => Toggle simulation
  • V => Toggle VSync
  • F11 => Toggle fullscreen
  • LShift => Faster movment speed
  • LControl => Slower movment speed
  • Esc => Close

Mouse:

  • LButton => Set point of mass