as u may have noticed, i am strugglig to learn ARB programming, but with little effort, right now:
I am stuck with the very base things for now. I wrote a lil application that should draw an untextured, unlit quad in the mid of the screen. Just some stupid color gradient. Instead of it, just black.
I am starting to feel like the problem is that i am not sure of what i am writing. So i'd like someone answer some little questions:
1)what is an ATTRIB? what is a PARAM? what is the difference?
2)how i pass a vertex from opengl to my vertex program? just a glVertex3f() without glbegin and glend? or i have to use Arrays? all the examples i looked at were using arrays...
3)how i pass my processed vertices from vertex program to fragment program? i will have far more fragments than vertices, isn't it?
4)where do i put outputs? some files have a simil define on top like:
OUTPUT outPosition = result.position
other programs just have the restul stuff at the end. is there any standard format file??
if u got bored reading this message, just point me to a good book and make me shut up until i finished studing it