From 6af9c3a9191e8a00f616ba321b2d5e407bb12ab3 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Wed, 13 May 2015 14:42:42 -0600 Subject: shader bug --- shaders/earth.fp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit