Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

GLSL vec4 multiplication not working?

4: Adsense

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   

371
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   

2419
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   Members   

13714
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   

371
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.