;Tesla Model 3 2024 Updated by Jerry Wei 2023/11/11

[DATA]
DISABLE_ANALOGINSTRUMENTSINI = 1  ; disables “analog_instruments.ini” completely, so you could recreate it with custom analog instruments
DISABLE_LIGHTSINI = 1             ; disables “lights.ini” completely, so you could recreate it with custom emissives (generally, not recommended)

[INCLUDE]
INCLUDE=common/no_popup_lights.ini

;///////////////////////////////////////////PBR_MATERIALS//////////////////////////////////////////

================================CAR PAINT================================

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = ext_carpaint,int_carpaint
CarPaintVersionAware = 4
DisableDev = 1

[Material_CarPaint_Metallic]
FresnelMax = 1
FresnelC = 0.1
BrightnessAdjustment = 0.9
ColoredSpecular = 0.9
AmbientSpecular = 0.6
AmbientSpecularEXP = 2.5
ClearCoatThickness = 0.06

================================GLASS================================

[INCLUDE: common/materials_glass.ini]
ExteriorGlassMaterials = EXT_Window

[Material_PhotoelasticGlass]
Meshes= GEO_Headlight_Glass
PhotoelasticityBaseScale = 6      ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.02  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.2   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.05 ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 8   ; how many stripes are there
ProfileFix = 0.02

[EXTRA_FX_...]
MASK_GBUFFER= GEO_Headlight_Glass,GEO_EXT_WINDOW,GEO_DOOR_L_SUB3,GEO_DOOR_L2_SUB3,GEO_DOOR_R_SUB3,GEO_DOOR_R2_SUB3,GEO_TRUNK_SUB4    

[Material_Glass]
Meshes= GEO_TRUNK_SUB4  
IOR = 2.200           
FilmIOR = $IOR     
ThicknessMult = 1  
ProfileFix = 0.05    
MaskPass = 2         
MaskPassColor = 255, 0.5, 0.5   

================================INTERIOR================================

[INCLUDE: common/materials_interior.ini]

[Material_InteriorPBR]
Materials= int_chrome
Metalness = 0.5
HasDetailNormals = 1
Reflectance = 0.75
BrightnessAdjustment = 0.75
DetailScale = 500
ApplyTilingFix = 1

[Material_InteriorPBR]
Materials= int_plastic_silver
Metalness = 0.0
HasDetailNormals = 1
Reflectance = 0.05
BrightnessAdjustment = 0.75
DetailScale = 50

[Material_InteriorPBR]
Materials= int_leather_1,int_leather_2
HasDetailNormals = 1
Reflectance = 0.01
BrightnessAdjustment = 0.5
DetailScale = 150
ApplyTilingFix = 1

[Material_InteriorPBR]
Materials= int_leather_3
HasDetailNormals = 1
Reflectance = 0.01
BrightnessAdjustment = 0.5
DetailScale = 150

[Material_InteriorPBR]
Materials= int_headliner
HasDetailNormals = 1
Reflectance = 0
BrightnessAdjustment = 0.75
DetailScale = 150

[Material_InteriorPBR]
Materials= int_plastic,int_plastic_red
HasDetailNormals = 1
Reflectance = 0.05
BrightnessAdjustment = 0.2
DetailScale = 250
ApplyTilingFix = 1

[Material_InteriorPBR]
Materials= int_rubbertrim
HasDetailNormals = 1
Reflectance = 0.05
BrightnessAdjustment = 0.2
DetailScale = 250
ApplyTilingFix = 1

[Material_InteriorPBR]
Materials= int_fabric
HasDetailNormals = 1
Reflectance = 0
BrightnessAdjustment = 0.4
DetailScale = 200
ApplyTilingFix = 1

================================EXTERIOR================================

[Material_Plastic]
Materials= ext_plastic
Reflectance = 0.04
BrightnessAdjustment = 0.3
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
DetailNormalBlend = 0.5
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 1
DetailScale = 100

[Material_InteriorPBR]
Materials= RIM_2
HasDetailNormals = 1
Reflectance = 0.02
BrightnessAdjustment = 0.1 
DetailScale = 100
ApplyTilingFix = 1

