[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/materials_glass.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: common/selflighting.ini]
[INCLUDE: refractions.ini]
[INCLUDE: pbr.ini]
[INCLUDE: common/navigators.ini]
[INCLUDE: navigators_mixins.ini]
[INCLUDE: common/no_popup_lights.ini]


[EXTRA_FX]
MASK_GBUFFER=
SKIP_GBUFFER=39_T,190_T


[Material_CarPaint_Metallic]
CarPaintMaterial = car_paint
FresnelMax = 1
FresnelC = 0.12
BrightnessAdjustment = 0.9 ; compensates for ambient specular
ColoredSpecular = 0.9
AmbientSpecular = 0.6
AmbientSpecularEXP = 2.5
ClearCoatThickness = 0.007
BaseSpecularColor = 1, 1, 1  ; specular color
ColoredSpecular = 0.0        ; use base color as specular color
PearlescentSpecular = 0.0    ; offset specular color from base color in a way similar to pearl car paints
AmbientSpecular = 0.0        ; ambient specular by Stereo
AmbientSpecularEXP = 2.5     ; concentration of specular ambient

[Material_Carbon]
Materials = carbon_int,carbon_ext
HasDetailNormals = 1
Smoothness = 0.5
Reflectance = 0.15
CubemapReflectionBlur = 0.35
UseClearCoat = 1
ClearCoatSmoothness = 1
ClearCoatIntensity = 0.6
DetailTexture = common/carbon.png
DetailNormalTexture = common/carbon_nm.png
DetailNormalBlend = 1
DetailScale = 500
RESOURCE_2 = txNormalDetail
RESOURCE_FILE_2 = 114.dds
RESOURCE_3 = txDetail
RESOURCE_FILE_3 = 88.dds

[Material_CarPaint_Metallic]
CarPaintMaterial = wheel_1,wheel_5
BaseSpecularColor = #FFFFFF
FresnelMax = 0.5
FresnelC = 0.25
FlakesK = 0.2
BrightnessAdjustment = 0.6
SpecularBase = 5,255
SpecularSun = 0.0, 110
AmbientSpecular = 0.6
AmbientSpecularEXP= 1.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.5
UseMetallicReflections = 1
DetailScale = 80

[Material_CarPaint_Metallic]
Materials = brake_5
FresnelMax = 0.3
FresnelC = 0.1
FlakesK = 0.0
BrightnessAdjustment = 0 ; compensates for ambient specular
BaseSpecularColor = 0, 0, 0
SpecularBase = 1, 200
SpecularSun = 0.1, 5
SunMultiplier = 2
ClearCoatThickness = 0.2
ClearCoatTint=0, 0, 0
UseDiffuseAlphaAsMask = 1
UseDiffuseAlphaAsClearCoatMask = 0

[Material_InteriorPBRDetail]
Materials = int_metal_hg,metal_hg
Reflectance = 0
Smoothness = 1
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 32
BrightnessAdjustment = 1
CubemapReflectionBlur = 0.2
Metalness = 0.5

[Material_Aluminium_v2]
Materials = wheel_3,int_metal_lg,metal_lg
BrightnessAdjustment = 1
DetailScale = 0
Metalness = 0.5
Reflectance = 1
LocalReflectionsSharpness = 0.1

[Material_Aluminium_v2]
Materials = wheel_4,brake_1,int_metal_lg_black
BrightnessAdjustment = 0.2
DetailScale = 0
Metalness = 0.5
Reflectance = 0.2
LocalReflectionsSharpness = 0.1

[Material_Aluminium_v2]
Materials = wheel_2,brake_6,sw_metal,int_metal
BrightnessAdjustment = 0.05
DetailScale = 0
Metalness = 0.5
Reflectance = 1
LocalReflectionsSharpness = 0.1

[Material_InteriorPBRDetail]
Materials = metal_detail_1
Reflectance = 0.0
Smoothness = 0.92
DetailNormalPBRFormat = 0
DetailNormalBlend =1.2
DetailScale = 16
BrightnessAdjustment = 0.25
CubemapReflectionBlur = 0.2
Metalness = 0.5

