[INCLUDE: common/selflighting.ini]
[INCLUDE: common/no_popup_lights.ini]
[INCLUDE: common/materials_glass.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE:pbr_int.ini]
[INCLUDE:pbr_ext.ini]
[INCLUDE: android_auto/config.ini]

[DATA] 
DISABLE_LIGHTSINI = 1

; LIGTS

; front

[EMISSIVE_LIGHT_5]
NAME=lr_rangerover_08_lod0_headlightL_head_light___129_vertices_280_faces,lr_rangerover_08_lod0_headlightR_head_light___129_vertices_280_faces
BIND_TO_HEADLIGHTS=1
COLOR=230,230,280, 35
LAG=0.8
SIMULATE_HEATING=0.8
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_EXTRA_A_0]
NAME=high_beam_l,high_beam_r
BIND_TO_EXTRA_A=1
COLOR=255,249,253,0.3
LAG=0.8
SIMULATE_HEATING=0.6
LOCATION=FRONT

[EMISSIVE_EXTRA_B_0]
NAME=lr_rangerover_08_lod0_bumperFa_reflector___220_vertices_395_faces
BIND_TO_EXTRA_B=1
COLOR=255,249,253,0.5
LAG=0.8
SIMULATE_HEATING=0.6
LOCATION=FRONT

rear

[EMISSIVE_LIGHT_2]
NAME=light_down_lr,light_down_rr
BIND_TO_HEADLIGHTS=1
COLOR=100,0,1, 1.8
LAG=0.8
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5
;28,3,0.5, 2.5

[EMISSIVE_BRAKE_0]
NAME=lr_rangerover_08_lod0_body_tail_light_lod0___203_vertices_445_faces
COLOR=100,3,1, 8
LAG=0.5
SIMULATE_HEATING=0.7
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_REVERSE_0]
NAME = lr_rangerover_08_lod0_body_reverse_light_lod0___196_vertices_411_faces
COLOR = 20, 20, 32, 1.7          ; glowing color if condition is met
LAG = 0.3                   ; with zero, turns on and off immediately
SIMULATE_HEATING = 0      ; adds heating effect, going through orange tint while turning on and off
LOCATION = REAR             ; light location used for damage and light guessing, default value depends on type
ACT_AS_HEADLIGHTS = 1       ; if set to 1, emissiveness is raised when camera is caught in car’s headlights

[LIGHT_REVERSE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 1.3, 5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.44832
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
POSITION=0, 0.8, -2.8
RANGE=3
RANGE_GRADIENT_OFFSET=0.5
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=155
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=0
SPOT_SHARPNESS=0.4

; TURN Signals

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=turn_left_front
COLOR=90,30,0, 150
LAG=0.13
SIMULATE_HEATING=0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=lr_rangerover_08_lod0_taillightL_tail_light2___4597_vertices_1603_faces
FALLBACK_HEADLIGHTS_COLOR=3,2,1, 0.3
COLOR=20,5,1, 10
LAG=0.13
SIMULATE_HEATING=0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=turn_right_front
COLOR=90,30,0, 150
LAG=0.13
SIMULATE_HEATING=0.1
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=lr_rangerover_08_lod0_taillightR_tail_light2___4597_vertices_1614_faces
FALLBACK_HEADLIGHTS_COLOR=3,2,1, 0.3
COLOR=20,5,1, 10
LAG=0.13
SIMULATE_HEATING=0.1
LOCATION=REAR

; int light

[EMISSIVE_LIGHT_10]
NAME=lr_rangerover_08_cockpit_interior_gauge_emissive___96_vertices_104_faces,lr_rangerover_08_cockpit_interior_digital_gauge___26_vertices_31_faces
COLOR=8,8,8, 0.5
LAG=0.95
SIMULATE_HEATING=0.2
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_11]
NAME=lr_rangerover_08_cockpit_fuel_min_gauge_needle___43_vertices_18_faces,lr_rangerover_08_cockpit_speed_min_gauge_needle___41_vertices_18_faces,lr_rangerover_08_cockpit_tach_min_gauge_needle___43_vertices_18_faces,lr_rangerover_08_cockpit_interior_gauge_needle___88_vertices_34_faces
COLOR=8,8,8, 1.5
LAG=0.95
SIMULATE_HEATING=0.2
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_12]
NAME=lr_rangerover_08_cockpit_steering_wheel_badge___73_vertices_67_faces01,lr_rangerover_08_cockpit_interior_badge___838_vertices_402_faces
COLOR=8,8,8, 0.5
LAG=0.95
SIMULATE_HEATING=0.2
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

; 15,8,5, 0.5
; self lights

[SelfLight_Headlights]
POSITION=0.0, 0.95, -2.03
BOUND_TO = lr_rangerover_08_lod0_body_tail_light_lod0___203_vertices_445_faces
MIRROR=0.65
RANGE=0.3
DIRECTION=0,1,-0.5
COLOR= 32,10,0, 5

[SelfLight_Headlights]
POSITION=0.0, 0.95, -2.03
BOUND_TO = light_down_lr,light_down_rr
MIRROR=0.65
RANGE=0.5
DIRECTION=0,1,-0.8
COLOR= 32,10,0, 2

[SelfLight_Headlights]
POSITION=-0.0, 0.81, 1.86
BOUND_TO = lr_rangerover_08_lod0_headlightL_head_light___129_vertices_280_faces,lr_rangerover_08_lod0_headlightR_head_light___129_vertices_280_faces
MIRROR=0.68
RANGE=0.3
SPOT=80
DIRECTION=0, -0., 0.1
COLOR=32,32,42, 50

