Hello Guest

Author Topic: Learning shaders  (Read 3667 times)

0 Members and 1 Guest are viewing this topic.

EliasRenko

  • Member
  • Posts: 3
    • View Profile
Learning shaders
« on: January 20, 2016, 12:34:41 PM »
Hello everyone!!

I really want to dive into shaders but i really can't find any good documentation for GLSL and every version seems to me like a different story. The examples provided for Otter are great, but i want to get more into it. Any advice about reference, a guide or a clue about the version of GLSL Otter uses?

TaintedGoat

  • Member
  • Posts: 8
    • View Profile
Re: Learning shaders
« Reply #1 on: January 20, 2016, 08:47:25 PM »
Hi
I would recommend looking at shaders online such as the ones provided by the "Otter Examples" and play around with them to get a little used to GLSL. As to a tutorial i would recommend something im pretty sure you already looked up www.opengl.org/sdk/docs/tutorials/TyphoonLabs/Chapter_1.pdf. Note that i've never followed those tutorials myself, but giving it a quick look seems something ok to recommend. Also, SFML doesnt have support to a specific GLSL version, as you can see on this answer on the SFML forum
Quote
...SFML doesn't support anything, it rather depends on the target graphics card.
Some GPUs may not support shaders at all, some others may support it but with a limited set of GLSL instructions...

*If it caused any confusion talking about SFML rather than Otter*
-SFML handles the shader
-Otter provides the vertex and fragment files and uses them to create a SFML shader that you can later use as the Otter "Shader" class
That's about it. Sorry i couldnt give much 'valuable advice'.