Michaël Lemaire
620877bf64
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@510 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
25 lines
1,019 B
C
25 lines
1,019 B
C
#include "public.h"
|
|
|
|
#ifndef _PAYSAGES_ATMOSPHERE_PRIVATE_H_
|
|
#define _PAYSAGES_ATMOSPHERE_PRIVATE_H_
|
|
|
|
#define SPHERE_SIZE 10000.0
|
|
|
|
/* 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)
|
|
|
|
Color basicApplyAerialPerspective(Renderer* renderer, Vector3 location, Color base);
|
|
void basicGetLightingStatus(Renderer* renderer, LightStatus* status, Vector3 normal, int opaque);
|
|
|
|
void brunetonInit();
|
|
Color brunetonGetSkyColor(AtmosphereDefinition* definition, Vector3 eye, Vector3 direction, Vector3 sun_position);
|
|
Color brunetonApplyAerialPerspective(Renderer* renderer, Vector3 location, Color base);
|
|
void brunetonGetLightingStatus(Renderer* renderer, LightStatus* status, Vector3 normal, int opaque);
|
|
|
|
Color preethamGetSkyColor(AtmosphereDefinition* definition, Vector3 eye, Vector3 direction, Vector3 sun_position);
|
|
|
|
#endif
|