Revision 9f5eba09
Added by Leszek Koltunski over 8 years ago
build.gradle | ||
---|---|---|
1 | 1 |
apply plugin: 'com.android.application' |
2 | 2 |
|
3 | 3 |
android { |
4 |
compileSdkVersion 22
|
|
4 |
compileSdkVersion 23
|
|
5 | 5 |
buildToolsVersion "23.0.3" |
6 | 6 |
|
7 | 7 |
defaultConfig { |
Also available in: Unified diff
Correct an important bug in the vertex shader.
b = 1/a if a!=0, 1 otherwise was incorrectly computed as b = 1.0 / (a+1.0-sign(a)). This, when 0<a<2^-24, suffers from 'round-off error': then a+1.0 = 1.0 (sic!) thus b = 1/0 !.
Correct way: b = 1.0 / ( a - (sign(a)-1.0) )