• Advertisement
Sign in to follow this  

GLSL vec4 multiplication not working?

This topic is 1671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement