• Advertisement

Archived

This topic is now archived and is closed to further replies.

The glLightfv and glLightModelfv

This topic is 6051 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The two function both can make an ambient, an diffuse or a specular propertiy,but what''s the difference between their propertiy set such as ambient? have any one got an idea? jerry2 jerry2

Share this post


Link to post
Share on other sites
Advertisement
glLightModel.(..) can only be used for ambient + not diffuseor specular. it gives a global ambient colour to every lit vertice/polygon in the scene. ie it doesnt come from any light

Share this post


Link to post
Share on other sites
i see.then that means it''s "true" environment light,because the light have no direction and position.is it ture?

thank you

jerry2

jerry2

Share this post


Link to post
Share on other sites

  • Advertisement