shaders(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– shaders β€” Shader Classes πŸ’–

okay bestie, gather round, because this is the shaders(3) page from the Library Functions Manual and it is lowkey iconic. sit down, hydrate, let's go 🫢


✨ NAME ✨

shaders β€” Shader Classes. that's it. that's the whole name. short, sweet, main character energy πŸ‘‘


🌸 SYNOPSIS 🌸

πŸŽ€ Classes πŸŽ€

  • class SoVertexAttribute β€” a generic node for handing over GL vertex attributes of literally whatever type you want. no gatekeeping here ✨
  • class SoVertexAttributeBinding β€” the node that decides how those vertex attributes get mapped onto shapes. it's the matchmaker, fr fr πŸ’…
  • class SoShaderObject β€” no blurb included, she's mysterious and we respect that πŸ™ˆ
  • class SoShaderProgram β€” this one is used to specify a whole set of vertex/geometry/fragment objects all at once. the group chat admin of shaders πŸ“‹

🌈 Detailed Description 🌈

okay so. Coin-2.5 walked in and added support for Shaders, and it ate πŸ’…

here's the tea: shaders replace the fixed function vertex and fragment processing in OpenGL by letting you, yes you, define the processing that happens at key points in the OpenGL pipeline. no more "the GPU decides, hope it goes well" energy β€” you're the director now, you're the main character 🎬

  • Vertex shaders handle the operations that occur on each vertex πŸ¦‹
  • Fragment shaders handle the operations that occur on each pixel 🌸

and the SoShaderProgram node in Coin is the convenient way to specify the code for your vertex and fragment shaders. one node, both shaders, obsessed πŸ’–

then Coin-3.0 said "hold my strawberry drink" πŸ“ and expanded the shader support by adding support for OpenGL Vertex Attributes.

the way that when you're using shaders, programmers are no longer limited to the set of attributes that OpenGL defines (glColor, glNormal, glTexCoord etc.)?? the freedom. the range. πŸ”₯

so now you can define your own per-vertex data and pass them to the shaders using the SoVertexAttribute node. custom data, custom vibes, no cap πŸ‘‘

ngl bestie, if you were still handcuffing yourself to glColor and friends while writing shaders, this is your sign to stop πŸ’€

🧚 Author 🧚

Generated automatically by Doxygen for Coin from the source code. not a human, just a very efficient little robot doing its thing πŸ€–βœ¨


and that's the whole page, bestie!! this was Coin, Version 3.1.3, mwah πŸ’‹ go forth and shader your little heart out πŸ’œπŸ¦‹

πŸ“¦ where this page comes from