Skip to main content
GameDev.net gamedev.net
🔒 Locked

Specular light shade on texture mapped objects

Started by run_g Jan 21, 2011 at 12:58 PM 3 replies 900+ views
Original Post
run_g
run_g
I cant find code examples of how to put specular light shade component a texture mapped object. The program i'm writting the specular light shade only appear non-texture mapped objects. Does any one have a code example or program of specular highlight on textures to share? thanx
jerrylin88
jerrylin88

Might be a newbie ques.
I cant find code examples of how to put specular light shade component a texture mapped object. The program i'm writting the specular light shade only appear non-texture mapped objects. Does any one have a code example or program of specular highlight on textures to share? thanx




actually i am doing the same job take a look at my post http://www.gamedev.net/topic/593514-problem-with-broken-fragment-improperly-rendering/ but i do believe that specular light have obvious effect on my non-texture model because when i turn down the specular component of light the model changed. undoubtedly u should specify the normal per pixel b4 assigning the light thats as far as i know hope it helps.but ive no idea how those broken fragment came out.let me know anything u hit after another try.
run_g
run_g

Are you using shaders or fixed function?


Fixed funtion.
Anyone got code example or ideas?
run_g
run_g
any code ex ideas? Or is it impossible to get specular light shade on texture?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.