33#define SUN_CORONA_SAMPLES 729
34#define MAX_CORONAFLARE 600000.0
36#ifndef SUN_DIRECT_VISION_GLARE
37#define SUN_DIRECT_VISION_GLARE 1
40#if SUN_DIRECT_VISION_GLARE
41#define SUN_GLARE_MULT_FACTOR 3.0
42#define SUN_GLARE_ADD_FACTOR (M_PI / 16.0)
43#define SUN_GLARE_CORONA_FACTOR 0.5f
45#define SUN_GLARE_CORONA_FACTOR 1.5
79- (id)initSunWithColor:(
OOColor*)sun_color andDictionary:(NSDictionary*)dict;
80- (BOOL)setSunColor:(
OOColor*)sun_color;
81- (BOOL)changeSunProperty:(NSString*)key withDictionary:(NSDictionary*)dict;
85- (void)getDiffuseComponents:(GLfloat[4])components;
86- (void)getSpecularComponents:(GLfloat[4])components;
88- (void)setRadius:(GLfloat)rad andCorona:(GLfloat)corona;
92- (void)setGoingNova:(BOOL)yesno inTime:(
double)interval;
95- (void)drawDirectVisionSunGlare;
float _sunCoronaAlphaFactor
GLfloat outerCoronaColor[4]
double corona_speed_factor
GLfloat rvalue[SUN_CORONA_SAMPLES]
GLuint sunTriangles[3240 *3]
OOTimeDelta _novaCountdown
GLfloat sunColors[1801 *4]
GLfloat sunVertices[1801 *3]
OOTimeDelta _novaExpansionTimer
float _sunBrightnessFactor