Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MarkerLights
- {
- class Light_4
- {
- color[] = {1.0, 0.0, 0.0}; /// approximate colour of standard lights
- ambient[] = {0.01, 0.0, 0.0}; /// nearly a white one
- intensity = 800; /// strength of the light
- name = "Light_4_pos"; /// name of
- blinking = true; /// lets make it blinking to show how patterns work
- blinkingPattern[] = {0.25, 1.0}; // 0.25 s flash, 1.25 s period
- blinkingStartsOn = true; /// pattern starts with length of the first flash
- blinkingPatternGuarantee = true; /// use this to guarantee all blinks of the patter to be done
- /// doesn't guarantee the length of pattern if true
- /// (e.g. because of blinks shorter than a frame would take a frame to be seen)
- useFlare = true; /// does the light use flare?
- flareSize = 1.5; /// how big is the flare
- flareMaxDistance = 1000; /// how far can you see the flare
- activeLight = true; /// engine counts this one as an active light into limit of lights
- dayLight = false; /// it doesn't shine during the day
- drawLight = false; /// doesn't create a specific face for flare
- class Attenuation
- {
- start = 0;
- constant = 2;
- linear = 10;
- quadratic = 20;
- hardLimitStart = 5; /// it is good to have some limit otherwise the light would shine to infinite distance
- hardLimitEnd = 6; /// this allows adding more lights into scene
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement