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



[SHADER_REPLACEMENT_...]
MATERIALS = roughness_fine_001_DIFF,carb3_diff
CULL_MODE = DOUBLESIDED
[REAL_MIRROR_0]
ASPECT_MULT=0.5
FLIP=0
FOV=10
IS_MONITOR=0
MONITOR_SHADER_TYPE=0
ROTATION=0,0

[REAL_MIRROR_2]
ASPECT_MULT=0.5
FLIP=0
FOV=10
IS_MONITOR=0
MONITOR_SHADER_TYPE=0
ROTATION=0,0



______________________________UPDATE_______________________________________

[SHADER_REPLACEMENT_...]
MATERIALS = brake_decals
BLEND_MODE =ALPHA_TEST 

[EXTRA_FX]
MASK_GBUFFER =Lights_Glass
SKIP_GBUFFER =      



[EMISSIVE_LIGHT_...] 
NAME=LOWBEAM
COLOR=100,120,140,2      
LAG=0.3
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5


[EMISSIVE_HIGHBEAM_...] 
NAME=HIGHBEAM
COLOR=100,120,140,4
FALLBACK_HEADLIGHTS_COLOR=100,120,140,2
LAG=0.3
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EXTRA_FX_EMISSIVE_...]
MESHES = LOWBEAM
RANGE = 0.1
COLOR = 0.05
DIRECTED = 1
INTERIOR_ONLY = 0
EXTERIOR_ONLY = 0
EMISSIVE_TWEAK = 0
MIP_BIAS = 0
IGNORE_TEXTURE_COLOR = 0
COVERAGE = 8
SAMPLES_LIMIT = 400
SPLIT_ELEMENTS = 1
NORMAL_SHIFT = 0

[EXTRA_FX_EMISSIVE_...]
MESHES =HIGHBEAM
RANGE = 0.15
COLOR = 0.05
DIRECTED = 1
INTERIOR_ONLY = 0
EXTERIOR_ONLY = 0
EMISSIVE_TWEAK = 0
MIP_BIAS = 0
IGNORE_TEXTURE_COLOR = 0
COVERAGE = 8
SAMPLES_LIMIT = 400
SPLIT_ELEMENTS = 1
NORMAL_SHIFT = 0



[EMISSIVE_TURNSIGNAL_RIGHT_...] 
NAME=EXT_BRAKE_RR
COLOR=100,30,0,1
FALLBACK_HEADLIGHTS_COLOR=50,25,0,3
FALLBACK_BRAKES_COLOR =50, 25, 0,5
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=NONE


[EMISSIVE_TURNSIGNAL_LEFT_...] 
NAME=EXT_DRL_LF
COLOR=100,30,0,1
FALLBACK_BASE_COLOR=100,120,165
LAG=0.0
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=NONE

[EMISSIVE_TURNSIGNAL_RIGHT_...] 
NAME=EXT_DRL_RF
COLOR=100,30,0,1
FALLBACK_BASE_COLOR=100,120,165
LAG=0.0
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=NONE


[EMISSIVE_TURNSIGNAL_LEFT_...] 
NAME=EXT_BRAKE_LR
COLOR=100,30,0,1
FALLBACK_HEADLIGHTS_COLOR=50,25,0,3
FALLBACK_BRAKES_COLOR =50, 25, 0,5
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=NONE


[EMISSIVE_BRAKE_...] ; Emergency Flash
NAME=720SLMAP2
COLOR=50, 15, 0,5
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 15, 0,5
INPUT = BRAKE
INPUT_THRESHOLD = 0.95

[EMISSIVE_BRAKE_...] ; Emergency Flash
NAME=EXT_BRAKE_3RD
COLOR=50, 15, 0,3
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 15, 0,2
INPUT = BRAKE
INPUT_THRESHOLD = 0.95
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 4 ; sets frequency for blinking


