i am developing 3D applications and found wierd annoying issue with Adreno 320(nexus 4) while adreno 200's works OK and tested on PowerVR SGX
Whats the problem is discarding pixels.
when the dot product of the two direction vectors were negative at angles between (camera vs light) 90 and 275 degrees, the numbers seem to just get truncated which resulted in the corresponding pixel to just get discarded.
In my shader i have loop, first i thought the loop is problem so then i just unrolled loop outside of shader. This didnt fixed the problem then i found that is problem onto the dot product.
In info regarding this would be appriciated.