Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Shaders  (Read 4096 times)

0 Members and 1 Guest are viewing this topic.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Shaders
« 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?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Shaders
« Reply #1 on: October 19, 2013, 03:11:22 pm »
Take a look at the included examples in the .NET SDK.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Shaders
« Reply #2 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?

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Shaders
« Reply #3 on: October 19, 2013, 10:25:53 pm »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Shaders
« Reply #4 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  ;)
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Shaders
« Reply #5 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.

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Shaders
« Reply #6 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).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Shaders
« Reply #7 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.
Laurent Gomila - SFML developer

 

anything