Jump to content

  • Log In with Google      Sign In   
  • Create Account

Render objects unnaffected by shaders


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
2 replies to this topic

#1 ic0de   Members   -  Reputation: 839

Like
0Likes
Like

Posted 04 December 2011 - 10:59 PM

I have a 3d game that is lit with a GLSL Phong shader.

The game also draws a HUD in orthographic mode but when I'm using the shader it messes up the color of my HUD because it tries to light it as well.

Is there any way I can exempt orthographic geometry from being shaded?

you know you program too much when you start ending sentences with semicolons;


Sponsor:

#2 swiftcoder   Senior Moderators   -  Reputation: 9987

Like
1Likes
Like

Posted 04 December 2011 - 11:03 PM

Did you unbind the shader, by calling glUseProgram(0), before rendering your HUD elements?

Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#3 ic0de   Members   -  Reputation: 839

Like
0Likes
Like

Posted 04 December 2011 - 11:12 PM

Oh no I didn't, thanks so much!

you know you program too much when you start ending sentences with semicolons;





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