GLSL vec4 multiplication not working?

Started by
2 comments, last by CirdanValen 10 years, 10 months ago

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

Advertisement

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

Derp

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

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.

This topic is closed to new replies.

Advertisement