Jump to content

  • Log In with Google      Sign In   
  • Create Account

GLSL vec4 multiplication not working?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 CirdanValen   Members   -  Reputation: 272

Like
0Likes
Like

Posted 24 June 2013 - 09:04 PM

I'm having a problem with my shader causing my texture to render transparent. As you can see in the top 2 windows, the text is rendered correctly when I just use the image data. However, in the bottom half, the text is not rendered at all when I try to multiply a color. No shader errors at all.

 

2vAKWfG.png



#2 Sponji   Members   -  Reputation: 2070

Like
1Likes
Like

Posted 24 June 2013 - 11:03 PM

gDebugger also shows that your transformMatrix is full of zeros. Does that have something to do with your problem?


Derp

#3 Ashaman73   Crossbones+   -  Reputation: 13436

Like
1Likes
Like

Posted 24 June 2013 - 11:09 PM

Ensure that the alpha value of color (color.a, 4th component of the uniform) is 1.0.


Ashaman

 

Gnoblins: Website - Facebook - Twitter - Youtube - Steam Greenlit - IndieDB - Gamedev Log


#4 CirdanValen   Members   -  Reputation: 272

Like
0Likes
Like

Posted 24 June 2013 - 11:25 PM

gDebugger also shows that your transformMatrix is full of zeros. Does that have something to do with your problem?

 

Interesting...I didn't notice that! The issue was I was assigning my other two uniforms BEFORE calling glUseProgram. So "color" was conflicting with the handle of "transform matrix." Thanks for your help.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS