[INCLUDE: common/navigators.ini]
[INCLUDE: navigators_mixins.ini]
[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:pbr_int.ini]
[INCLUDE:pbr_ext.ini]

[DATA] 
DISABLE_LIGHTSINI = 1

[SHADER_REPLACEMENT_...]
MATERIALS=body
DOUBLE_FACE_SHADOW_BIASED=1

[INCLUDE: common/navigators.ini]
[Navigator_StyleModernLight]
Meshes = gaugepod_a_SUB004
Resolution = 1500, 1500
Offset = 219,506
Size = 454, 487

[CAR_STEREO_...]
ACTIVE = $" read('csp/version', 0) >= 1279 "

MESHES = Radio_Screen
RESOLUTION = 1024, 384
DISPLAY_POS = 0, 0
DISPLAY_SIZE = 1024, 384
COLOR = 1, 1, 1
FADE_WHEN_INACTIVE = 0.95
DITHERING = 2

; main text
TEXT_CSP_0 = "{Track}"
TEXT_CSP_0_NOALBUM = "{Track}"
TEXT_CSP_0_NOARTIST = "{Track}"
TEXT_CSP_0_FALLBACK = ""
TEXT_CSP_0_ALIGN_LAYOUT = 0
TEXT_CSP_0_START = 600, 180
TEXT_CSP_0_SIZE = 210, 48
TEXT_CSP_0_FONT_TYPE = ITALIC
TEXT_CSP_0_Z_INDEX = 10
TEXT_CSP_0_SCALE = 1.5, 1.3
TEXT_CSP_0_BOLD = 0

; main text
TEXT_CSP_3 = "{Artist}"
TEXT_CSP_3_NOALBUM = "{Artist}"
TEXT_CSP_3_NOARTIST = ""
TEXT_CSP_3_FALLBACK = ""
TEXT_CSP_3_ALIGN_LAYOUT = 0
TEXT_CSP_3_START = 600, 67
TEXT_CSP_3_SIZE = 210, 48
TEXT_CSP_3_FONT_TYPE = ITALIC
TEXT_CSP_3_Z_INDEX = 10
TEXT_CSP_3_SCALE = 1.5, 1.3
TEXT_CSP_3_BOLD = 0

; main text
TEXT_CSP_4 = "{Album}"
TEXT_CSP_4_NOALBUM = "{Album}"
TEXT_CSP_4_NOARTIST = ""
TEXT_CSP_4_FALLBACK = ""
TEXT_CSP_4_ALIGN_LAYOUT = 0
TEXT_CSP_4_START = 600, 111
TEXT_CSP_4_SIZE = 210, 48
TEXT_CSP_4_FONT_TYPE = ITALIC
TEXT_CSP_4_Z_INDEX = 10
TEXT_CSP_4_SCALE = 1.5, 1.3
TEXT_CSP_4_BOLD = 0

; track position
TEXT_CSP_1 = "{Position:%02d:%02d//--:--}"
TEXT_CSP_1_ALIGN_LAYOUT = 0
TEXT_CSP_1_START = 510, 310
TEXT_CSP_1_SIZE = 460, 48
TEXT_CSP_1_FONT_TYPE = MONOSPACE
TEXT_CSP_1_Z_INDEX = 10
TEXT_CSP_1_SCALE = 0.8, 0.8
TEXT_CSP_1_BOLD = 0

; track duration
TEXT_CSP_2 = "{Duration:%02d:%02d//--:--}"
TEXT_CSP_2_ALIGN_LAYOUT = 1, 0
TEXT_CSP_2_START = 710, 310
TEXT_CSP_2_SIZE = 180, 48
TEXT_CSP_2_FONT_TYPE = MONOSPACE
TEXT_CSP_2_Z_INDEX = 10
TEXT_CSP_2_SCALE = 0.8, 0.8
TEXT_CSP_2_BOLD = 0

