SHARE
TWEET

Untitled

a guest Feb 18th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         class MarkerLights
  2.         {
  3.             class Light_4
  4.             {
  5.                 color[]             = {1.0, 0.0, 0.0};      /// approximate colour of standard lights
  6.                 ambient[]           = {0.01, 0.0, 0.0};     /// nearly a white one
  7.                 intensity           = 800;                  /// strength of the light
  8.                 name                = "Light_4_pos";        /// name of
  9.                
  10.                 blinking            = true;                 /// lets make it blinking to show how patterns work
  11.                 blinkingPattern[]   = {0.25, 1.0};          // 0.25 s flash, 1.25 s period
  12.                 blinkingStartsOn    = true;                 /// pattern starts with length of the first flash
  13.                 blinkingPatternGuarantee    = true;         /// use this to guarantee all blinks of the patter to be done
  14.                                                             /// doesn't guarantee the length of pattern if true
  15.                                                             /// (e.g. because of blinks shorter than a frame would take a frame to be seen)
  16.  
  17.                 useFlare            = true;                 /// does the light use flare?
  18.                 flareSize           = 1.5;                  /// how big is the flare
  19.                 flareMaxDistance    = 1000;                 /// how far can you see the flare
  20.  
  21.                 activeLight         = true;                 /// engine counts this one as an active light into limit of lights
  22.                 dayLight            = false;                /// it doesn't shine during the day
  23.                 drawLight           = false;                /// doesn't create a specific face for flare
  24.  
  25.                 class Attenuation
  26.                 {
  27.                     start           = 0;
  28.                     constant        = 2;
  29.                     linear          = 10;
  30.                     quadratic       = 20;
  31.  
  32.                     hardLimitStart  = 5;                    /// it is good to have some limit otherwise the light would shine to infinite distance
  33.                     hardLimitEnd    = 6;                    /// this allows adding more lights into scene
  34.                 };
  35.             };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top