Gelero
10-01-2001, 08:54 AM
Why my lights are "LIGHTING" my whole environment ?? i mean, how can i make a spot light ?? i need code guys!
im using this code before i call my function to draw my obj model...
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, @Light_WHITE );
glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, @Light_WHITE );
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, @Light_BLACK );
i ll give a example!
i have a space ship (my .obj model) light by green light (environment) and a red spot light come next to the space ship lighting the hull with constant velocity...
can somebody help me???
will be great!
thank you!
im using this code before i call my function to draw my obj model...
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, @Light_WHITE );
glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, @Light_WHITE );
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, @Light_BLACK );
i ll give a example!
i have a space ship (my .obj model) light by green light (environment) and a red spot light come next to the space ship lighting the hull with constant velocity...
can somebody help me???
will be great!
thank you!