Re: Learning JOGL and related topics.
Posted by millerni456 on Aug 12, 2011; 8:15pm
URL: https://forum.jogamp.org/Learning-JOGL-and-related-topics-tp3167983p3250309.html
I must say that I am starting to understand a lot better way shaders are.
Although I was wondering if there was a library on the internet that contains vertex and fragment shaders; so I could just attach them to my program to see how to use shaders in a program. (That way I wouldn't have to hard-code some shaders yet).
Also, I was wondering if I needed any special compiler for shaders. Are they just text documents that contain information that only OpenGL cares about? Or is it an actual C program that needs to be compiled. I actually didn't read through the whole tutorial on lighthouse3d.com yet, but I wanted to know if there was a GLSL specification so I can learn what commands do what, and how to format the shader file.
In short I wanted to know if I could just open up notepad and start coding a vertex shader. Then I could save and name it vertexShader.vert or something similar. Then attach that file to my JOGL application to use that as my vertex shader.
Thanks for all support in my JOGL learning experience :)