# MonoGame-Shader-Samples
**Repository Path**: clrt6174/MonoGame-Shader-Samples
## Basic Information
- **Project Name**: MonoGame-Shader-Samples
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: compute_cpu
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-03-10
- **Last Updated**: 2025-03-10
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[< Back to overview](https://github.com/cpt-max/MonoGame-Shader-Samples/tree/overview)
# Collision Test Compute Shader for MonoGame

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](https://github.com/cpt-max/Docs/blob/master/Build%20Requirements.md).
[< Back to overview](https://github.com/cpt-max/MonoGame-Shader-Samples/tree/overview)