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



;;;;;;;;; Data Replacement ;;;;;;;;; 
[DATA] 
DISABLE_LIGHTSINI = 1

[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

[PARTICLES_FX]
BODYSPARKS_AMOUNT=0.25
BODYSPARKS_INTENSITY=0.2
BODYSPARKS_LIFETIME=0.4
BODY_SPARKS_COLOR=1, 0.5, 0, 10
COLLIDER_0SPARKS_AMOUNT=0.25
COLLIDER_0SPARKS_INTENSITY=0.2
COLLIDER_0SPARKS_LIFETIME=0.4
COLLIDER_0_SPARKS_COLOR=1, 0.5, 0, 10
DRAG_MULT=2
INTERIOR_BOUNDS_CHECK=1
INTERIOR_BOUNDS_HEIGHT=0.644874
LIFT_MULT=0.1
SPARKS_AMOUNT_MULT=2
SPARKS_COOLDOWN_LAG=0.96
SPARKS_DEPTH_EXP=4
SPARKS_MAX_DEPTH=0.0025
SPARKS_OVERLOAD_LAG=0.7
TRACES_LIGHTS_POS=0.655593, 0.825127, -2.15187

[INSTRUMENTS]
FUEL_SPLASH_MULT=0
HAZARDS_G_THRESHOLD=1.5
SPEED_FIX=0.2
SPEED_LAG=0.1
SPEED_LIMIT=0

;;;;;;;;; Exterior PBR Shaders ;;;;;;;;; 
[TYRES_FX]
BROKEN_TYRES_DYNAMIC=1

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

[SHADOWED_WHEELS_REAR]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=0
DISTANCE=3
EXTRA_AMBIENT_BRIGHTNESS=0.12
OFFSET=0.04
WIDTH=0.1

[REFLECTIONS_FX]
ALLOW_INTERIOR_SSAO=0
ALLOW_INTERIOR_SSGI=0
AUTOFIX=1
MASK_CUBEMAP_ENABLED=1
MASK_CUBEMAP_OFFSET=0, -0.1, 0.2
MASK_CUBEMAP_TWEAK=0.5

[SMART_MIRROR]
DISALLOW_MAPPING_NORMALIZATION=0
DISALLOW_REAR_MIRROR=0
DISALLOW_REFLECTION_TILTING=0
SHAKING=0

[STATUS_BATTERY]
BASE_VOLTAGE=12.4
MAX_VOLTAGE=13.6
RPM_LAG=0.98

[STATUS_EXHAUST]
TEMPERATURE_BOOST=400
TEMPERATURE_IDLE=400
TEMPERATURE_LAG_DOWN=0.995
TEMPERATURE_LAG_UP=0.995
TEMPERATURE_RPM=100

[STATUS_OIL]
PRESSURE_BASE=1
PRESSURE_LAG_DOWN=0.9985
PRESSURE_LAG_UP=0.998
PRESSURE_STEP=0.7
TEMPERATURE_LAG_DOWN=0.995
TEMPERATURE_LAG_UP=0.995
TEMPERATURE_MULT=1
TEMPERATURE_OFFSET=0
TEMPERATURE_RPM_FACTOR=0.03

[BRAKEDISC_FX]
ACTIVE = 1   
REFRESH = 1          ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 1         ; use ceramic look
CARVED = 0              ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 0.72   ; 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
WEAR_FORCE = 0.6
;GLOW_FORCE = 0.0

[EXTRA_FX] ; Front + Taillights Glass Only
MASK_GBUFFER = mesh001, glassltl_a_SUB1, rear_emis

[EXTRA_FX] ; Front + Taillights Glass Only
SKIP_GBUFFER =glassrhl_a, run, high, low, 

[INCLUDE: common/materials_glass.ini]
ExteriorGlassFilmedMaterials= glass_ext 
ExteriorGlassTintedMaterials= 
ExteriorGlassHeadlightsMaterials =
[Material_PhotoelasticGlass]
Meshes= 

[Material_Glass]
Materials = glass_head
FilmIOR = 1.65
PhotoelasticityMult = 0
ProfileFix = 0
BrightnessAdjustment = 0.05
ThicknessMult = 1
MaskPass = 3
MaskPassColor = 0, 0, 0

[SHADER_REPLACEMENT_...] ; Tyres
MATERIALS = tyre
PROP_... = ksAmbient, 0.5
PROP_... = ksDiffuse, 0.4
PROP_... = fresnelEXP, 50
PROP_... = fresnelMaxLevel, 0.00
PROP_... = fresnelC, 0.00
PROP_... = ksSpecularEXP, 100
PROP_... = ksSpecular, 0.03

[Material_Metal]
Materials= rim1
Brightness = 15
Reflectance = 0.7
Metalness= 0.7
DetailScale = 0
Smoothness = 0.65
CubemapReflectionBlur= 0
OcclusionMult = 0.32



[EMISSIVE_HIGHBEAM_...]   ; HIGHBEAM
NAME = headlightl_a_SUB018
INPUT = LOW_BEAM
COLOR=6,6,7, 100
LAG = 0.8
LOCATION = FRONT
FALLBACK_HEADLIGHTS_COLOR=6,6,7, 20

[EMISSIVE_HIGHBEAM_...]   ; VRAY HIGHGLASS
NAME = high
INPUT = LOW_BEAM
CHANNEL = 0
COLOR=6,6,7, 20
LAG = 0.8
LOCATION = FRONT
FALLBACK_HEADLIGHTS_COLOR=6,6,7, 7

[EMISSIVE_HIGHBEAM_...]   ; VRAY HIGHGBEM
NAME = head01, headlightr_a_SUB10
INPUT = LOW_BEAM
CHANNEL = 1
COLOR=6,6,7, 15
LAG = 0.8
LOCATION = FRONT
FALLBACK_HEADLIGHTS_COLOR=6,6,7, 7


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

[EMISSIVE_...]      ; LOWBEAM GLASS
NAME = low
COLOR=6,6,7, 20
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS

[EMISSIVE_...]      ; LOWBEAM GLASS REAR
NAME = rear_emis
COLOR=15,0,-1, 10
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS

[EMISSIVE_...]      ; LOWBEAM
NAME = headlightl_a_SUB017
COLOR=6,6,7, 20
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS

[EMISSIVE_...]      ; LOWBEAM REAR
NAME = tail02
COLOR=15,0,-1, 10
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS

[EMISSIVE_...]      ; VRAY LOWBEAM
NAME = head01, headlightr_a_SUB10
COLOR=6,6,7, 20
LAG = 0.1
CHANNEL = 0
LOCATION = FRONT
INPUT = HEADLIGHTS


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

[EMISSIVE_...]      ; RUNNING
NAME = headlightl_a_SUB4
COLOR=6,6,7, 35
OFF_COLOR=6,6,7, 35
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS


[EMISSIVE_...]      ;  VRAY RUNNING
NAME = 
COLOR=6,6,7, 3.5
OFF_COLOR=6,6,7, 3.5
CHANNEL = 0
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS


[EMISSIVE_...]      ; VRAY RUNNING GLASS
NAME = run
COLOR=6,6,7, 15
OFF_COLOR=6,6,7, 15
LAG = 0.1
LOCATION = FRONT
INPUT = HEADLIGHTS


[EMISSIVE_...]           ; BRAKE
NAME=tail04
COLOR=15,0,-1, 50
INPUT=BRAKE


[LIGHT_REVERSE_...] ; Reverse Lights
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 1, 5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.775
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
POSITION=0.0, 0.663, -2.49
RANGE=4
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

[EMISSIVE_REVERSE_...] 
NAME = tail10, tail09, tail12
COLOR = 5,5,5, 50     
LAG = 0.2                  
SIMULATE_HEATING = 1       
LOCATION = REAR        
ACT_AS_HEADLIGHTS = 0 





[EMISSIVE_TURNSIGNAL_LEFT_...] 
NAME=tail17, 
COLOR=15,5,0, 50
LAG=0.7
SIMULATE_HEATING=0.7
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_...] 
NAME=wingmirrorl_a_SUB4, wingmirrorl_a_SUB3, Object002
COLOR=15,5,0, 10
LAG=0.7
SIMULATE_HEATING=0.7
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_...] 
NAME=tail00
COLOR=15,5,0, 50
LAG=0.7
SIMULATE_HEATING=0.7
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_...] 
NAME=wingmirrorr_a_SUB4, wingmirrorr_a_SUB5, Object001
COLOR=15,5,0, 10
LAG=0.7
SIMULATE_HEATING=0.7
LOCATION=FRONT




