diff options
| author | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-05-13 14:42:42 -0600 |
|---|---|---|
| committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-05-13 14:42:42 -0600 |
| commit | 6af9c3a9191e8a00f616ba321b2d5e407bb12ab3 (patch) | |
| tree | 26a2a81791b83f5f37fbbd7fc5d14189fc7fa317 | |
| parent | 82cb0595848a0e9b1fbea0fef695cff859f45c5a (diff) | |
| download | SonsOfSol-6af9c3a9191e8a00f616ba321b2d5e407bb12ab3.tar.gz SonsOfSol-6af9c3a9191e8a00f616ba321b2d5e407bb12ab3.tar.bz2 SonsOfSol-6af9c3a9191e8a00f616ba321b2d5e407bb12ab3.zip | |
shader bug
| -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; |