Another-Game-Engine / AGE

AGE - C++11 OpenGL4 Game Engine
MIT License
48 stars 11 forks source link

Fix point lights #559

Closed paulbaron closed 9 years ago

paulbaron commented 9 years ago

Point light fixed. The weird bug (little black squares appearing on screen) was due to the stencil buffer: The point light rendering totally changes the stencil buffer, so it is not reliable anymore to check which pixels have not been rendered.

I changed the pipeline this way:

On the debug pipeline, I have changed the order of the debug drawing and the light billboards are now draws in alpha test mode.

A bug on the compressed texture mipmapping has been also fixed.

closes #538