[LIGHT_BRAKE_...] ; Brakelights Both DRL/Brakelights are located inside this
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.181034, 0, 3
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -.5, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.649
MIRROR_DIRECTION=0
POSITION=0.0, 0.764, -2.54
RANGE=7
RANGE_GRADIENT_OFFSET=0.35
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=100
SPOT_EDGE=0.135, 0.135, 0.135
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4





[EMISSIVE_EXTRA_B_0]
BIND_TO_EXTRA_B=1
BIND_TO_HEADLIGHTS=0
NAME = 33, 034
COLOR=0,0,0.1,1         ; glowing color if condition is met
OFF_COLOR = 0,0,0         ; glowing color otherwise, default value is 0
LAG = 0.1                  ; with zero, turns on and off immediately
SIMULATE_HEATING = 0      ; adds heating effect, going through orange tint while turning on and off
LOCATION =FRONT             ; light location used for damage and light guessing, default value depends on type
ACT_AS_HEADLIGHTS = 0       ; if set to 1, emissiveness is raised when camera is caught in car’s headlights
TOGGLE_VISIBILITY=1
TOGGLE_VISIBILITY_INVERSE=1













--------------------------------ANIM



[ANIMATION_...]
INPUT = EXTRA_A           ; bind to reverse gear
FILE = roof_anim.ksanim   ; file name of new animation in “animations” folder
TIME = 5 
LAG_DN=0.996
LAG_UP=0.996                 
INPUT_AS_PROGRESS = 0       ; 
LOOP_WHILE_ACTIVE = 0       ; 
LOOP_KEEP_UNTIL_DONE = 1    ; 
AFFECTS_INTERIOR_SHAPE = 0  ; 



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