; progress bar background
RECT_5 = 1
RECT_5_START = 518, 335
RECT_5_SIZE = 363, 3
RECT_5_Z_INDEX = 11
RECT_5_COLOR = 0.1, 0.1, 0.1, 0.4

; progress bar background
RECT_6 = 1
RECT_6_START = 518, 335
RECT_6_SIZE = 363, 3
RECT_6_Z_INDEX = 12
RECT_6_COLOR = 0.5, 0.3, 0.1, 1
RECT_6_SCALE_WITH_PROGRESS = 1, 0

; album cover in the middle
ALBUM_COVER_0 = 1
ALBUM_COVER_0_START = 210, 50
ALBUM_COVER_0_SIZE = 290, 290
ALBUM_COVER_0_Z_INDEX = -1
ALBUM_COVER_0_FALLBACK = MUSIC
ALBUM_COVER_0_FALLBACK_COLOR = 0.3, 0.3, 0.3, 1
ALBUM_COVER_0_FALLBACK_BACKGROUND = 0.05, 0.05, 0.05, 1
ALBUM_COVER_0_FALLBACK_SIZE = 28

; animation below album cover
ANIMATION_0 = 17, 8
ANIMATION_0_START = 530, 250
ANIMATION_0_BLOCK = 17, 4
ANIMATION_0_MARGIN = 3, 3
ANIMATION_0_BASE_ROW = BOTTOM

;;;;;;;;; Exterior Lighting ;;;;;;;;; 
[EMISSIVE_LIGHT_...] ;  Low Beam
NAME = headlightl_a_SUB2 , headlightr_a_SUB2 , trunkliner_a_SUB0
COLOR=60,80,100,30
LAG=0.8
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] ;  Low Beam
NAME = headlightl_a_SUB1 , headlightr_a_SUB1
COLOR=60,80,100,30
LAG=0.8
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] ;  Low Beam 2 
NAME=
COLOR=-1,1,-1,10
LAG=0.8
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] ;  Taillights
NAME=taillightl_a_SUB8 , taillightr_a_SUB9
COLOR=50, -100, -100,1
LAG=0.8
SIMULATE_HEATING=1
CAST_LIGHT=1

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=headlightl_a_SUB0,headlightr_a_SUB0
COLOR=120,160,200,100
LAG=0.5
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[SHADER_REPLACEMENT_...]
MESHES = wingmirrorl_a_SUB6 , wingmirrorr_a_SUB6 , glassrint_a_SUB1
IS_TRANSPARENT = 1

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=
COLOR=-10,-10,5,10
LAG=0.5
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_BRAKE_...]
NAME=taillightl_a_SUB7,taillightr_a_SUB8,taillightr_a_SUB0,taillightl_a_SUB0,trunk_a_SUB3
COLOR=50, 1, -1,10.5
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_BRAKE_...]
NAME=
COLOR=50, 1, -1,3
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_REVERSE_...]
NAME=taillightl_a_SUB9,taillightr_a_SUB7
COLOR=10, 10, 10,5
LAG=0.0
SIMULATE_HEATING=0.0

[EMISSIVE_HAZARD_0]
NAME=
COLOR=10, 0, 0
LAG=0.0
SIMULATE_HEATING=0.0

