Example #1
0
 public StarDefData(StarLibType starType, string starName, int starLinesCount, int passCount, float sampleLength, float attenuation, float inclination, float rotation, float longAttenuation = 0f, float customIncrement = -1f)
 {
     this.m_starType        = starType;
     this.m_starName        = starName;
     this.m_passCount       = passCount;
     this.m_sampleLength    = sampleLength;
     this.m_attenuation     = attenuation;
     this.m_starlinesCount  = starLinesCount;
     this.m_inclination     = inclination;
     this.m_rotation        = rotation;
     this.m_customIncrement = customIncrement;
     this.m_longAttenuation = longAttenuation;
     this.CalculateStarData();
 }
 public GlareDefData(StarLibType starType, float starInclination, float chromaticAberration)
 {
     m_starType            = starType;
     m_starInclination     = starInclination;
     m_chromaticAberration = chromaticAberration;
 }
Example #3
0
 /// Access to the star library
 public static StarDefinition GetLib(StarLibType type)
 {
     return(_starLib[(int)type]);
 }