[EMISSIVE_TRACTIONCONTROL_INACTION_0]
COLOR=40,20,4,1
NAME=WarnLgt_TC
TOGGLE_VISIBILITY = 1
LAG=0.2

[EMISSIVE_TRACTIONCONTROL_0]
NAME=WarnLgt_TC_off
INPUT_EQUALS=1
TOGGLE_VISIBILITY = 1
COLOR=0
OFF_COLOR=20,10,0
LAG=0.2

[EMISSIVE_HANDBRAKE_0]
NAME=WarnLgt_Brake_warning
TOGGLE_VISIBILITY = 1
COLOR=40,4,4
LAG=0.2

[EMISSIVE_LIGHT_...]
NAME=WarnLgt_HB
BIND_TO_HEADLIGHTS=1
COLOR=0, 15, 0
LAG=0.2

[EMISSIVE_LIGHT_...]
NAME=steeringwheel_a_SUB2, doorcardlf_a_SUB3, dashstructure_a_SUB11, dashpad_a_SUB2, centerstackbezels_a_SUB2, centerstackbezels_a_SUB8, centerconsolebezels_a_SUB2
BIND_TO_HEADLIGHTS=1
COLOR=10, 10, 10
LAG=0.2

[EMISSIVE_LIGHT_...]
NAME=gaugecluster_a_SUB4,centerstackbezels_a_SUB5, Object020, Object019, Object018, Object017
BIND_TO_HEADLIGHTS=1
COLOR=5, 5, 5
LAG=0.2

[EMISSIVE_LIGHT_...]
NAME=cluster
BIND_TO_HEADLIGHTS=1
COLOR=5, 5, 5
OFF_COLOR = 5, 5, 5, 1
LAG=0.2


[EMISSIVE_HIGHBEAM_...]
NAME=WarnLgt_LB
COLOR=0, 0, 15
LAG=0.2

[EMISSIVE_...]
NAME=WarnLgt_Fuel
TOGGLE_VISIBILITY = 1
COLOR=40,20,4
INPUT=FUEL
INPUT_THRESHOLD = 15
INPUT_THRESHOLD_INVERSE = 1
LAG=0.2

[EMISSIVE_ABS_0]
NAME=WarnLgt_ABS
TOGGLE_VISIBILITY = 1
COLOR=0
OFF_COLOR=40,20,4
LAG=0.2

[EMISSIVE_...]
NAME=WarnLgt_Tyre
TOGGLE_VISIBILITY = 1
COLOR=40,20,4
INPUT=TYRE_PRESSURE
INPUT_THRESHOLD = 36
INPUT_SELECTOR=MAX
INPUT_SELECTOR_PIVOT=5
LAG=0.2


[STATUS_OIL]
; similar thing, overly simplified estimation for instruments
PRESSURE_BASE = 0.5         ; base oil pressure for idling engine
PRESSURE_STEP = 0.5        ; oil pressure increase for each 1000 RPM
PRESSURE_LAG_UP = 0.999     ; oil pressure increase lag
PRESSURE_LAG_DOWN = 0.999  ; oil pressure decrease lag