[Material_InteriorPBR]
Materials= EXT_Chrome_Badge
HasDetailNormals = 1
Metalness = 0.5
Reflectance = 0.95
BrightnessAdjustment = 0.75

[Material_InteriorPBR]
Materials= ext_carpaint_black
HasDetailNormals = 1
Metalness = 0
Reflectance = 0.1
Smoothness = 0.9
BrightnessAdjustment = 0.01

[Material_Plastic]
Materials=Rim
Reflectance = 0.1
BrightnessAdjustment = 0.25
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
DetailNormalBlend = 0.5
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 0
DetailScale = 10

[Material_InteriorPBR]
Materials=Caliper
UseClearCoat = 1             ; set to 1 to add clear coat to material
ClearCoatSmoothness = 0.9    ; smoothness of clear coat
ClearCoatIntensity = 1     ; multiplier for clear coat, with 0, it’s pretty much disabled
ClearCoatF0 = 0.04           ; F0 for clear coat, should be 0.04 for most cases
Smoothness = 0.75    ; smoothess before it’s scaled by texture
Metalness = 0.0      ; metalness before it’s scaled by texture
Reflectance = 0.25  ; reflectance before it’s scaled by texture
Brightness = 1

================================LIGHT================================

[Material_Chrome]
Meshes = GEO_LIGHT_Headlights,GEO_LIGHT_Headlights_HB
Metalness = 0.3
Reflectance = 0.95
BrightnessAdjustment = 0.45
CubemapReflectionBlur = 1

[Material_InteriorPBR]
Meshes = GEO_CAR_SUB6 
HasDetailNormals = 1
Metalness = 0.2
Reflectance = 0.1
Smoothness = 1
BrightnessAdjustment = 0.4

[INSTRUMENTS]
HAZARDS_G_THRESHOLD = -1  ; set G-force for hazards to turn on automatically on sudden braking
SPEED_FIX = 1             ; use speed of powered wheels for speedometer
SPEED_LAG = 0.85          ; speed lag for SPEED_FIX option
SPEED_LIMIT =             ; if more than zero, used as upper bound for speed for SPEED_FIX option

[STATUS_BATTERY]
; parameters for overly simplified battery voltage estimation for instruments
; battery voltage reacts to RPM
BASE_VOLTAGE = 12.4  ; base battery voltage
MAX_VOLTAGE = 13.6   ; maximum battery voltage
RPM_LAG = 0.98       ; RPM lag

[LIGHTING]
EMISSIVE_BRAKELIGHTS_MULT=1
EMISSIVE_HEADLIGHTS_MULT=1
EMISSIVE_MULT=1
INTERIOR_FAKE_SHADOW_FADE=0.2
INTERIOR_FAKE_SHADOW_HEIGHT=0.1
INTERIOR_FAKE_SHADOW_OPACITY=0.9
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.1
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=-0.1
LIT_MULT=1
SPECULAR_MULT=1

[BASIC]
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=1
HAZARD_LIGHTS_ENGINE_LIFE_THRESHOLD=0.0001
HORN_AS_SIREN=0
LIGHT_DAMAGE_SPEED_MAX=120
LIGHT_DAMAGE_SPEED_MIN=80
IS_LOW_BEAM_AVAILABLE = 1

;//////////////////////////////////////////SELFLIGHTING//////////////////////////////////////////

[INCLUDE: common/selflighting.ini]

[SelfLight_Headlights]
POSITION=0, 0.692, 1.86
BOUND_TO = GEO_LIGHT_Headlights
MIRROR=0.76
RANGE=0.3
SPOT=100
DIRECTION=0, 0, 1
COLOR=32,32,32,5

[SelfLight_Headlights]
POSITION=0.0, 0.675, 1.98
BOUND_TO = GEO_LIGHT_Headlights_HB
MIRROR=0.67
RANGE=0.3
SPOT=100
DIRECTION=0, 0, 1
COLOR=32,32,32,5

;//////////////////////////////////////////REFRACTING_HEADLIGHT//////////////////////////////////////////

