aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Rahm <joshua.rahm@colorado.edu>2015-05-13 14:42:42 -0600
committerJoshua Rahm <joshua.rahm@colorado.edu>2015-05-13 14:42:42 -0600
commit6af9c3a9191e8a00f616ba321b2d5e407bb12ab3 (patch)
tree26a2a81791b83f5f37fbbd7fc5d14189fc7fa317
parent82cb0595848a0e9b1fbea0fef695cff859f45c5a (diff)
downloadSonsOfSol-6af9c3a9191e8a00f616ba321b2d5e407bb12ab3.tar.gz
SonsOfSol-6af9c3a9191e8a00f616ba321b2d5e407bb12ab3.tar.bz2
SonsOfSol-6af9c3a9191e8a00f616ba321b2d5e407bb12ab3.zip
shader bug
-rw-r--r--shaders/earth.fp2
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;