Archived

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

jerry2

The glLightfv and glLightModelfv

Recommended Posts

jerry2    122
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
zedzeek    529
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
jerry2    122
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