[LIGHT_LICENSEPLATE]
MESHES=EXT_PLATE
OFFSET= 0.035 ,0, -0.02
RANGE=0.25
RANGE_GRADIENT_OFFSET=0.4
SPOT=170
SPOT_SHARPNESS=0.5
COLOR=10,13,16,1
FALLBACK_EMISSIVE=1,0.7,0.3,0.9
FADE_AT=100
FALLBACK_LOWBEAM_COLOR=1,0.7,0.3,0.9

[EMISSIVE_LIGHT_...]
NAME=bulb2
COLOR=255, 255, 255, 0.2
OFF_COLOR=0,0,0
CAST_LIGHT=1
LAG = 0.8


[EMISSIVE_REVERSE_0]
NAME = ReverseLight
COLOR = 10, 10, 10, 50     
LAG = 0.4                  
SIMULATE_HEATING = 0     
LOCATION = REAR    

[EMISSIVE_LIGHT_...] ; Emergency Flash
NAME=720SLMAP
COLOR=50, 25, 0,2
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 25, 0,3
INPUT = BRAKE
INPUT_THRESHOLD = 0.95

[ANIMATION_...]
INPUT = EXTRA_A
FILE = folding_Cluster.ksanim
TIME = 1.0

[INCLUDE: common/materials_carpaint.ini]

[Material_CarPaint_Metallic]
Materials=ext_Body_Paint


[Material_CarPaint_Metallic]
Materials=ext_Wheel_paint1
AmbientSpecular=0

[Material_Carbon]
Materials = carb3_diff
DetailScale = 800
Brightness = 0.4
ClearCoatF0 = 0.02
DetailNormalPBRFormat = 1
Materials = carb3_diff
PROP_...= fresnelC,6.7
ApplyTilingFix = 0






[Material_Carbon]
Materials = rim_detail
DetailScale = 550
Brightness = 0.5
ClearCoatF0 = 0.20
DetailNormalPBRFormat = 1
Materials = rim_detail
PROP_...= fresnelC,6.7
ApplyTilingFix = 0

[Material_Carbon]
Materials = cluster_carbon
DetailScale = 350
Brightness = 0.5
ClearCoatF0 = 0.20
DetailNormalPBRFormat = 1
Materials = cluster_carbon
PROP_...= fresnelC,6.7
ApplyTilingFix = 0


[Material_Metal_v2]
Materials = exhaust
BrightnessAdjustment = 0.15
DetailScale = 10
Metalness = 0.8
Reflectance = 0.8
LocalReflectionsSharpness = 0.5
ApplyTilingFix=1
DetailNormalBlend= 3


[EXHAUST_FLAMES]
ANTILAG=1 ; turbo antilag, i havent tested this yet
ANTILAG_DELAY=0.1 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=.1 ; flame size
ANTILAG_INTERVAL_MAX=.1
ANTILAG_INTERVAL_MIN=.1
ANTILAG_TURBO_THRESHOLD=0.8
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.8 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0 ; delay after throttle lift
DISCHARGE_DURATION=2 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=.5; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=.1; flame size
DISCHARGE_RPM_THRESHOLD_MAX=8500 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=6000 ; 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=70 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=.1 ; flame size
FLAT_SHIFT_PROBABILITY=1 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=.1 ; flame size
LIMITER_RPM_THRESHOLD=7300 ; limiter flames will not shoot below this rpm

[PARTICLES_FX]
SMOKE_FORCE_THICKNESS  =  1

[PARTICLES_FX_SMOKE_0]
TYRES_LEFT = 1

[PARTICLES_FX_SMOKE_1]
TYRES_RIGHT = 1

[PARTICLES_FX_EXHAUST]
COLOR=0.7, 0.75, 0.9, 0.5
GROW=0.1, 0.1

[PARTICLES_FX_EXHAUST_FLAMES]
COLOR_MULT = 1,1,1
TEMPERATURE_MULT =1
SIZE_MULT =  1.0
INTENSITY_MULT =1.00



[EXTRA_FX_EMISSIVE_...]
MESHES =  MCL_720S_18_Graphics_Main256
RANGE = 0.3 
COLOR = 1         
DIRECTED = 1           
INTERIOR_ONLY = 1        
EXTERIOR_ONLY = 0        
EMISSIVE_TWEAK =0
COVERAGE = 3         
SAMPLES_LIMIT = 100     
SPLIT_ELEMENTS = 0
NORMAL_SHIFT = 0   