[REFRACTING_HEADLIGHT_...]
SURFACE = GEO_LIGHT_Headlights 
INSIDE = GEO_LIGHT_Headlights_inner
ABSORPTION = 0
AMBIENT_MULT = 0.25
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5,0.5,0,0
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.5,0.5,0,0
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 1
DIRECTION = 0,0,-1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 5
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.8
GLASS_COLOR = 0.25,0.25,0.25
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.040000044
INNER_SPECULAR = 20
INNER_SPECULAR_EXP = 800
IOR = 1
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,0,0
MIRROR_POS = 1.1920929e-07,0.6978786,1.8576297
NM_SHARE_EXT = 0
NM_SHARE_INT = 0
ORIGIN = 0.7609011,0.69787854,1.8909934
RADIUS = 0.052995004
REFLECTIVENESS_DIFFUSE_MULT = 60
REFLECTIVENESS_MULT = 6
REFLECTIVE_GAMMA = 1
REFRACTION_MASKING = 0
SIDE_FALLOFF = 4
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0

[REFRACTING_HEADLIGHT_...]
SURFACE = GEO_LIGHT_Headlights_HB 
INSIDE = GEO_LIGHT_Headlights_HB_inner
ABSORPTION = 0
AMBIENT_MULT = 0.25
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5,0.5,0,0
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.5,0.5,0,0
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 1
DIRECTION = 0,0,-1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 100
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.8
GLASS_COLOR = 0.25,0.25,0.25
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.040000044
INNER_SPECULAR = 20
INNER_SPECULAR_EXP = 800
IOR = 1
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,0,0
MIRROR_POS = 1.1920929e-07,0.6978786,1.8576297
NM_SHARE_EXT = 0
NM_SHARE_INT = 0
ORIGIN = 0.615,0.69787854,2.106
RADIUS = 0.109100185
REFLECTIVENESS_DIFFUSE_MULT = 60
REFLECTIVENESS_MULT = 6
REFLECTIVE_GAMMA = 1
REFRACTION_MASKING = 0
SIDE_FALLOFF = 4
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0

;//////////////////////////////////////////DIGITAL_INSTRUMENTS//////////////////////////////////////////

[DI_AMBIENT_TEMPERATURE_...]
DIGITAL_ITEM = 6
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
UPPER_BOUND = 999999
INPUT_MULT = 1.8
INPUT_ADD = 32

[DI_FUEL_...]
DIGITAL_ITEM = 9
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
UPPER_BOUND = 999999
INPUT_MULT=100

;//////////////////////////////////////////ANALOG_INDICATOR//////////////////////////////////////////

[ANALOG_INDICATOR_...]
INPUT = FUEL                     ; any of supported inputs
NAME = GEO_Battery                ; name of mesh to move
SCALE_START = 0.2, 0, 0            ; scale for the minimum value
SCALE_END = 1, 1, 1              ; scale for the upper bound (allows to create progress bars and such)
UPPER_BOUND = 1                 ; maximum input value for arrow to move with
LOWER_BOUND = 0                  ; minimum input value