[LIGHT_LICENSEPLATE]
; no need to specify meshes names if material is using
; Plate_D.dds and Plate_NM.dds textures
MESHES=plate_r
OFFSET=0.0, 0.01, -0.15
RANGE=0.3
RANGE_GRADIENT_OFFSET=0.4
SPOT=200
SPOT_SHARPNESS=0.4
COLOR=.5,.8,1,10
; other supported values: TWO_ON_TOP, ONE_ON_TOP
LAYOUT=TWO_ON_TOP

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=headlightl_a_SUB3
COLOR=50,20, -10, 500
OFF_COLOR=60,80,100,3
LAG=0.3
REPEAT_FREQENCY_HZ=2.0
LOCATION=FRONT
REPEAT_FREQENCY_HAZARDS_HZ=4.0
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=wingmirrorl_a_SUB0,taillightl_a_SUB1
COLOR=250,100, -10, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.0
LOCATION=FRONT
REPEAT_FREQENCY_HAZARDS_HZ=4.0
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME=
COLOR=-10,2, -10, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.0
LOCATION=FRONT
REPEAT_FREQENCY_HAZARDS_HZ=4.0
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=F_R_Ind
COLOR=50,20, -10, 500
OFF_COLOR=60,80,100,30
LAG=0.3
REPEAT_FREQENCY_HZ=2.0
LOCATION=FRONT
REPEAT_FREQENCY_HAZARDS_HZ=4.0
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=taillightr_a_SUB1,wingmirrorr_a_SUB0
COLOR=250,100, -10, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.0
LOCATION=FRONT
REPEAT_FREQENCY_HAZARDS_HZ=4.0
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=
COLOR=-10,2, -10, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.0
LOCATION=FRONT
REPEAT_FREQENCY_HAZARDS_HZ=4.0
CAST_LIGHT=0

;;;;;;;;; Interior Lighting ;;;;;;;;;

;;;;;;;;; Interior Lighting ;;;;;;;;;
[EMISSIVE_LIGHT_...] ; Instrument Cluster
NAME=gaugepod_a_SUB004
COLOR=1,1,1,2.2
OFF_COLOR=1,1,1,1
LAG=0.2
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=1
TOGGLE_VISIBILITY = 0

[EMISSIVE_LIGHT_...] ; Instrument Cluster
NAME=gaugepod_a_SUB1,gaugepod_a_SUB2
COLOR=1,1,1,1.2
OFF_COLOR=1,1,1,0.5
LAG=0.2
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=1
TOGGLE_VISIBILITY = 0

[EMISSIVE_LIGHT_...] ; Instrument Cluster
NAME=ARROW_RPM
COLOR=1,-1,-1,10
LAG=0.2
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=1
TOGGLE_VISIBILITY = 0

[EMISSIVE_LIGHT_...] ; Interior Buttons
NAME=IntCenterButtons,IntCenterConsoleButtons,CenterConsoleButtons2,IntDoorButtons,IntSteerButtons
COLOR=1,-1,-1
OFF_COLOR=.6,.8,1,2
LAG=0.2
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=1

[EMISSIVE_LIGHT_...] ; Interior Buttons
NAME=
COLOR=10,1,-100,.5
LAG=0.2
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=1

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,100
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.591, 0.466, 0.709
DIRECTION=-1,-1,-1
RANGE=0.65
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=0
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,100
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=-0.591, 0.466, 0.709
DIRECTION=1,-1,-1
RANGE=0.65
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=0
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,3
DIFFUSE_CONCENTRATION=0.3
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.655, 0.869, 0.349
DIRECTION=0,-.5,-1
RANGE=0.15
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=1
SPOT=70
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,30
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.666, 0.811, 0.141
DIRECTION=1,-4,-1
RANGE=0.35
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=0
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,30
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=-0.666, 0.811, 0.141
DIRECTION=-1,-4,-1
RANGE=0.35
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=0
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,3
DIFFUSE_CONCENTRATION=0.3
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=-0.655, 0.869, 0.349
DIRECTION=0,-.5,-1
RANGE=0.15
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=1
SPOT=70
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,0,0,10
DIFFUSE_CONCENTRATION=0.7
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.0, 0.74, 0.382
DIRECTION=0,-1,-1
RANGE=0.45
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=.2
SPOT=200
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=.5,.8,1,30
DIFFUSE_CONCENTRATION=0.7
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.36, 0.836, 0.518
DIRECTION=0,0,-1
RANGE=0.25
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=200
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=1,.8,.5,7
DIFFUSE_CONCENTRATION=0.7
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0.13
POSITION=0, 0.25, -2.16
DIRECTION=0,-1,-1
RANGE=0.95
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=1
SPOT=180
SPOT_SHARPNESS=0