TEMPERATURE_MULT = 1.0        ; relation of oil temperature to water temperature
TEMPERATURE_RPM_FACTOR = 1.5  ; extra increase of oil temperature for each 1000 RPM
TEMPERATURE_LAG_UP = 0.999  ; oil temperature increase lag
TEMPERATURE_LAG_DOWN = 0.99967   ; oil temperature decrease lag

[ANALOG_INDICATOR_...]
INPUT = FUEL
INPUT_MAX = 8000
NAME = ARROW_FUEL
ZERO = -3
STEP = 1.2

[EMISSIVE_OIL_TEMP_...]
INPUT=OIL_TEMP
INPUT_THRESHOLD=95
NAME=WarnLgt_Check_engine
COLOR=40,20,4
OFF_COLOR=0
LAG=0.0
SIMULATE_HEATING=0
TOGGLE_VISIBILITY=1
INVERSE=1


[SHADER_REPLACEMENT_...]
MESHES = chasis04, ext_misc17, ext_misc23
CULL_MODE = DOUBLESIDED


[Material_Leather_v2]
Materials = leather_1
DetailScale = 40
DetailNormalTexture = common/pbr_leather_bumpy.dds
DetailNormalIntensity = 3
DetailNormalPBRSecondaryColor = 0.1, 0.1, 0.1, 0.2
Reflectance = 0.3
UseClothShading = 1
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.25


[Material_Velvet_v2]
Materials = misc_carpet
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.4
UseClothShading = 1
Reflectance = 0.3
DetailScale =30
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 2
ApplyTilingFix=1

[Material_Chrome]
Materials = int_chrome
Smoothness = 0.5
Metalness = 0.1
Reflectance = 0.1
BrightnessAdjustment = 0.2
CubemapReflectionBlur = 0.1



[Material_Leather_v2]
Materials = leather_2
DetailScale = 30
DetailNormalTexture = common/pbr_leather_bumpy.dds
DetailNormalIntensity = 3
DetailNormalPBRSecondaryColor = 0.1, 0.1, 0.1, 0.2
Reflectance = 0.3
UseClothShading = 1
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.55


[Material_Plastic_v2]
Materials = 
BrightnessAdjustment = 0.45
DetailScale = 0
Metalness = 0.45
Reflectance = 0.65
OcclusionMap = 0.2



[WIPERS_TRACE_...]
SURFACE = glassf_a_SUB1
WIPERS=ext_misc02, Mesh003

[ANIMATED_WIPER_...]
MESHES = ext_misc02, Mesh003
UNDERLYING_SURFACE = glassf_a_SUB1
DEBUG = 0 ; remove when everything is read

[MESH_ADJUSTMENT_...]
MESHES = ext_misc02, Mesh003
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1
[ANIMATED_WIPER_0]
DEBUG = 1
MESHES = ext_misc02, Mesh003
UNDERLYING_SURFACE = glassf_a_SUB1
GROUP_0 = 'ext_misc02@A=1-6'
GROUP_0_ANGLE_TO = 74.599998
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_BENDING_FROM = 0.002500
GROUP_0_BENDING_TO = 0.081500
GROUP_0_END = -0.755433, 0.834610, 0.889387
GROUP_0_PIVOT = 0.063544, 0.790557, 1.123647
GROUP_0_RUBBER_FROM = -0.174932, 0.807251, 1.009705
GROUP_0_RUBBER_OFFSET_AMOUNT = 0.016749
GROUP_0_RUBBER_OFFSET_POS = 0.579768
GROUP_0_RUBBER_TO = -0.744307, 0.824486, 0.883774
GROUP_0_BASE_ANGLE_FROM = 6.600000
GROUP_0_BASE_ANGLE_TO = 6.600000
GROUP_1 = 'Mesh003@A=*'
GROUP_1_ANGLE_TO = 78.400002
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.195384, 0.833702, 0.963013
GROUP_1_PIVOT = 0.592265, 0.744106, 0.997157
GROUP_1_RUBBER_FROM = 0.390367, 0.820727, 0.976430
GROUP_1_RUBBER_OFFSET_AMOUNT = 0.001800
GROUP_1_RUBBER_OFFSET_EXP = 1.934000
GROUP_1_RUBBER_OFFSET_POS = 0.478000
GROUP_1_RUBBER_TO = -0.224435, 0.856270, 0.964615