[SelfLight_Headlights]
POSITION=-0.0, 0.81, 1.75
BOUND_TO = lr_rangerover_08_lod0_headlightL_head_light___129_vertices_280_faces,lr_rangerover_08_lod0_headlightR_head_light___129_vertices_280_faces
MIRROR=0.68
RANGE=0.3
SPOT=80
DIRECTION=0, -0., 0.1
COLOR=32,32,42, 10

[SelfLight_Headlights]
POSITION=-0.0, 0.80, 1.96
BOUND_TO = lr_rangerover_08_lod0_headlightL_head_light___129_vertices_280_faces,lr_rangerover_08_lod0_headlightR_head_light___129_vertices_280_faces
MIRROR=0.54
RANGE=0.3
SPOT=80
DIRECTION=0, -0., 0.1
COLOR=32,32,42, 50

[SelfLight_Headlights]
POSITION=-0.0, 0.80, 1.85
BOUND_TO = lr_rangerover_08_lod0_headlightL_head_light___129_vertices_280_faces,lr_rangerover_08_lod0_headlightR_head_light___129_vertices_280_faces
MIRROR=0.54
RANGE=0.3
SPOT=80
DIRECTION=0, -0., 0.1
COLOR=32,32,42, 10

; int leds

[EMISSIVE_TURNSIGNAL_LEFT_4]
NAME=warning_left
TOGGLE_VISIBILITY = 1
COLOR=0.5,25,0.5, 1
LAG=0.2
SIMULATE_HEATING=0
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_TURNSIGNAL_RIGHT_4]
NAME=warning_right
TOGGLE_VISIBILITY = 1
COLOR=0.5,25,0.5, 1
LAG=0.2
SIMULATE_HEATING=0
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_13]
NAME=warning_lowbeam
TOGGLE_VISIBILITY = 1
BIND_TO_HEADLIGHTS=1
COLOR=1,20,1, 1.1
LAG=0.8
SIMULATE_HEATING=0

[EMISSIVE_EXTRA_A_1]
BIND_TO_EXTRA_A=1
NAME=warning_highbeam
TOGGLE_VISIBILITY = 1
COLOR=0.1,0.1,40, 1.0
LAG=0.2
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TRACTIONCONTROL_INACTION_1]
COLOR=60,12,0.2,1
NAME=warning_traction_control
TOGGLE_VISIBILITY = 1
LAG=0.2

[EMISSIVE_ABS_INACTION_0]
NAME=warning_abs
TOGGLE_VISIBILITY = 1
COLOR=60,12,0.2,1
LAG=0.2

[EMISSIVE_HANDBRAKE_0]
NAME=warning_handbrake
TOGGLE_VISIBILITY = 1
COLOR=60,2,0.2,1
LAG=0.2

[EMISSIVE_EXTRA_B_1]
BIND_TO_EXTRA_B=1
NAME=warning_foglight
TOGGLE_VISIBILITY = 1
COLOR=50,25,0, 1.5
LAG=0.55
SIMULATE_HEATING=0.5
LOCATION=REAR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_...]
NAME=warning_fuel
TOGGLE_VISIBILITY = 1
COLOR=60,20,0.1,1
INPUT=FUEL
INPUT_THRESHOLD = 12
INPUT_THRESHOLD_INVERSE = 1
LAG=0.4

; strabs

[EMISSIVE_EXTRA_D_0]
NAME=grilleLEDs_b 
COLOR=255,249,253,15
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0||1=0)
BLINKING_DURATION=1
TOGGLE_VISIBILITY=0
TOGGLE_VISIBILITY_INVERSE=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_D_1]
NAME=grilleLEDs_r
COLOR=255,249,253,15
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=1|0.55=0|0.59=0| 0.6=1|0.65=0|0.69=0|0.70=1|0.75=0|0.80=1|0.85=0| 1=0)
BLINKING_DURATION=1
TOGGLE_VISIBILITY=0
TOGGLE_VISIBILITY_INVERSE=1
CAST_LIGHT=1

; tonirovka

;PBR GLASS 
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Meshes = glass,lr_rangerover_08_lod0_body_window___171_vertices_222_faces
ThicknessMult = 40
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=2

; animations

[ANIMATION_...]
INPUT = EXTRA_C            ; bind to reverse gear
FILE = Sun Roof.ksanim    ; file name of new animation in “animations” folder
TIME = 1.5                  ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0       ; if set to 0, animation would go to 0% if not triggered, and 
                            ; to 100% otherwise; if set to 1, animation would play in 
                            ; a loop if triggered and stop otherwise
LOOP_KEEP_UNTIL_DONE = 1    ; only for “LOOP_WHILE_ACTIVE”: set to 1 to make animation 
                            ; go to 0% if stopped (like wipers would do, for example)
TICK_TOCK_MODE = 0          ; only for “LOOP_WHILE_ACTIVE”: loop as 0% → 100% → 0% instead 
                            ; of jumping from 100% to 0%
AFFECTS_INTERIOR_SHAPE = 1  ; force to update interior reflections mask if animation is 
                            ; playing (slower)

; black

[Material_Metal_v2] 
Meshes = exleft1,exright1,lr_rangerover_08_cockpit_interior_metal___5504_vertices_5901_faces
BrightnessAdjustment = 0.01
DetailScale = 1
Metalness = 0.02
Reflectance = 0.10
LocalReflectionsSharpness = 1
DetailTexture = 2

