Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
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

Render objects unnaffected by shaders

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

#1 ic0de   Members   

974
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?
Currently working on new DOS game, Chuck Jones: Space Cop of the Future, Check out my Dev Blog
 

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


#2 swiftcoder   Senior Moderators   

18215
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] [GitHub]


#3 ic0de   Members   

974
Like
0Likes
Like

Posted 04 December 2011 - 11:12 PM

Oh no I didn't, thanks so much!
Currently working on new DOS game, Chuck Jones: Space Cop of the Future, Check out my Dev Blog
 

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.