SFML community forums

Bindings - other languages => DotNet => Topic started by: First on October 19, 2013, 03:10:26 pm

Title: Shaders
Post by: First on October 19, 2013, 03:10:26 pm
How to use shaders in SFml for C #? I can not find examples on the internet. Here toko training for C + +, what is bad and limited.

I connected Schöder, but how to make it work? Need to call RenderStates?
Title: Re: Shaders
Post by: zsbzsb on October 19, 2013, 03:11:22 pm
Take a look at the included examples in the .NET SDK.
Title: Re: Shaders
Post by: First on October 19, 2013, 08:34:23 pm
What is this? Where is it? And you can briefly describe how to use shaders with SFML?
Title: Re: Shaders
Post by: G. on October 19, 2013, 10:25:53 pm
https://github.com/SFML/SFML.Net/tree/master/examples/shader I guess...
(Searching is helpful)
Title: Re: Shaders
Post by: zsbzsb on October 20, 2013, 06:30:20 am
https://github.com/SFML/SFML.Net/tree/master/examples/shader I guess...
(Searching is helpful)

Exactly what I was talking about, now if you have any specific questions feel free to ask them  ;)
Title: Re: Shaders
Post by: First on October 20, 2013, 12:38:31 pm
I'm sorry, but I did not understand. I found the shaders, but the examples I have not found or found, but did not understand them. Can a small example. Small.
Title: Re: Shaders
Post by: Ixrec on October 20, 2013, 12:56:31 pm
Are you really sure you couldn't understand this one? https://github.com/SFML/SFML.Net/blob/master/examples/shader/Shader.cs  I don't even know C# and I can tell what's going on there.

It does have multiple shaders in it, so maybe you'd find it easier to parse if you removed all but one of them (leaving only the Effect, Pixelate and Program classes, since Pixelate is the simplest shader).
Title: Re: Shaders
Post by: Laurent on October 20, 2013, 05:13:44 pm
Read the tutorial. Everything is exactly the same: same classes, same functions, etc. only the syntax is slightly different.