SFML community forums
Bindings - other languages => DotNet => Topic started 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?
-
Take a look at the included examples in the .NET SDK.
-
What is this? Where is it? And you can briefly describe how to use shaders with SFML?
-
https://github.com/SFML/SFML.Net/tree/master/examples/shader I guess...
(Searching is helpful)
-
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 ;)
-
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.
-
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).
-
Read the tutorial. Everything is exactly the same: same classes, same functions, etc. only the syntax is slightly different.