- sgScaleVec3 ( SGNewCloud::sunlight, diffuse , 0.70f);
- sgScaleVec3 ( SGNewCloud::ambLight, ambient , 0.60f);
+// sgScaleVec3 ( SGNewCloud::sunlight, diffuse , 1.0f);
+ sgScaleVec3 ( SGNewCloud::ambLight, ambient , 1.1f);
+ // trying something else : clouds are more yellow/red at dawn/dusk
+ // and added a bit of blue ambient
+ sgScaleVec3 ( SGNewCloud::sunlight, sun_color , 0.4f);
+ SGNewCloud::ambLight[2] += 0.1f;
+
+ sgVec3 delta_light;
+ sgSubVec3(delta_light, last_sunlight, SGNewCloud::sunlight);
+ if( (fabs(delta_light[0]) + fabs(delta_light[1]) + fabs(delta_light[2])) > 0.05f ) {
+ sgCopyVec3( last_sunlight, SGNewCloud::sunlight );
+ // force the redraw of all the impostors
+ SGNewCloud::cldCache->invalidateCache();
+ }