Archived

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

jerry2

The glLightfv and glLightModelfv

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
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