سؤال

is it possible to declare lighting on objects without declaring surfaces normals?

steps i'm willing to do are:

1. enable lighting
2. define surface material 
3. define lighting position
4. define lighting parms : ambient....

is it enough or do i have to put somewhere there also glNormal ?

لا يوجد حل صحيح

نصائح أخرى

You can't compute lighting without knowing what direction the surface is facing. That direction is called the surface normal. So either you're going to have to provide one, or you're going to have to compute one in a shader. And the latter is somewhat unlikely in the general case.

So yes, you need to provide vertex normals to do lighting.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top