문제

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