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

Author Topic: Shaders again  (Read 1543 times)

0 Members and 1 Guest are viewing this topic.

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Shaders again
« on: November 27, 2013, 11:55:07 am »
I'm trying to deploy these shader in SFML, but I can not, I'm doing the following:

shader.loadFromFile ("img / sa.vert", "img / sa.frag")

http://xissburg.com/pt-br/desfoque-gaussiano-mais-rapido-em-glsl/

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Shaders again
« Reply #1 on: November 27, 2013, 12:07:07 pm »
Please read the documentation, tutorials and examples that come with SFML. Your code does not match the given syntax in any of these texts. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Shaders again
« Reply #2 on: November 27, 2013, 12:12:42 pm »
Thanks, had not read the end  ;D

wintertime

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
Re: Shaders again
« Reply #3 on: November 27, 2013, 03:01:17 pm »
You should also not include extraneous spaces into a file path, that will never work.