[EXTRA_FX_EMISSIVE_...]
MESHES = MCL_720S_18_Graphics_Main25
RANGE = 0.3
COLOR = 35 
DIRECTED = 1           
INTERIOR_ONLY = 1        
EXTERIOR_ONLY = 0        
EMISSIVE_TWEAK =0
COVERAGE = 5       
SAMPLES_LIMIT = 100     
SPLIT_ELEMENTS = 1
NORMAL_SHIFT = 0   

[EXTRA_FX_EMISSIVE_...]
MESHES = Nav_screen_LITE
RANGE = 0.4
COLOR = 1
DIRECTED = 1           
INTERIOR_ONLY = 1        
EXTERIOR_ONLY = 0        
EMISSIVE_TWEAK =0
COVERAGE =3      
SAMPLES_LIMIT = 100     
SPLIT_ELEMENTS = 1
NORMAL_SHIFT = 0   



[SHADER_REPLACEMENT_...]
MATERIALS =MCL_720S_18_Graphics_Main25,cluster_main
ADAPTIVE_EMISSIVE = 1

________________________________________________

[DATA] 
DISABLE_LIGHTSINI = 1

[Material_Glass]
Materials =LightGlass
ThicknessMult = 1
IOR = 1.5

[Material_Carbon]
Materials = INT_Carbon
BrightnessAdjustment = 0.4
ClearCoatF0 = 0.23
DetailScale = 500
Reflectance = 0.2
Smoothness = 0.7


[Material_Leather]
Materials = int_leather_paint2,int_leather_paint1


[Material_Carbon]
Meshes = EXT_PLATE_CARBON
DetailScale = 51
[Material_Velvet_v2] ALCANTARA
Materials = INT_Alcantra
ColorSource=DIFFUSE
DetailScale = 125
Brightness= 0.17
ApplyTilingFix=1
OcclusionMult=1
DetailNormalBlend = 5.2

[Material_Velvet_v2] ALCANTARA
Materials = Int_Seatbelt
ColorSource=DIFFUSE
DetailScale = 525
Brightness= 0.25
ApplyTilingFix=1
OcclusionMult=1
DetailNormalBlend = 5.2

[Material_Plastic]
Materials= INT_Plastic
ColorSource=DIFFUSE
Smoothness=1
Brightness=0.4
Reflectance=0.01
BrightnessAdjustment = 0.01
DetailScale = 425

[Material_Aluminium_v2]
Materials = INT_Chrome
ClearCoatF0 = 1
BrightnessAdjustment= 0.31
Reflectance= 0.9
CubemapReflectionBlur=3
Metalness=1.5
DetailScale = 425

[Material_Aluminium_v2]
Materials = cap_rim
ClearCoatF0 = 1
Brightness= 0.5
Reflectance= 0.0
CubemapReflectionBlur=0
Metalness=.9
DetailScale = 10

[Material_Aluminium_v2]
Materials = 102
ClearCoatF0 = 1
BrightnessAdjustment= 0.4
Reflectance= 0.5
CubemapReflectionBlur=0.9

[Material_Glass]
Meshes = WindowEXT
ThicknessMult = 1
FilmIOR=1.6



[SHADER_REPLACEMENT_1]
MATERIALS= carb3_diff
PROP_... = ksAmbient,0.4
PROP_... = ksDiffuse, 0.4


[SHADER_REPLACEMENT_2]
MATERIALS= 11BLACK
PROP_... = ksAmbient,0.15
PROP_... = ksDiffuse, 0.15
PROP_... = ksSpecular, 0.05
PROP_... = ksSpecularEXP, 450

---------------------------------------------------

[LIGHTING] ; Standard Config - Do Not Change
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