[Material_InteriorPBRDetail]
Materials = tube_1
Reflectance = 0.0
Smoothness = 0.99
DetailNormalPBRFormat = 0
DetailNormalBlend =0
DetailScale = 1
BrightnessAdjustment = 0.2
CubemapReflectionBlur = 0.2
Metalness = 0.5

[Material_InteriorPBRDetail]
Materials = metal_colorful
Reflectance = 0
Smoothness = 0.9
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 1
BrightnessAdjustment = 0.2
CubemapReflectionBlur = 0.2
Metalness = 0.99



[Material_InteriorPBRDetail]
Materials = brake_2,brake_3,brake_4
Reflectance = 0
Smoothness = 0.95
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 1
BrightnessAdjustment = 0.3
CubemapReflectionBlur = 0.2
Metalness = 1

[Material_Glass]
Materials = glass_red
IOR = 2.5           ; looks better like this
FilmIOR = $IOR       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 4 ; thicker glass passes less light through
ProfileFix = 0.03    ; adds thickness to glass for glazing angles
MaskPass = 4         ; mask pass opacity
MaskPassColor = 255, 5, 0  ; mask pass color adjustment
Desaturate = 0.0
Refraction = 1
ExtraLightsAdjustment = 0.01

[Material_Glass]
Materials = glass_hl
IOR = 1.6         ; looks better like this
FilmIOR = $IOR       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1 ; thicker glass passes less light through
ProfileFix = 0.05    ; adds thickness to glass for glazing angles
MaskPass = 1         ; mask pass opacity
Desaturate = 1
Refraction = 1
ExtraLightsAdjustment = 0.02


[Material_Glass]
Materials=lens
ThicknessMult=7
Desaturate=0
FilmIOR=0.55

[Material_PhotoelasticGlass]
Materials = glass_large
PhotoelasticityBaseScale = 0   ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.06  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.5   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.4  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 4   ; how many stripes are there
ProfileFix = 0.1
ExtraLightsAdjustment = 0.05
Desaturate = 0.0
IOR = 1.7
FilmIOR = 1.5
MaskPass = 1 
ThicknessMult = 2

[Material_Leather]
Materials = leather_1
Reflectance = 0.015
ColorSource = DIFFUSE
RESOURCE_2 = txNormalDetail
RESOURCE_FILE_2 = leather_n.dds
DetailTextureBlur = 0.1
Brightness = 0.8
DetailScale = 64
DetailNormalBlend =0.2
OcclusionMult = 4
Smoothness = 0.6
DetailNormalPBRSmoothnessGamma = 0.2

[Material_InteriorPBRDetail]
Materials = leather_3,leather_4,sw_leather_1,leather_text_2
Reflectance = 0.2
Smoothness = 0.1
DetailNormalPBRFormat = 0
DetailNormalBlend =1
DetailScale = 32
BrightnessAdjustment = 0.3
DetailNormalPBRSmoothnessGamma = 0.2

[Material_InteriorPBRDetail]
Materials = leather_text_1
Reflectance = 0.2
Smoothness = 0.1
DetailNormalPBRFormat = 0
DetailNormalBlend =0.4
DetailScale = 1
BrightnessAdjustment = 0.25
DetailNormalPBRSmoothnessGamma = 0.2

[Material_InteriorPBRDetail]
Materials = int_plastic,plastic
Reflectance = 0.08
Smoothness = 0.85
DetailNormalPBRFormat = 0
DetailNormalBlend =0
DetailScale = 128
BrightnessAdjustment = 0.3

[Material_InteriorPBRDetail]
Materials = int_plastic_hg,plastic_hg
Reflectance = 0.08
Smoothness = 0.9
DetailNormalPBRFormat = 0
DetailNormalBlend =0
DetailScale = 80
BrightnessAdjustment = 0.2

