Skip to content

sneccc/Particle_Test

 
 

Repository files navigation

C# OpenGL Newtonian-Particle-Simulator

gif img1

This is a very simple interactive particle simulator. 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

About

C# OpenGL Particle Simulation, GPU accelerated

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 81.2%
  • GLSL 18.8%