To use SFML shaders in C#, the SFML.NET library is required. Here's how to use shaders with SFML.NET:
main.cs40 chars3 lines
Shader
object and load a vertex and fragment shader.main.cs59 chars2 lines
RenderTexture
object to render your scene to.main.cs58 chars2 lines
RenderTexture
.main.cs50 chars2 lines
RenderTexture
.main.cs129 chars4 lines
Where window
is your RenderWindow
object and drawable
is the Drawable
object you want to render with the shader applied.
That's it! Now you can create and use shaders in your SFML.NET C# project.
gistlibby LogSnag