[Material_Plastic_v2]
Materials = wiper,sw_plastic_n,int_plastic_n
Reflectance = 0.1
Smoothness = 0.7
DetailNormalBlend = 1
DetailScale = 64


[ANIMATION_0]
FILE=A.ksanim
TIME=3.5
INPUT=EXTRA_A

[ANIMATION_1]
FILE=B.ksanim
TIME=3.5
INPUT=EXTRA_B

[ANALOG_INDICATOR_...]
INPUT = RPM
INPUT_MAX = 8000
NAME=ARROW_RPM
DELAY = 0
ZERO=-300
STEP=-0.03

[ANALOG_INDICATOR_...]
INPUT =WATER_TEMPERATURE
NAME=ARROW_WATER
ZERO=0
STEP=1.1

[ANALOG_INDICATOR_...]
INPUT =FUEL
NAME=ARROW_FUEL
ZERO=4.5
STEP=-1.15

[CustomEmissiveMulti]
Meshes = 87       
Resolution = 512,512
UseEmissive0AsFallback = 1    
@ = MultiItem, Role = HIGHBEAM, Start = "425,279", Size = "83,56" 
@ = MultiItem, Role = TURNSIGNAL_LEFT, Start = "448,161", Size = "60,60"
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Start = "448,93", Size = "62, 62"
@ = MultiItem, Role = DashWarningBrakes, Start = "399, 0", Size = "112, 94"

[CustomEmissiveMulti]
Meshes = 85_1       
Resolution = 512,512
UseEmissive0AsFallback = 1    
@ = MultiItem, Role = HAZARD, Start = "0,62", Size = "50,45" , Coloe = "80,0,0"

尾灯
[EMISSIVE_LIGHT_...]
NAME=163
COLOR=255,200,155,8
LAG=0.8
SIMULATE_HEATING=3
LOCATION=REAR
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5

[LIGHT_EXTRA_...]
BOUND_TO = 163
AMBIENT_INFLUENCE = 0.2
COLOR = 100,1,0,0.035
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=1
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=1200
FADE_SMOOTH=43
MIRROR=0.575, 0.0, 0
POSITION=0, 0.672, -2.17
DIRECTION=0, -0.1, -1
RANGE=5
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=-0
SPOT=145
SPOT_SHARPNESS=0.5
SPOT_UP=0, 1, 0

车牌
[LIGHT_LICENSEPLATE]
MESHES=199_T
OFFSET=0.05, 0.0,-0.1
RANGE=0.35
RANGE_GRADIENT_OFFSET=0.2
SPOT=150
SPOT_SHARPNESS=0.7
COLOR=23,16,9,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=199_T
COLOR=255,255,230,0.1
LAG=0.8
SIMULATE_HEATING=3
LOCATION=NONE
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5

指针
[EMISSIVE_LIGHT_...]
NAME=101,110,108,104
COLOR=25,60,60,2
LAG=0.3
SIMULATE_HEATING=0
LOCATION=REAR
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5

标识
[EMISSIVE_LIGHT_...]
NAME=131
COLOR=25,60,60,0.3
LAG=0.1
SIMULATE_HEATING=0
LOCATION=REAR
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
NAME=85,117,113
COLOR=40,40,40,1.6
LAG=0.2
SIMULATE_HEATING=0
LOCATION=REAR
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5

车机
[EMISSIVE_LIGHT_...]
NAME=73_4
COLOR=10,10,10,0.6
LAG=0.8
SIMULATE_HEATING=3
LOCATION=REAR
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5
OFF_COLOR = 10,10,10,0.2

