This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

God Ray effect (light scattering) with Mali GPU

Note: This was originally posted on 10th May 2012 at http://forums.arm.com

Hello everyone,

I'm implementing the God Ray effect for an Android game on Mali-400 based devices (here is Samsung I9100 and Samsung I9300).
I've followed this article http://fabiensanglard.net/lightScattering/index.php
But the effect is not good (as you can see in the attached file).
It did work on Win32 and other Adreno and PowerVR based devices.
I think that there's problem with the texture's coordinate fetch from vertex shader to fragment shader, the interpolation computation may cause this issue.

I hope that you can give us some idea on this.

Thank you.




Parents
  • Thank you for looking through the mists of history to uncover this .

    A very good and extremely professional answer, well worth the read. Also works very well. The precision is great now, and will also keep this in mind for other shader that i might use for the embedded platforms.

Reply
  • Thank you for looking through the mists of history to uncover this .

    A very good and extremely professional answer, well worth the read. Also works very well. The precision is great now, and will also keep this in mind for other shader that i might use for the embedded platforms.

Children
No data