;//////////////////////////////////////////BRAKEDISCS//////////////////////////////////////////
[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 = 20  ; increase to make more lines
GLOW_OFFSET = 0.75      ; 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

[LIGHT_BRAKEDISCS_FRONT]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.2, 0, 1.2
DEBUG=0
DIFFUSE_CONCENTRATION=0.8
DIRECTION=1, -0.00, 0.0
EXTERIOR_ONLY=1
FADE_AT=30
FADE_SMOOTH=5
GLOW_BOUNDARY_FROM=0
GLOW_BOUNDARY_TO=10
INTERIOR_ONLY=0
MIRROR_DIRECTION=1
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_RANGE_MULT=0.5
POSITION=-0.18, 0.0, 0
RANGE=0.9
RANGE_GRADIENT_OFFSET=0.45
SINGLE_FREQUENCY=0
SPECULAR_MULT=2
SPOT=100
SPOT_SHARPNESS=0.75

[LIGHT_BRAKEDISCS_REAR]
ACTIVE=1
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.2, 0, 1.2
DEBUG=0
DIFFUSE_CONCENTRATION=0.8
DIRECTION=1, -0.0, 0.0
EXTERIOR_ONLY=1
FADE_AT=30
FADE_SMOOTH=5
GLOW_BOUNDARY_FROM=0
GLOW_BOUNDARY_TO=10
INTERIOR_ONLY=0
MIRROR_DIRECTION=1
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_RANGE_MULT=0.5
POSITION=-0.18, 0, 0
RANGE=0.9
RANGE_GRADIENT_OFFSET=0.45
SINGLE_FREQUENCY=0
SPECULAR_MULT=2
SPOT=100
SPOT_SHARPNESS=0.75

;//////////////////////////////////////////WIPERS//////////////////////////////////////////

[WIPERS]
FRONT_0= GEO_WIPER_1,GEO_WIPER_2a,GEO_WIPER_2b
FRONT_1= GEO_WIPER_3,GEO_WIPER_4a,GEO_WIPER_4b  
WIND_THRESHOLDS_KMH = 150, 250  ; 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

[WIPERS_TRACE_...]
SURFACE = GEO_EXT_WINDOW,GEO_INT_WINDOW   
WIPERS = GEO_WIPER_2b,GEO_WIPER_4b 

;//////////////////////////////////////////TURNSIGNAL//////////////////////////////////////////

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME= GEO_TS_LF
COLOR=120, 60, 0, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME= GEO_TS_RF
COLOR=120, 60, 0, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME= GEO_TS_LS
COLOR=120, 60, 0, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
AFFECTS_TRACK=1

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME= GEO_TS_RS
COLOR=120, 60, 0, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
AFFECTS_TRACK=1

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME= GEO_TS_LR
COLOR=120, 60, 0, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
AFFECTS_TRACK=1
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME= GEO_TS_RR
COLOR=120, 60, 0, 5
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
AFFECTS_TRACK=1
LOCATION=REAR

;//////////////////////////////////////////HEAD_LIGHTS//////////////////////////////////////////

[LIGHT_HEADLIGHT_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 0.95, 5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.15, 1
EXTERIOR_ONLY=0
FADE_AT=450
FADE_SMOOTH=50
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=70
LOWBEAM_RANGE_MULT=0.8
LOWBEAM_RANGE_ONCOMING_MULT=0.4
MIRROR=0.7
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.75843
OFF_MULT=0
OFF_POSITION=0, 0.601118, 1.98723
OFF_RANGE_MULT=0.125
POPUP_EDGE_EXP=0.3
POPUP_EDGE_OFFSET=0.5
POPUP_ENABLED=1
POPUP_END=0.7
POPUP_SECOND_SPOT_EXP=0.6
POPUP_SECOND_SPOT_INITIAL_VALUE=0.4
POPUP_START=0.05
POSITION=0, 0.6, 2.15
RANGE=240
RANGE_GRADIENT_OFFSET=0
SECOND_SPOT=110
SECOND_SPOT_INTENSITY=1
SECOND_SPOT_RANGE=50
SECOND_SPOT_SHARPNESS=0.45
SECOND_SPOT_SKIP=0.35
SINGLE_FREQUENCY=0
SPECULAR_MULT=2
SPOT=60
SPOT_EDGE=0.03, 0.03, 0.029
SPOT_EDGE_SHARPNESS=45
SPOT_SHARPNESS=0
SPOT_UP=0.05, 1, 0

[EMISSIVE_LIGHT_...];headlight
NAME= GEO_LIGHT_Headlights
COLOR= 100,100,95,2
SIMULATE_HEATING=0.2
LAG=0.1
ACT_AS_HEADLIGHTS=1
CAST_LIGHT=1
AFFECTS_TRACK=1

[EMISSIVE_LIGHT_...];daytime runninglight
NAME= GEO_LIGHT_Headlights_DTL
COLOR=10,10,9.5,2
OFF_COLOR=10,10,9.5,2
SIMULATE_HEATING=0.2
ACT_AS_HEADLIGHTS=1
CAST_LIGHT=1
AFFECTS_TRACK=1

[EMISSIVE_HIGHBEAM_...]
NAME=GEO_LIGHT_Headlights_HB
COLOR= 50,50,47,1
SIMULATE_HEATING=0.2
LAG=0.1

;//////////////////////////////////////////REVERSE_LIGHTS//////////////////////////////////////////

[LIGHT_REVERSE_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 0.99, 4.5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.776774
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.776774
OFF_MULT=0.1
OFF_POSITION=0, 0.762814, -1.79663
OFF_RANGE_MULT=0.5
POSITION=0, 0.762814, -2.1
RANGE=3
RANGE_GRADIENT_OFFSET=0.5
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=120
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=0
SPOT_SHARPNESS=0.4

[EMISSIVE_REVERSE_...]
NAME= GEO_LIGHT_Reverse_Light  
COLOR=50, 50, 50 ,10
LAG=0.3
SIMULATE_HEATING=0.1
 
;//////////////////////////////////////////BREAK_LIGHTS//////////////////////////////////////////

[LIGHT_BRAKE_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=5
COLOR=1, 0.02, 0, 4
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.005, -0.1
EXTERIOR_ONLY=0
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.7
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_COLOR=1, 0.02, 0.01, 1
OFF_FADE_MULT=0.77
OFF_MIRROR=0.7
OFF_MULT=0.1
OFF_POSITION=0, 0.838973, -2.1
OFF_RANGE_MULT=0.833185
POSITION=0, 0.838973, -2.1
RANGE=6
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=0
SPECULAR_MULT=2.5
SPOT=135
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.35

[EMISSIVE_BRAKE_...]
NAME= GEO_LIGHT_Brake_Light
COLOR=55, 0, 0, 2
FALLBACK_HEADLIGHTS_COLOR=25, 0, 0, 1
LAG=0.1

[EMISSIVE_BRAKE_...]
NAME= GEO_LIGHT_3rd_brake
COLOR=55, 0, 0, 2
LAG=0.1

;//////////////////////////////////////////INTERIOR_LIGHTS//////////////////////////////////////////

[INCLUDE: common/custom_emissive.ini]
[CustomEmissiveMulti]
Meshes = GEO_Cockpit_HR_SUB18
Resolution = 1092,504
UseEmissive0AsFallback = 0
LAG=0.1
@ = MultiItem, Role = LIGHT , Start = "0, 0", Size = "1092, 504", Color = "5,5,5" , Intensity=1
@ = MultiItem, Role = GEAR_R , Start = "638, 202", Size = "57, 55", Color = "20,10,0" , Intensity=2
@ = MultiItem, Role = GEAR_N , Start = "587, 202", Size = "55, 52", Color  = "20,10,0" , Intensity=2
@ = MultiItem, Role = GEAR_D , Start = "754, 203", Size = "46, 54", Color  = "20,10,0" , Intensity=2
@ = MultiItem, Role = HAZARD , Start = "967, 8", Size = "98, 88", Color  = "20,0,0" , Intensity=3

[EMISSIVE_EXTRA_A_...];ceiling light
NAME= GEO_Cockpit_HR_SUB20
COLOR=100,100,100,1
LAG=0.1

[LIGHT_EXTRA_...]; top interior light
AFFECTS_TRACK=0
BIND_TO_EXTRA_A=1
COLOR=1, 1, 1, 3.5
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.0766, 1.34, 0.265
DIRECTION=0,-2,0.1
RANGE=2.0
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=5
SPOT=120
SPOT_SHARPNESS=0.1

[EMISSIVE_EXTRA_B_...];ceiling light
NAME= GEO_Cockpit_HR_SUB19
COLOR=100,100,100,1
LAG=0.1

[LIGHT_EXTRA_...]; top interior light
AFFECTS_TRACK=0
BIND_TO_EXTRA_B=1
COLOR=1, 1, 1, 3.5
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0
POSITION=-0.0766, 1.34, 0.265
DIRECTION=0,-2,0.1
RANGE=2.0
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=5
SPOT=120
SPOT_SHARPNESS=0.1

[EMISSIVE_LIGHT_...];screen
NAME= GEO_Cockpit_HR_SUB7,GEO_Cockpit_HR_SUB8
COLOR=1.5,1.5,1.5,1.5
OFF_COLOR=2,2,2,2
LAG=0.2

[EXTRA_FX_EMISSIVE_...]
MESHES = GEO_Cockpit_HR_SUB7,GEO_Cockpit_HR_SUB8    
COLOR=1,1,1
OFF_COLOR=2,2,2
RANGE = 0.1

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME= GEO_Warning_Light_L
COLOR=0,40,0,1
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=0
TOGGLE_VISIBILITY = 1

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME= GEO_Warning_Light_R
COLOR=0,40,0,1
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=0
TOGGLE_VISIBILITY = 1

[EMISSIVE_LIGHT_...] 
NAME= GEO_STEER_HR_SUB6
COLOR=2,2,2
LAG=0.2

[EMISSIVE_LIGHT_...] 
NAME= GEO_Warning_Light_LB
TOGGLE_VISIBILITY = 0
COLOR=0,40,0,1
LAG=0.3

[EMISSIVE_LIGHT_...] 
NAME= GEO_Warning_Light
TOGGLE_VISIBILITY = 0
COLOR=0,40,0,1
LAG=0.3

[EMISSIVE_...]
INPUT = BODY_DAMAGE 
NAME= GEO_Warning_Light_Belt
TOGGLE_VISIBILITY = 0
COLOR=40,10,0,1
LAG=0.3

[EMISSIVE_LIGHT_...] 
NAME= GEO_Gear_P_OFF,GEO_Gear_R_OFF,GEO_Gear_N_OFF,GEO_Gear_D_OFF  
OFF_COLOR=1,1,1
COLOR=1,1,1
LAG=0.2

[EMISSIVE_LIGHT_...] 
NAME= GEO_Gear_P_ON,GEO_Gear_R_ON,GEO_Gear_N_ON,GEO_Gear_D_ON  
OFF_COLOR=5,5,5
COLOR=5,5,5
LAG=0.2

[EMISSIVE_LIGHT_...];LED
NAME= GEO_DOOR_L_INT_SUB6,GEO_Cockpit_HR_SUB14,GEO_DOOR_R_INT_SUB6,GEO_DOOR_R2_INT_SUB4,GEO_DOOR_L2_INT_SUB4
COLOR=5,0,0,2
LAG=0.2

[EXTRA_FX_EMISSIVE_...]
MESHES = GEO_DOOR_L_INT_SUB6,GEO_Cockpit_HR_SUB14,GEO_DOOR_R_INT_SUB6,GEO_DOOR_R2_INT_SUB4,GEO_DOOR_L2_INT_SUB4 
COLOR=1,0,0
RANGE = 0.05
DIRECTED = 0
COVERAGE = 50

[EMISSIVE_LIGHT_...] 
NAME= GEO_Battery  
OFF_COLOR=3,3,3
COLOR=3,3,3

;//////////////////////////////////////////LICENSE_LIGHTS//////////////////////////////////////////

[LIGHT_LICENSEPLATE]
MESHES= Plate_US_Rear
OFFSET=-0.0, 0.03, -0.01
RANGE=0.4
RANGE_GRADIENT_OFFSET=0.3
SPOT=150
SPOT_SHARPNESS=0.9
COLOR=1.1, 1, 1, 3
FALLBACK_EMISSIVE=1,1,1,1
; other supported values: TWO_ON_TOP, ONE_ON_TOP
LAYOUT=TWO_ON_TOP
FADE_AT=50
FADE_SMOOTH=4

;//////////////////////////////////////////TYRES//////////////////////////////////////////

[SHADOWED_WHEELS_FRONT]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=0
DISTANCE=3
EXTRA_AMBIENT_BRIGHTNESS=0.12
OFFSET=0.03
WIDTH=0.1

[SHADOWED_WHEELS_REAR]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=0
DISTANCE=3
OFFSET=0.03
WIDTH=0.1

[TYRES_FX_FRONT]
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=50
DIRT_DIRT_DEBUG=0
DIRT_FADE=20
DIRT_GRASS_DEBUG=0
DIRT_WIDTH_K=1
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=16
VISIBLE_IN_INTERIOR_CAM=0

[TYRES_FX_REAR]
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=50
DIRT_DIRT_DEBUG=0
DIRT_FADE=20
DIRT_GRASS_DEBUG=0
DIRT_WIDTH_K=1
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=16
VISIBLE_IN_INTERIOR_CAM=0

;//////////////////////////////////////////DEFORMING//////////////////////////////////////////

[DEFORMING_HOOD]
NAME = HOOD          ; name of parenting node containing all meshes to deform
OFFSET_Y_MIDDLE = 0.04    ; how high would it offset in the center at full damage
OFFSET_Y_END = 0.1        ; how high would it offset at the far end at full damage
OFFSET_Z_END = 0.02       ; how far would it offset at the far end
BULGING_EXTRA = 0.0       ; increase to make shape go less triangly and more trapezoid-like
BULGING_EXPONENT = 2.0    ; affects the curve of slopes around raised center
NOISE_Y_AMPLITUDE = -0.16 ; some simple vertical noise at the center
NOISE_Z_AMPLITUDE = 0.2   ; and horizontal noise at the far end
NOISE_Y_FREQENCY = 7.0    ; which adds
NOISE_Z_FREQENCY = 7.0    ; some randomization
Z_FACTOR = 2.5            ; how center is being found
Z_BIAS = 0.0              ; with, if needed, manual offset

;//////////////////////////////////////////NAVIGATORS//////////////////////////////////////////

[INCLUDE: common/navigators.ini]

[Navigator_StyleSygic]
Meshes = GEO_Cockpit_HR_SUB7
Resolution = 2200, 1600
Offset = 860, 120
Size = 1300, 1300

[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes = GEO_Cockpit_HR_SUB8
Resolution = 1024, 1024
Size = 1000, 1000
Offset = 10, 40
Scale = 1,0.65
RearCameraPosition = 0, 0.557, -2.19

;//////////////////////////////////////////ANIMATION//////////////////////////////////////////

[ANIMATION_...]
FILE= car_door_L.ksanim
TIME= 1
BIND_TO_EXTRA_A=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_door_R.ksanim
TIME= 1
BIND_TO_EXTRA_B=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_door_L2.ksanim
TIME= 1
BIND_TO_EXTRA_C=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_door_R2.ksanim
TIME= 1
BIND_TO_EXTRA_D=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_hood.ksanim
TIME= 1
BIND_TO_EXTRA_E=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_trunk.ksanim
TIME= 1
BIND_TO_EXTRA_F=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_gear_P.ksanim
TIME= 0.1
BIND_TO=GEAR_N

[ANIMATION_...]
FILE= car_gear_R.ksanim
TIME= 0.1
BIND_TO=GEAR_R

[ANIMATION_...]
ACTIVE=0
FILE= car_gear_N.ksanim
TIME= 0.1
BIND_TO=GEAR_N

[ANIMATION_...]
FILE= car_gear_D.ksanim
TIME= 0.1
BIND_TO=GEAR_D

[ANIMATION_...]
FILE= car_mirror_int_L.ksanim
TIME= 0.1
BIND_TO=TURNSIGNAL_LEFT

[ANIMATION_...]
FILE= car_mirror_int_R.ksanim
TIME= 0.1
BIND_TO=TURNSIGNAL_RIGHT

[REAL_MIRROR_1]
ASPECT_MULT=0.75
FLIP=0
FOV=15
IS_MONITOR=1
MONITOR_SHADER_SCALE=800,200
MONITOR_SHADER_TYPE=1
ROTATION=0,0

[REAL_MIRROR_2]
ASPECT_MULT=0.75
FLIP=0
FOV=15
IS_MONITOR=1
MONITOR_SHADER_SCALE=800,200
MONITOR_SHADER_TYPE=1
ROTATION=0,0