Hi Chaps!
I am a little confused about shaders - it is my first time ever looking at them. I have managed to grab some snippets of code off the web and apply them successfully to my app, but they were very basic setups. I needed two setup files - a Vector Shader (.vs) file, and a Pixel Shader(.ps) file.
Question 1: Simply put: What is the function of these files? What is their individual purpose?
Question 2: I know these are written in GLSL, are there any good tutorials you know of to get me started?
Question 3: So far, a lot of the shaders I'v seen react to objects on the screen. Do you have to generate Shaders on the fly from your AppGameKit code to incorporate objects into your calculations?
Question 4: If question3 = Yes then how do you pass object references from AppGameKit to GLSL. If question 4 = No, then how does a shader accomodate objects into it's calculations?
Question 5:
https://www.youtube.com/watch?v=iwQ_M1g01-8 - any ideas how this was achieved?
Question 6:
https://www.youtube.com/watch?v=zz1YiznuCFk - In the comments, it says this code is posted on the forum. Has anyone seen it?!
Question 7: Are there and good editors out there to help with coding shaders?
Any help you could offer me would be great, it seems the subject of shaders is shrouded in mystery!?
I'm very confused over the 3D shaders being so easy to access, but 2D shaders aren't? Surely 1 less dimension is a massive bonus for your GPU??
Peace!