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



[Material_PhotoelasticGlass]
Meshes = Glass001, 
FilmIOR = 3.92
PhotoelasticityMult = 0.3  ; doesn’t look good if too high
ThicknessMult = 1.5
BrightnessAdjustment = 0.31
ExtraLightsAdjustment = 0.065
; 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 = 0.0005     ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.0008  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.0000325   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.024  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 3.5   ; how many stripes are there
ProfileFix = 0.02


[SelfLight_Headlights]
MIRROR = 0.731
DIRECTION = 0, 0,1
POSITION = 0.0, 0.689, 2.11
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = Light
SPOT_SHARPNESS =0.0
SPOT = 120
COLOR =10,10,10,10
SPECULAR_MULT = 0
RANGE = 0.45

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = CSR2_CarPaint

[Material_CarPaint_Chameleon]
Skins = 10dark_red, 11bright, 12garnet
BaseSpecularColor = 0.44, 0, 0.00  ; specular color
FresnelMax = 1
FresnelC = 0.1
AmbientSpecular = 0.3
SpecularBase = 1, 50
SpecularSun = 4, 550
SunMultiplier = 2
BrightnessAdjustment = 0.9
ChameleonColorA = 0.05, 0.026, 0.05, 0.1
ChameleonColorB = 0.25,1.15,0.05, 0.9
ChameleonExponent = 0.7
ChameleonCenter = 0.8
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.4
ApplyTilingFix=1
UseDiffuseAlphaAsChameleonMask = 1
FlakesK = 1.8

[Material_CarPaint_Chameleon]
Skins = 8golden, 9cream, 
ChameleonColorA = #D1D1D1, 0.25
ChameleonColorB = #2BA5CE, 0.4
ChameleonExponent = 0.2
ChameleonCenter = 0.5
BrightnessAdjustment = 0.79
FlakesK = 1.8

[Material_CarPaint_Chameleon]
Skins = 1white, 2black, 3dark_blue, 7dark_yellow
ChameleonColorA = #D1D1D1, 0.25
ChameleonColorB = #2BA5CE, 0.4
ChameleonExponent = 0.2
ChameleonCenter = 0.2
BrightnessAdjustment = 0.59
FlakesK = 1.8


[Material_CarPaint_Chameleon]
Skins = 4light_blue
BaseSpecularColor = 0.10, 0.10, 0.35  ; specular color
FresnelMax = 1
FresnelC = 0.1
AmbientSpecular = 1.13
SpecularBase = 5, 150
SpecularSun = 4, 550
SunMultiplier = 02
BrightnessAdjustment = 0.5
ChameleonColorA = 0.05, 0.05, 0.35, 0.21
ChameleonColorB = 0.35,0.35,0.55, 0.9
ChameleonExponent = 0.7
ChameleonCenter = 0.18
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.2
ApplyTilingFix=1
UseDiffuseAlphaAsChameleonMask = 1
FlakesK = 2.8

[Material_CarPaint_Chameleon]
Skins = 5dark_green, 6light_green
ChameleonColorA = #D1D1D1, 0.25
ChameleonColorB = #2BA5CE, 0.4
ChameleonExponent = 0.2
ChameleonCenter = 0.2
BrightnessAdjustment = 0.59
FlakesK = 1.8

[Material_CarPaint_Chameleon]
Skins = 13gray, 10_special, 10_special2
BaseSpecularColor = 0.34, 0.34, 0.35  ; specular color
FresnelMax = 1
FresnelC = 0.1
AmbientSpecular = 0.3
SpecularBase = 1, 150
SpecularSun = 114, 550
SunMultiplier = 2
BrightnessAdjustment = 0.9
ChameleonColorA = 0.15, 0.15, 0.15, 0.21
ChameleonColorB = 0.25,0.25,0.25, 0.2
ChameleonExponent = 0.7
ChameleonCenter = 0.8
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.2
ApplyTilingFix=1
UseDiffuseAlphaAsChameleonMask = 1
FlakesK = 2.8