[BASIC]
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=1
HAZARD_LIGHTS_ENGINE_LIFE_THRESHOLD=0.001
HEADLIGHTS_ARE_HEADLIGHTS=1
HORN_AS_SIREN=0
IS_LOW_BEAM_AVAILABLE=1
LIGHT_DAMAGE_SPEED_MAX=120
LIGHT_DAMAGE_SPEED_MIN=80
STOP_LODS_ADJUSTMENT=0
TURNING_LIGHTS_REPEAT=1

-------------------------------------------------------------



[EMISSIVE_...] CLUSTER
INPUT=LIGHT
BIND_TO_HEADLIGHTS=1
NAME =  MCL_720S_18_symbols_DIFF, Nav_screen_LITE
COLOR= 10,10,15, 0.2
LAG=0.3
SIMULATE_HEATING=0
AFFECTS_TRACK=1

[EMISSIVE_...] CLUSTER
INPUT=LIGHT
BIND_TO_HEADLIGHTS=1
NAME = MCL_720S_18_Graphics_Main25
COLOR= 10,10,15, 0.3
LAG=0.3
SIMULATE_HEATING=0
AFFECTS_TRACK=1

[EMISSIVE_...] CLUSTER
INPUT=LIGHT
BIND_TO_HEADLIGHTS=1
NAME = MCL_720S_18_Graphics_Main256
COLOR= 10,10,15, 0.3
LAG=0.3
SIMULATE_HEATING=0
AFFECTS_TRACK=1

[EMISSIVE_...] Headlights
INPUT=LIGHT
BIND_TO_HEADLIGHTS=1
NAME = bulb
COLOR= 10,10,10,15
LAG=0.3
SIMULATE_HEATING=0
AFFECTS_TRACK=1

[LIGHT_HEADLIGHT_0]
COLOR=30
POSITION=0,0.68, 1.9
MIRROR=0.8
BOUND_TO= LOWBEAM
AFFECTS_TRACK=1
AMBIENT_INFLUENCE = 0.85
BOUND_EMISSIVE_MAX=200
BOUND_EXP=.1
DIFFUSE_CONCENTRATION=0.9
------------------------- BRAKE FX -------------------------------



[BRAKEDISC_FX]
ACTIVE = 1   
REFRESH = 1          ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0         ; use ceramic look
CARVED = 30              ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 1.4   ; 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
DEBUG = 0
DISC_INTERNAL_RADIUS = 0.110
DISC_RADIUS = 0.200
ALPHA_MASK = 0.012, 0.07
LUMINOCITY_MASK = 0.08 0.3



------------------------------------- TURN SIGNALS + CASTING LIGHTS ROAD  -----------------------------------

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0, 0, 4
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.480602
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_COLOR=1, 0.0478983, 0, 2
OFF_FADE_MULT=0.764696
OFF_MIRROR=0.499414
OFF_MULT=0.1
OFF_POSITION=0, 0.1, -3
OFF_RANGE_MULT=0.831926
POSITION=0, 0.4, -2.3
RANGE=5
RANGE_GRADIENT_OFFSET=0.275
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=160
SPOT_EDGE=0.406, 0.406, 0.406
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.3675


[LIGHT_EXTRA_0_REARLIGHTS]
;taillight sprite to road
BOUND_TO=720SLMAP 
BOUND_EMISSIVE_MAX=20
BOUND_EXP= 0.5
POSITION=-0.1, 0.75, -2.3
MIRROR=0.5
DIRECTION=-0.1, 0, -1
AFFECTS_TRACK=1
SELF_LIGHTNING=1
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
SPECULAR_MULT=3
DIFFUSE_CONCENTRATION=0.88
SPOT=170
SPOT_SHARPNESS=0.1
FADE_AT=450
FADE_SMOOTH=5
RANGE=4
RANGE_GRADIENT_OFFSET=0.25
COLOR=3, 0.25, 0, 0.3


-------------- HEADUNIT --------------