;;;;;;;;; LightsFX ;;;;;;;;;
[LIGHT_HEADLIGHT_0]
BIND_TO_HEADLIGHTS=1
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=600
BOUND_EXP=1
COLOR=60,80,100,1
DIFFUSE_CONCENTRATION=0.0
DIRECTION=0.0, 0.1, 1.0
EXTERIOR_ONLY=0
FADE_AT=60
FADE_SMOOTH=80
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=80
LOWBEAM_RANGE_MULT=1
LOWBEAM_RANGE_ONCOMING_MULT=1
MIRROR=0.709
MIRROR_DIRECTION=0
POPUP_ENABLED=0
POSITION=0, 0.649, 1.63
RANGE=200
RANGE_GRADIENT_OFFSET=0
SINGLE_FREQUENCY=0
SPECULAR_MULT=1

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=5, 1, 1
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -1, -15
EXTERIOR_ONLY=1
FADE_AT=220
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.444
MIRROR_DIRECTION=0
POSITION=0, 0.845, -1.90
RANGE=5
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=150
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4

[LIGHT_REVERSE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 1,10
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -1, -15
EXTERIOR_ONLY=1
FADE_AT=220
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.444
MIRROR_DIRECTION=0
POSITION=0, 0.845, -1.90
RANGE=5
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=100
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4

[LIGHTING]
EMISSIVE_BRAKELIGHTS_MULT=1
EMISSIVE_HEADLIGHTS_MULT=1
EMISSIVE_MULT=1
EMISSIVE_PARKINGLIGHTS_MULT=1
INTERIOR_FAKE_SHADOW_FADE=0.9
INTERIOR_FAKE_SHADOW_HEIGHT=0.4
INTERIOR_FAKE_SHADOW_OPACITY=0.9
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.1
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=-0.1

[SelfLight_Headlights]
MIRROR = 0.737
DIRECTION = 0, 0,1
POSITION = 0, 0.642, 1.63
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = headlightl_a_SUB1
SPOT_SHARPNESS =0.0
SPOT = 120
COLOR=60,80,100,.5
SPECULAR_MULT = 1
RANGE = 0.25

[SelfLight_Headlights]
MIRROR = 0.608
DIRECTION = 0, 0,1
POSITION = 0, 0.632, 1.70
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = headlightl_a_SUB0
SPOT_SHARPNESS =0.0
SPOT = 120
COLOR=60,80,100,.5
SPECULAR_MULT = 1
RANGE = 0.35

[SelfLight_Headlights]
MIRROR = 0.0
DIRECTION = 0, 0,-1
POSITION = 0.762, 0.762, -1.50
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = taillightl_a_SUB8
SPOT_SHARPNESS =0.0
SPOT = 70
COLOR=10,3,0,1
SPECULAR_MULT = 1
RANGE = 1.95

[SelfLight_Headlights]
MIRROR = 0.0
DIRECTION = 0, 0,-1
POSITION = -0.752, 0.762, -1.50
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = taillightl_a_SUB8
SPOT_SHARPNESS =0.0
SPOT = 70
COLOR=10,3,0,1
SPECULAR_MULT = 1
RANGE = 1.95

;;;;;;;;; Warning Lights ;;;;;;;;;
[INCLUDE: common/custom_emissive.ini]

[CustomEmissiveMulti]
Meshes = warning_left
Resolution = 812, 812
UseEmissive0AsFallback = 1
;Debug = 1 ; uncomment me to see the areas nicely
@ = MultiItem, Role = TURNSIGNAL_LEFT, Start = "62, 434", Size = "84, 104" , Color = "-10, 10,-10 " ,
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Start = "163, 433", Size = "71, 100" , Color = "-10, 10,-10 " ,
@ = MultiItem, Role = ABS_INACTION, Start = "675, 268", Size = "75, 57", Color = "60,30,0",
@ = MultiItem, Role = DashWarningABS, Start = "327, 349", Size = "89, 71", Color = "60,30,0",
@ = MultiItem, Role = DashWarningEngine, Start = "585, 265", Size = "86, 72" , Color = "60,30,0",
@ = MultiItem, Role = HANDBRAKE, Start = "499, 350", Size = "87, 70", Color = "80, 0, 0",
@ = MultiItem, Role = HIGHBEAM, Start = "67, 259", Size = "85, 71", Color = "-100, -100, 100",
@ = MultiItem, Role = LIGHT, Start = "677, 360", Size = "85, 45", Color = "-10, 10, -10",
@ = MultiItem, Role = TC_INACTION , Start = "418, 429", Size = "72, 75", Color = "10, 3, -50",
@ = MultiItem, Role = DashWarningTC, Start = "502, 428", Size = "74, 83", Color = "10, 3, -50",
@ = MultiItem, Role = DashWarningTC, Start = "201, 184", Size = "110, 71", Color = "10, 3, -50",
@ = MultiItem, Role = TYRE_PRESSURE, Start = "681, 432", Size = "71, 75", Color = "10, 3, -50", InputThreshold = 30, InputSelector = MAX , InputSelectorPivot=1 , Lag=0.2,
@ = MultiItem, Role = DashWarningSeatbelt, Start = "162, 340", Size = "68, 88" , Color = "80, 0, 0",
@ = MultiItem, Role = DashWarningAirbag, Start = "240, 346", Size = "81, 80" , Color = "80, 0, 0",
@ = MultiItem, Role = FUEL, Start = "670, 519", Size = "104, 110",  InputThreshold=11 ,InputInverse=1 , Lag=0.2, Color = "70,5,0", 

[ANIMATION_...]
FILE=lcd_spotify.ksanim
TIME= 0.5
BIND_TO_EXTRA_A=1

[INSTRUMENTS]
FUEL_SPLASH_MULT=-0
HAZARDS_G_THRESHOLD=-1
SPEED_FIX=1
SPEED_LAG=0.85
SPEED_LIMIT=0

[ANIMATION_0]
FILE=car_hood.ksanim
TIME= 1.5
BIND_TO_EXTRA_A=1

[ANIMATION_1]
INPUT = TRACTIONCONTROL            ; bind to reverse gear
FILE = Waning_tc_off.ksanim   ; file name of new animation in “animations” folder
TIME = 4.0                ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
INPUT_THRESHOLD_INVERSE=1

[ANIMATION_2]
INPUT= ENGINE_LIFE
INPUT_THRESHOLD = 800
FILE = Waning_eng.ksanim   ; file name of new animation in “animations” folder
TIME = 2.0                ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
INPUT_THRESHOLD_INVERSE = 1

[ANIMATION_3]
INPUT= ENGINE_LIFE
INPUT_THRESHOLD = 910
FILE = Waning_oil.ksanim   ; file name of new animation in “animations” folder
TIME = 2.0               ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
INPUT_THRESHOLD_INVERSE = 1

[ANIMATION_4]
INPUT= STALLED
FILE = Waning_Bat.ksanim   ; file name of new animation in “animations” folder
TIME = 4.0                ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_5]
FILE=Radio_Display.ksanim
TIME= 0.06
BIND_TO_EXTRA_B=1