车侧
[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME = 191
COLOR = 16,3,0, 7
LAG = 0.57
BLINK_FREQENCY_HZ = 0.96
SIMULATE_HEATING = 2
CAST_LIGHT = 1 
LOCATION = LEFT

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME = 191_1
COLOR = 16,3,0, 7
LAG = 0.57
BLINK_FREQENCY_HZ = 0.96
SIMULATE_HEATING = 2
CAST_LIGHT = 1 
LOCATION = RIGHT

刹车
[EMISSIVE_BRAKE_0]
NAME=163_1,163_2
FALLBACK_HEADLIGHTS_COLOR=20,10,5,2
LAG=0.6
COLOR=100,80,80,40
CAST_LIGHT = 1
LOCATION=REAR

转向
[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME = 164
COLOR = 255,240,0, 1
LAG = 0.57
BLINK_FREQENCY_HZ = 0.96
SIMULATE_HEATING = 2
CAST_LIGHT = 1 
LOCATION = REAR

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME = 164_1
COLOR = 255,240,0, 1
LAG = 0.57
BLINK_FREQENCY_HZ = 0.96
SIMULATE_HEATING = 2
CAST_LIGHT = 1 
LOCATION = REAR

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME = 36_T_1
COLOR = 500,150,40, 0.05
LAG = 0.5
SIMULATE_HEATING = 2
CAST_LIGHT = 1 
LOCATION = FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME = 35_T_1
COLOR = 500,150,40, 0.05
LAG = 0.5
SIMULATE_HEATING = 2
CAST_LIGHT = 1 
LOCATION = FRONT

头灯
[EMISSIVE_LIGHT_...]
NAME=197_T,198_T
COLOR=10,10,10,400
LAG=0.2
SIMULATE_HEATING=3
LOCATION=FRONT
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
NAME=162_1
COLOR=9,9,11,3
LAG=0.2
SIMULATE_HEATING=3
LOCATION= FRONT
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=2
CLUSTER_THRESHOLD=0.5

[SHADER_REPLACEMENT_...]
MESHES = 0_T_2,0_T_12,40_T,7_T,0_T_R,7_T_R,7_T001_L
PROP_... = emChannelsMode, 1

[EMISSIVE_HIGHBEAM_...]
NAME = 0_T_2,40_T,7_T,0_T_R,7_T_R
COLOR = 11,11,11,1
FALLBACK_HEADLIGHTS_COLOR = 9,9,11,2
LAG = 0.1
LOCATION = FRONT
CHANNEL = 0

[EMISSIVE_EXTRA_C_...]
NAME= 0_T_4
COLOR=10,10,10,400
FALLBACK_HEADLIGHTS_COLOR=10,10,10,0
LAG = 0.5
SIMULATE_HEATING=0.5
LOCATION=FRONT
CAST_LIGHT=1

[EMISSIVE_EXTRA_C_...]
BIND_TO_EXTRA_C = 1
NAME = 0_T_2,0_T_12,40_T,7_T,0_T_R
COLOR = 9, 9, 9, 4
LAG = 0.0
SIMULATE_HEATING = 0
LOCATION = FRONT
CAST_LIGHT = 1
CLUSTER_THRESHOLD = 0.5
CHANNEL = 2

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME = 0_T_2,40_T,7_T001_L
COLOR = 40, 10, 1, 1
LAG = 0.6
SIMULATE_HEATING = 3
LOCATION = FRONT
CHANNEL = 1

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME = 7_T_R,0_T_R
COLOR = 40, 10, 1, 1
LAG = 0.6
SIMULATE_HEATING = 3
LOCATION = FRONT
CHANNEL = 1

倒车
[EMISSIVE_REVERSE_...]
NAME = 182_T
COLOR = 25,20,10,2  
LAG = 0.4                  
SIMULATE_HEATING = 0     
LOCATION = REAR

[EMISSIVE_REVERSE_...]
NAME = 187_1
COLOR = 12,10,8,2
LAG = 0.4                  
SIMULATE_HEATING = 0     
LOCATION = REAR

雾灯
[EMISSIVE_EXTRA_D_...]
NAME=182_T_1
COLOR=255,2,0,1
FALLBACK_HEADLIGHTS_COLOR=0,0,0
LAG = 0.5
SIMULATE_HEATING=0.5
LOCATION=FRONT
CAST_LIGHT=1

[EMISSIVE_EXTRA_D_...]
NAME=187
COLOR=255,10,0,1.5
FALLBACK_HEADLIGHTS_COLOR=0,0,0
LAG = 0.5
SIMULATE_HEATING=0.5
LOCATION=FRONT
CAST_LIGHT=1

车顶灯
[EMISSIVE_EXTRA_E_...]
NAME=58_5
COLOR=255,255,255,0.2
FALLBACK_HEADLIGHTS_COLOR=0,0,0
LAG = 0.5
SIMULATE_HEATING=0.5
LOCATION=FRONT
CAST_LIGHT=1

[SelfLight_Headlights]
MIRROR=0.06, 0, 0
POSITION=0, 1.25, -0.4
SPOT = 100
SPOT_SHARPNESS = 0
SPOT_EDGE = 10,10,10
SPOT_EDGE_SHARPNESS = 0.0
RANGE = 2
RANGE_GRADIENT_OFFSET = 0.0
COLOR = 52,52,30, 0.8
BOUND_TO = 58_5
DIRECTION = 0.1, -1, 0
FADE_AT = 20
FADE_SMOOTH = 20
AMBIENT_INFLUENCE = 1
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0


//////alter stuff////

[EXTRA_FX_EMISSIVE_...]
MESHES = 73_3,131,87,101        ; list of meshes
MATERIALS =       ; list of materials
DIGITAL_INSTRUMENTS = ?  ; filters for digital instruments (for most of them,
    ; names of sections in “digital_instruments.ini”), only for cars
RANGE = 0.1           ; range in meters (by default 0.08 for cars and 5 for tracks)
COLOR = 1             ; optional brightness multiplier (could be an RGBA value)
DIRECTED = 1             ; set for 0 for point light and 1 for directed light, or to 
    ; something in-between (by default guessed based on mesh shape)

; Optional optimization flags for cars:
INTERIOR_ONLY = 1        ; show up for interior views only
EXTERIOR_ONLY = 0        ; show up for exterior views only

; Optional advanced tweaks for more complex cases
EMISSIVE_TWEAK = 1       ; extra tonemapping for emissive color to balance things out
    ; (set to 0 to disable, set above 1 to further reduce effect or large emissive value)
MIP_BIAS = 0             ; MIP bias for texture (increase for smoother light)
IGNORE_TEXTURE_COLOR = 0 ; set to 1 to use COLOR and emissive color only

; Optional distribution settings (can affect performance):
COVERAGE = 3             ; samples density, by default 3 for cars and 2 for tracks (actual
    ; number of samples is controlled by mesh area, light range and coverage)
SAMPLES_LIMIT = 100      ; upper limit for number of samples to make sure generation won’t
    ; take huge amount of time, by default 400 for tracks
SPLIT_ELEMENTS = 0       ; split meshes into elements before generating samples, 
    ; by default 1 for tracks
SPLIT_THRESHOLD = …      ; set to something above 0 to weld vertices within that distance
    ; before splitting elements
NORMAL_SHIFT = 0         ; increase to move light producing samples away from surface alogn
    ; normals (use it if surroundings are too dark)
COVERED_BY = …           ; stop emissive if a mesh with given name is visible

[SCRIPTABLE_DISPLAY_...]
MESHES=131
KEEP_BACKGROUND=0
INTERACTIVE=0
FORCE_UPDATE_AFTER=0
SCRIPT=turn.lua

[EMISSIVE_LIGHT_111]
NAME=73_3
COLOR=1,1,1,1.78
OFF_COLOR=1,1,1,1.78                       
LOCATION=front                       ;Obvious
CAST_LIGHT=1                           ;Obvious
CLUSTER_THRESHOLD=0
LAG= 0

[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes = 73_3 ; display mesh
Resolution = 1050, 632 ; texture resolution
Size = 1000, 590        ; size of the screen area
Offset = 25, 20             ; left top corner of screen area
Scale = 1 ; might need adjusting to get the scale right
RearCameraPosition = 0, 0.25, -4  ; position of rear view camera
aftermarketComponent=1




























