asantee / ethanon

Free 2D game development tool focused on the recent video cards for hardware acceleration and shader effects. It may be used to develop any style of game, such as top-down view RPG's, side scrollers and shoot'em up games. The main goal of this engine is to provide high-quality lighting, shadow and particle effects with an easy to use visual interface and a simple and direct scripting system.
http://ethanonengine.com/
149 stars 52 forks source link

Light glitches on some Samsung Android devices #19

Closed andresan87 closed 2 years ago

andresan87 commented 11 years ago

Light glitches to a square lighting object on some Samsung Devices (Eg: Galaxy S2 and Galaxy Note).

It happens on some samsung devices including many "galaxies". I haven't seen this issue happening on any other Android brand.

As far as I can tell, it is happening due some floating point precision misbehavior in the fragment shader implementation of these devices. It causes dynamic lights to produce incorrect range attenuation.

It could be fixed by normalizing these value before sending them to the fragment shader. But I still need to work on it.