diff options
| -rw-r--r-- | shaders/earth.fp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/earth.fp b/shaders/earth.fp index 7fd662c..5c839aa 100644 --- a/shaders/earth.fp +++ b/shaders/earth.fp @@ -21,7 +21,7 @@ void main() float redf2 = 0.0f; float greenf2 = 0.0f; - if( f > 0 ) { + if( f > 0.0 ) { bluef2 = (1.0f / (1.0f + exp(c * 20.0f))) * f; redf2 = 200.0 * (1.0f / (1.0f + exp(c * 20.0f))) * pow(f,10.0) * f; greenf2 = 200.0 * (1.0f / (1.0f + exp(c * 20.0f))) * pow(f,15.0) * f; |