paysages3d/lib_paysages/skyrayleigh.h
2012-08-26 20:40:39 +00:00

21 lines
446 B
C

#ifndef _PAYSAGES_RAYLEIGH_H_
#define _PAYSAGES_RAYLEIGH_H_
/* Implementation of Rayleigh/Mie atmospheric light scattering */
#include "color.h"
#include "euclid.h"
#ifdef __cplusplus
extern "C" {
#endif
Color skyRayleighGetColor(Vector3 viewer, Vector3 direction, Vector3 sun_direction);
Color skyRayleighApplyToObject(Vector3 viewer, Vector3 object_location, Vector3 sun_direction, Color object_color);
#ifdef __cplusplus
}
#endif
#endif