[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


[Material_Metal_v2]
Materials= CSR2_SpecularTint, rim
BrightnessAdjustment = 0.4
DetailScale = 600
Metalness = 0.7
Reflectance = 0.5
LocalReflectionsSharpness = -2.6
ApplyTilingFix=1

[Material_Metal_v2]
Materials= ex_ao
BrightnessAdjustment = 14
DetailScale = 600
Metalness = 1
Reflectance = 0.5
LocalReflectionsSharpness = -2.6
ApplyTilingFix=1



[FAKE_SHADOWS_FX]
DISALLOW_REBAKING = 0 ; set to 1 to prevent CSP from generating new fake shadows (not recommended)
CUSTOM_SKIN_SHADOWS = 0 ; change to 1 to make CSP cache shadows for different skins separately (could be
                        ; used in single skin’s extension config), for skins with custom geometry
EXCLUDE_FROM_BAKING = material:win ; list of nodes and meshes to exclude from baking


[EMISSIVE_LIGHT_1]
NAME=Interior004.001, Interior004.002, Interior004.003, Interior004.004, InteriorZone003, Object008, InteriorEmissive, Interior004.005, InteriorZone003.001,  Grille7,
COLOR=0,0,20,5
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_2]
NAME=Interior004.005, InteriorZone003.001, Object003,
COLOR=0,0,20,2.5
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_3]
NAME=Badge
COLOR=20,20,20,0.01
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_4]
NAME=Plane, 
COLOR=10,10,10,0.1
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_5]
NAME=plateus_c.001,
COLOR=10,10,10,0.0025
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_6]
NAME= Glass001_SUB0.001,
COLOR=0,0,20,3.5
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_7]
NAME= asco_lip.001,
COLOR=255,255,255,0.8
LAG=0.4
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5


[LIGHT_EXTRA_...] ; Interior Ambient Lighting (Cluster, Doors, Pedals, Navigation, Rear Seats)
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=20,20,40,2
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=1.5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.329, 0.956, 0.65
DIRECTION=0,0,-1
RANGE=.35
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...] ; Interior Ambient Lighting (Cluster, Doors, Pedals, Navigation, Rear Seats)
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=20,20,40,2
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=1.5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=-0.0286, 0.99999, 0.376
DIRECTION=0,0,1
RANGE=.35
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...] ; Interior Ambient Lighting (Cluster, Doors, Pedals, Navigation, Rear Seats)
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=0,0,20,2
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=1.5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.0, 1.45, -0.0
DIRECTION=0,-1,0
RANGE=1.95
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...] ; Interior Ambient Lighting (Cluster, Doors, Pedals, Navigation, Rear Seats)
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=0,0,20,10
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=1.5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.0, 1.45, -0.75
DIRECTION=0,-1,0
RANGE=1.95
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=120
SPOT_SHARPNESS=0


[INCLUDE: android_auto/config.ini] 
[Display_AndroidAuto]
Meshes = Plane,
Resolution = 640, 320
Size = 640, 320
Offset = 0, 0
Scale = 2
RearCameraPosition = 0, 0, 0
aftermarketComponent = 1


[EMISSIVE_BRAKE_...]
NAME= Glass, GlassInside.001,
COLOR=50, 0, 0, 5
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR=50, 0, 0, 5
INPUT = BRAKE
INPUT_THRESHOLD = 0.7
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 4 ; sets frequency for blinking
 
[EMISSIVE_BRAKE_...] ; Emergency Flash
NAME= GlassInside
COLOR=50, 0, 0, 0.1
CAST_LIGHT=0
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 0, 0, 0.1
FALLBACK_HEADLIGHTS_COLOR =50, 0, 0.1
INPUT = BRAKE
INPUT_THRESHOLD = 0.95
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 5 ; sets frequency for blinking


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


[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=40 ; flame size
ANTILAG_INTERVAL_MAX=9000
ANTILAG_INTERVAL_MIN=2000
ANTILAG_TURBO_THRESHOLD=0.5
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.001 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.1 ; delay after throttle lift
DISCHARGE_DURATION=5 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=30; flame size
DISCHARGE_RPM_THRESHOLD_MAX=9000 ; 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=1 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=1 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=15 ; flame size
FLAT_SHIFT_PROBABILITY=1 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=8500
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=8 ; flame size
LIMITER_RPM_THRESHOLD=2000 ; limiter flames will not shoot below this rpm

[EMISSIVE_EXTRA_A_0] 
BIND_TO_EXTRA_A=1
BIND_TO_HEADLIGHTS=0
NAME=RaceSmokie
COLOR=0,0,1,1
OFF_COLOR=0,0,0
LAG=0.1
SIMULATE_HEATING=0
LOCATION=FRONT
ACT_AS_HEADLIGHTS=0  
TOGGLE_VISIBILITY=1    
TOGGLE_VISIBILITY_INVERSE=1

[PARTICLES_FX_EXHAUST_FLAMES]
COLOR_MULT=0.8, 0.5, 1.0, 1.0
INTENSITY_MULT=1
SIZE_MULT=2.15
TEMPERATURE_MULT=2.0


[Material_Aluminium_v2]
Meshes = Paint
BrightnessAdjustment = 0.80
ClearCoatF0 = 0.25
DetailScale = 1500
DetailNormalBlend = 1
Metalness = 1.00
Reflectance = 0.1