[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes = Nav_screen_LITE
Resolution = 1305, 1145   ; texture resolution
Size = 640, 380           ; size of the screen area
Offset = 330, 220       ; left top corner of screen area
Scale = 2            ; might need adjusting to get the scale right
RearCameraPosition = 0, 0.1, -2.4  ; position of rear view camera
REFRESH_RATE = 144
aftermarketComponent = 1

[SCRIPTABLE_DISPLAY_...]
MESHES = MCL_720S_18_Graphics_Main256
SCRIPT = cluster.lua


----------------------------- WIPERS -------------------------------



[WIPERS_TRACE_...]
SURFACE = WindowEXT
WIPERS=roughness_fine_001_DIFF.001, roughness_fine_001_DIFF.002

[ANIMATED_WIPER_...]
MESHES =roughness_fine_001_DIFF.001, roughness_fine_001_DIFF.002
UNDERLYING_SURFACE = WindowEXT 
DEBUG = 1 ; remove when everything is ready

[MESH_ADJUSTMENT_...]
MESHES = roughness_fine_001_DIFF.001, roughness_fine_001_DIFF.002
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1

[ANIMATED_WIPER_0]
DEBUG = 1
MESHES = roughness_fine_001_DIFF.001, roughness_fine_001_DIFF.002
UNDERLYING_SURFACE = WindowEXT
GROUP_0 = 'roughness_fine_001_DIFF.001@A=*'
GROUP_0_ANGLE_TO = 57.200001
GROUP_0_AXIS = 0.000000, 0.707107, 0.707107
GROUP_0_AXIS_OFFSET_0 = 0.000000, 0.707107, 0.707107
GROUP_0_AXIS_OFFSET_1 = 0.000000, 0.707107, 0.707107
GROUP_0_END = -0.712324, 0.856916, 1.132624
GROUP_0_PIVOT = 0.173786, 0.743224, 1.525738
GROUP_0_RUBBER_FROM = -0.462954, 0.812759, 1.364258
GROUP_0_RUBBER_OFFSET_AMOUNT = 0.002557
GROUP_0_RUBBER_OFFSET_POS = 0.506015
GROUP_0_RUBBER_TO = -0.697432, 0.852104, 1.130600
GROUP_0_SCALE_LUT = '(|0.000=1.000|1.019=0.958|)'
GROUP_1 = 'roughness_fine_001_DIFF.002@A=*'
GROUP_1_ANGLE_TO = 84.900002
GROUP_1_AXIS = 0.000000, 0.707107, 0.707107
GROUP_1_AXIS_OFFSET_0 = 0.000000, 0.707107, 0.707107
GROUP_1_AXIS_OFFSET_1 = 0.000000, 0.707107, 0.707107
GROUP_1_END = -0.449113, 0.826390, 1.352500
GROUP_1_PIVOT = 0.463918, 0.729112, 1.468592
GROUP_1_RUBBER_FROM = 0.136776, 0.816879, 1.399288
GROUP_1_RUBBER_OFFSET_AMOUNT = 0.022445
GROUP_1_RUBBER_OFFSET_POS = 0.475560
GROUP_1_RUBBER_TO = -0.444709, 0.818184, 1.347095
GROUP_1_SCALE_LUT = '(|-0.005=0.980|1.023=0.939|)'













[WOBBLY_BIT_0]
NAME = mmp_koku
CONNECTED_TO = 0.002, 1.11, 0.658 ; point to which node is attached to, and around which it will rotate
MAX_RANGE = 3              ; max range node can move from its original position
DAMPENING_LAG = 0.99            ; think of it as usual AC lag value, trying to zero node’s speed
G_GAIN = 0.03                ; how much G-forces affect node’s speed
GRAVITY_GAIN = 0.05                ; how much gravity affects node’s speed
OFFSET_GAIN = 70             ; how strong is returning force
STIFF_AXIS = 0, 0, 0            ; optional higher stiffness axis to reduce movement along it
STIFF_AXIS_STIFFNESS = 0      ; now stiff is optional stiffness axis
G_FILTER = 0.02             ; temporal filter for G-forces
DEFAULT_GRAVITY_INCLUDED_ALREADY = 1 ; either 0 or 1; set it to 1 if you don’t want gravity to skew your stuff when car is in neutral position


































