Reputation: 1058
So even in the example "webgl_loader_obj_mtl" the ambient light is not being used. You can comment it out and it makes no difference. It relies on the directional light. If you comment out the directional nothing displays (since ambient is not casting color).
Is there a way to fix this?
Using only directional light creates glare/reflections that make the object look plastic, and only lights certain areas
Upvotes: 0
Views: 1571
Reputation: 12642
That is because if you look at the .mtl file the Ka parameter (ambient of material) is everywhere 0.00. Try changing it to 0.2 and you will see ambient light effects.
Upvotes: 3