;;;;;;;;; Sound / Exhaust ;;;;;;;;; 
AUDIO_PROPERTIES]
TURBO_THROTTLE = 1

[AUDIO_VOLUME]
BACKFIRE_INT=1
BACKFIRE_EXT=1
BODYWORK=1
DIRT=1
DOWN_SHIFT=1
ENGINE_EXT=1
ENGINE_INT=1
GEAR_EXT=1
GEAR_GRIND=1
GEAR_INT=1
HORN=1
LIMITER=1
TRACTION_CONTROL_EXT=1
TRACTION_CONTROL_INT=1
TRANSMISSION=1
TURBO=1
WIND=0
SKID_EXT = 1
SKID_INT = 1

[AUDIO_PITCH]
ENGINE_EXT = 0.90
ENGINE_INT = 0.90
GEAR_EXT = 1.0
GEAR_INT = 1.0
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
HORN = 1
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1
BACKFIRE_INT = 1
TRACTION_CONTROL_EXT = 1
TRACTION_CONTROL_INT = 1
TRANSMISSION = 1
LIMITER = 1
TURBO = 1
HIT = 1
SCRAPE = 1
WHEEL = 1
SKID_EXT = 1
SKID_INT = 1

;;;;;;;;; BrakeFX ;;;;;;;;; 
[BRAKEDISC_FX]
ACTIVE = 1             ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0            ; use ceramic look
CARVED = 0           ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 0  ; increase to make more lines
GLOW_OFFSET = 0.2      ; increase to offset heated and worn center more to the center, decrease to offset it more to the outside area; with 0.5, it would be in the middle

; Patch guesses holes from alpha-channel of txDiffuse. Holes don’t glow or reflect stuff and look dark:
ALPHA_MASK = 0.1, 0.2  ; hole is everything with alpha below 0.1, everything with alpha above 0.2 is not a hole, in-between is a transition

; Patch can also estimate deepenings based on luminance and normal texture. Deepenings glow with a delay (but fully heated, glow more) and are a bit occluded:
LUMINOCITY_MASK = 0.01, 0.02  ; everything darker than 0.01 is a deepening
NORMAL_MASK = 0.5, 0.3        ; everything looking away more than 50% is a deepening

[EXTRA_FX]
MASK_GBUFFER = glassrhl_a , glasslhl_a ,headlightl_a_SUB12 ,headlightl_a_SUB11 , headlightr_a_SUB9 , headlightr_a_SUB10 , headlightr_a_SUB11 , headlightl_a_SUB13 , glassrtl_a , glassltl_a

;;;;;;;;; Exterior [PBR] Interior ;;;;;;;;; 
[SHADER_REPLACEMENT_...]
MATERIALS = ext_tyres
PROP_... = ksAmbient, 0.4
PROP_... = ksDiffuse, 0.4
PROP_... = fresnelEXP, 50
PROP_... = fresnelMaxLevel, 0.00
PROP_... = fresnelC, 0.00
PROP_... = ksSpecularEXP, 100
PROP_... = ksSpecular, 0.03
DOUBLE_FACE_SHADOW_BIASED = 1

[Material_Aluminium_v2]
Materials = 
Metalness= 0.2
Smoothness = .5
Reflectance = 0.8
CubemapReflectionBlur = 0
BrightnessAdjustment = 0.45
DetailNormalBlend = 0
DetailScale = 1000
OcclusionMap=0.25
DetailNormalPBRSmoothnessGamma = 1

[Material_Aluminium_v2]
Materials = 
Metalness= 0.2
Smoothness = 0.5
Reflectance = 0.8
CubemapReflectionBlur = 0
BrightnessAdjustment = 0.45
DetailNormalBlend = 1
DetailScale = 10
OcclusionMap=0.25
DetailNormalPBRSmoothnessGamma = 1

[Material_InteriorPBRDetail]
Materials = 
DetailNormalPBRSmoothnessGamma =2
DetailNormalBlend = 1
BrightnessAdjustment = 0.2
DetailScale = 1
Reflectance = 0.15
Smoothness = 1
OcclusionMap=0.2

[Material_Glass]
Materials = m3e90_lights2
FilmIOR = 1.8
ExtraLightsAdjustment = .2
BrightnessAdjustment = .3
Refraction = 1
Desaturate = 0
ThicknessMult = 1
EXTRA_MASK_PASS = 10
EXTRA_MASK_PASS_OPACITY = 1
MaskPassColor=20,10,10

