Skip to content

cpt-max/MonoGame-Shader-Samples

 
 

Repository files navigation

< Back to overview

Collision Test Compute Shader for MonoGame

Screenshots

This sample uses a compute shader to do brute-force collision checks between circles. The buffer containing the collision results is then downloaded to the CPU, in order to color the circles according to how many collisions they are involved in.

Build Instructions

The custom MonoGame fork used in this sample is available as a NuGet package, no need to build it yourself.
As long as .Net 6 is installed, you can just open the csproj files in Visual Studio 2022, or launch directly from the command line:

dotnet run --project ShaderSampleGL.csproj

On Windows you can use ShaderSampleGL.csproj (OpenGL), or ShaderSampleDX.csproj (DirectX).
On Linux you have to use ShaderSampleGL.csproj.
Mac, Android and iOS are not yet available.

Here are more details about NuGet packages, platform support and build requirements.

< Back to overview

About

Compute, Tessellation and Geometry Shader Samples for MonoGame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors