2012-12-24 13:59:17 +00:00
|
|
|
#include "public.h"
|
|
|
|
|
2012-12-02 11:08:56 +00:00
|
|
|
#ifndef _PAYSAGES_ATMOSPHERE_PRIVATE_H_
|
|
|
|
#define _PAYSAGES_ATMOSPHERE_PRIVATE_H_
|
|
|
|
|
2013-01-16 15:26:33 +00:00
|
|
|
#define SPHERE_SIZE 10000.0
|
2012-12-09 17:49:28 +00:00
|
|
|
|
2013-01-30 17:00:26 +00:00
|
|
|
/* Factor to convert software units to kilometers */
|
|
|
|
#define WORLD_SCALING 0.05
|
|
|
|
#define SUN_DISTANCE 149597870.0
|
|
|
|
#define SUN_DISTANCE_SCALED (SUN_DISTANCE / WORLD_SCALING)
|
|
|
|
#define SUN_RADIUS 6.955e5
|
|
|
|
#define SUN_RADIUS_SCALED (SUN_RADIUS / WORLD_SCALING)
|
|
|
|
|
2012-12-24 15:15:40 +00:00
|
|
|
Color basicApplyAerialPerspective(Renderer* renderer, Vector3 location, Color base);
|
2013-01-19 22:42:50 +00:00
|
|
|
void basicGetLightingStatus(Renderer* renderer, LightStatus* status, Vector3 normal, int opaque);
|
2012-12-24 15:15:40 +00:00
|
|
|
|
2012-12-12 13:21:46 +00:00
|
|
|
void brunetonInit();
|
2012-12-02 11:08:56 +00:00
|
|
|
Color brunetonGetSkyColor(AtmosphereDefinition* definition, Vector3 eye, Vector3 direction, Vector3 sun_position);
|
2012-12-24 11:24:27 +00:00
|
|
|
Color brunetonApplyAerialPerspective(Renderer* renderer, Vector3 location, Color base);
|
2013-01-20 15:07:45 +00:00
|
|
|
void brunetonGetLightingStatus(Renderer* renderer, LightStatus* status, Vector3 normal, int opaque);
|
2012-12-02 11:08:56 +00:00
|
|
|
|
|
|
|
Color preethamGetSkyColor(AtmosphereDefinition* definition, Vector3 eye, Vector3 direction, Vector3 sun_position);
|
|
|
|
|
|
|
|
#endif
|