[Material_Glass]
Materials = ExtWindows
FilmIOR = 2.3
ExtraLightsAdjustment = .2
BrightnessAdjustment = .3
Refraction = 1
Desaturate = 00
ThicknessMult = 2
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 1
MaskPassColor=20,20,20

[Material_PhotoelasticGlass]
Materials = ExtLightWindows
FilmIOR = 2.32
PhotoelasticityMult = 0.35  ; doesn’t look good if too high
ThicknessMult = 1.5
BrightnessAdjustment = 0.3
ExtraLightsAdjustment = 0.92
; Ideally, there would be a texture for that, but we’re not going to draw
; all those textures for Kunos cars, so here are some parameters for perlin noise
; instead
PhotoelasticityBaseScale = 3.5     ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.328  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.325   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.0  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 3.5   ; how many stripes are there
ProfileFix = 0.0

;;;;;;;;; Exterior [FX] Exhaust ;;;;;;;;; 
----------------------------------------------------
--               EXHAUST               --
----------------------------------------------------

[INCLUDE: common/gt3_exhaust_glow.ini]
[EMISSIVE_WATER_TEMP_0_EXHAUST_GLOW]
MESHES = exhaust02
COLOR = 25, 3, 0, 3
USE_SMOOTH_TRANSITION = 1
INPUT_MIN = 50
INPUT_MAX = 60
INPUT_LUT = (| 84 = 0 | 95 = 1 |)
AFFECTS_TRACK = 1
SPECULAR_MULT = 3

[LIGHT_FLAME_0]
BRIGHTNESS_MULT=1
CAR_BRIGHTNESS_MULT=1
CAR_RANGE_MULT=1
COLOR=5,1,1,1
DEBUG=0
DIRECTION_MULT=1, 1, 1
FADE_AT=150
FADE_SMOOTH=30
OFFSET=0.2
RANGE=7
RANGE_GRADIENT_OFFSET=0.2
SPOT=238.322
SPOT_SHARPNESS=0.0

[EXHAUST_FLAMES]
ANTILAG=1 ; turbo antilag, i havent tested this yet
ANTILAG_DELAY=0.0 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=10 ; flame size
ANTILAG_INTERVAL_MAX=7000
ANTILAG_INTERVAL_MIN=65000
ANTILAG_TURBO_THRESHOLD=0.0
DAMAGE=0 ; engine damage? idk
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1 ; lifting off the throttle
DISCHARGE_CHARGE_TIME=0.0 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.2 ; delay after throttle lift
DISCHARGE_DURATION=0.2 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1.0; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=0.2; flame size
DISCHARGE_RPM_THRESHOLD_MAX=7200 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=2000 ; self explanatory
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=70
FLAT_SHIFT=1 ; on upshift
FLAT_SHIFT_COOLDOWN=0 ; after upshift
FLAT_SHIFT_DURATION=0.1 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=50 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=.1 ; flame size
FLAT_SHIFT_PROBABILITY=.5 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=6500
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0.2 ; delay, in seconds
LIMITER_INTENSITY=.1 ; flame size
LIMITER_RPM_THRESHOLD=6700 ; limiter flames will not shoot below this rpm

[INSTRUMENTS]
HAZARDS_G_THRESHOLD=-1
SPEED_FIX=1
SPEED_LAG=0.50
SPEED_LIMIT=150

[WIPERS]
FRONT_0= Object021, Object020
FRONT_1= Object022, wipers
REAR_0= Object018, Object017, Object019
WIND_THRESHOLDS_KMH = 150, 350 ; speed for wipers to start vibrating and for maximum vibration
WIND_AMPLITUDE_MULT = 1 ; multiplier for amplitude
WIND_FREQUENCY_MULT = 1 ; multiplier for frequency
WIND_OFFSET = 0.03 ; base animation 

[WIPERS_TRACE_...]
SURFACE = windscreen_r, windscreen
WIPERS = Object021, Object020, Object022, wipers, Object018, Object017, Object019


