Michaël Lemaire
394ba7d4c5
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@359 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
20 lines
471 B
C
20 lines
471 B
C
#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
|
|
|
|
Color preethamGetSkyColor(Vector3 viewer, Vector3 direction, Vector3 sun_direction, double turbidity);
|
|
Color preethamApplyToObject(Vector3 viewer, Vector3 object_location, Vector3 sun_direction, double turbidity, Color object_color);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|