PDA

View Full Version : Lighting computation problem



gaby
01-16-2002, 03:06 AM
Hi,

For my engine aptimisation, I would like to send color array that include the fixed lighting color variation, but I have lot of lights in my scene and the computation of this will be a hard work to simulate exatly the Opengl lighting model (per triangle transforms, lighting - point, distant, spot -, dot product etc...).

Is it posible to prelit vertices with OnpenGL, and to have this as feedback (per vertice or more globally in the color array) ?

Thanks a lot,

Gaby