2012-06-24 12:33:59 +00:00
|
|
|
#ifndef _PAYSAGES_PREETHAM_H_
|
|
|
|
#define _PAYSAGES_PREETHAM_H_
|
|
|
|
|
|
|
|
/* Implementation of Preetham/Shirley light scattering */
|
|
|
|
|
|
|
|
#include "color.h"
|
|
|
|
#include "euclid.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-08-26 20:40:39 +00:00
|
|
|
Color skyPreethamGetColor(Vector3 viewer, Vector3 direction, Vector3 sun_direction, double turbidity);
|
|
|
|
Color skyPreethamApplyToObject(Vector3 viewer, Vector3 object_location, Vector3 sun_direction, double turbidity, Color object_color);
|
2012-06-24 12:33:59 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|