shader passing and rendering texture huge problem
I'm fighting with some stupidly easy problem. I can't get passing and rendering texture by shader working. After passing existing, complete texture ( I tried dozens of them, loaded in various ways... always same effect ), and rendering it even with the easiest way on quad, I got solid color filled one. The funniest thing is, that the color is picked from the attached texture - usually from point (1,1) - in normalised coords.
Here's some more info and code fragment:
Please... help! I try to fix it for a couple of days now! I need to have it workin as soon as possible... unfortunately :/
Thanks in advance for any ideas here.
Try binding and setting your texture after you activate the shader ( I assume program->begin() activates the shader)
Nope... that wasn't the problem... I just forgot to put texCoords when was drawing the full screen post effect quad ( the first one in my code) ... Yep... that was it!
I was looking for long hours for some hardcore bugs in my code, in spite of looking for some ease one first...
My friend found it after 5min of looking on my code.. but thank you anyway for precious help!