; config was prepared automatically. source:
; https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/cars/kunos/bmw_1m.ini
[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[LIGHTING]
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=-0.06
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.05

[SMART_MIRROR]
; VISIBLE_FIRSTPERSON=TOP,LEFT,RIGHT

[EMISSIVE_REVERSE_0]
NAME=polymsh263_SUB1
COLOR=25, 25, 25
LAG=0.8
SIMULATE_HEATING=0.3

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=turn_rc
COLOR=0, 4, 0,3
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=COCKPIT
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=turn_lc
COLOR=0, 4, 0,3
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=COCKPIT
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=turn_lf
COLOR=50,50,0,0.9
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=FRONT
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=turn_lr
COLOR=50,50,0,0.9
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=turn_l
COLOR=50,50,0,0.9
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=LEFT
CAST_LIGHT=1


[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=turn_rf
COLOR=50,50,0,0.9
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=FRONT
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=turn_rr
COLOR=50,50,0,0.9
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=turn_r
COLOR=50,50,0,0.9
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=RIGHT
CAST_LIGHT=1


[BOUNCED_INTERIOR_LIGHT]
MULT=1,1,1,0.3
SPOT=23.7

[ODOMETER_MAIN]
DIGITAL_ITEM=2
DIGITAL_ITEM_NUMBER_FORMAT=07.0
UPPER_BOUND=9999999
; add zero to add leading zeros

[ODOMETER_TRIP]
DIGITAL_ITEM=3
DIGITAL_ITEM_NUMBER_FORMAT=06.1
UPPER_BOUND=9999

[BRAKEDISC_FX]
AMBIENT_MULT=0.6
REFLECTION_MULT=10
RIM_INTERNAL_RADIUS=0.06
SIMPLIFY_NORMALS_K=0.9
DISC_INTERNAL_RADIUS_SHARPNESS=250

[BRAKEDISC_FX_FRONT]
DISC_INTERNAL_RADIUS=0.111

[BRAKEDISC_FX_REAR]
DISC_INTERNAL_RADIUS=0.111

[EMISSIVE_OPENDOORS_0]
NAME=GEO_Cockpit_HR_SUB9
COLOR=8, 7.8, 3, 5
LAG=0.9
SIMULATE_HEATING=0

[DEFORMING_HOOD]
NAME=MOTORHOOD
OFFSET_Y_MIDDLE=0.06
OFFSET_Y_END=-0.06
OFFSET_Z_END=0.03
BULGING_EXTRA=0.2
BULGING_EXPONENT=2.0
NOISE_Y_AMPLITUDE=-0.16
NOISE_Z_AMPLITUDE=0.2
NOISE_Y_FREQENCY=5.0
NOISE_Z_FREQENCY=10.0
Z_FACTOR=3



[INCLUDE: android_auto/config.ini]

[Display_AndroidAuto]
Meshes = monitor ; display mesh
Resolution = 640,350 ; texture resolution
Size =640,350    ; size of the screen area
Offset = 0,0         ; left top corner of screen area
Scale = 1.1             ; might need adjusting to get the scale right
RearCameraPosition = 0, 0.75, -2.7  ; position of rear view camera
aftermarketComponent = 1


[CAR_STEREO_...]
; DYNAMIC_TEXTURE = tx_instruments
MESHES = polymsh259_SUB12
RESOLUTION = 1024, 1024
DISPLAY_POS = 490, 968
DISPLAY_SIZE = 530, 56
COLOR = '#FF3300'
BACKGROUND = 0, 0, 0, 1
FONT = digital_big

TEXT_0 = "{Artist} - {Track}"
TEXT_0_NOALBUM = "{Artist} - {Track}"
TEXT_0_NOARTIST = "{Track}"
TEXT_0_FALLBACK = "FM2 97.1"
TEXT_0_ALIGN = CENTER
TEXT_0_START = 8, 16
TEXT_0_LETTER = 20, 32
TEXT_0_LETTERS_LIMIT = $" floor((460 - 8 * 2) / 20) "

TEXT_1 = "{Time:%H:%M}"
TEXT_1_ALIGN = CENTER
TEXT_1_START = 460, 8
TEXT_1_LETTER = 10, 18
TEXT_1_LETTERS_LIMIT = 5

ANIMATION_0 = 6, 4
ANIMATION_0_START = 460, 28
ANIMATION_0_BLOCK = 5, 2
ANIMATION_0_MARGIN = 4, 3
ANIMATION_0_BASE_ROW = BOTTOM

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = LIVREA
CarPaintVersionAware = 2
DisableDev = 1

[Material_CarPaint_Metallic]

[INCLUDE: common/materials_glass.ini]
ExteriorGlassMaterials = VETRI_Texture,VETRI_Nero

[Material_Glass]
Materials = VETRI_Fanali
MaskPass = 1
Refraction = 1


[Material_Glass]
Materials = INT_Plaastica_NERA,GRIGLIA_NM
ThicknessMult = 2
FilmIOR=2

[Material_Glass]
Materials = ca1,RT_rim
ThicknessMult = 2
FilmIOR=2

[Material_Glass]
Materials = Chassis,PLASTICA_Nera_lucida
ThicknessMult = 2
FilmIOR=2


[EXTRA_FX]
MASK_GBUFFER = polymsh_detached105, polymsh_detached112

[INCLUDE: common/materials_license_plate.ini]
[Material_LicensePlate_Europe]

[SHADER_REPLACEMENT_...]
MESHES = polymsh65_SUB6
IS_TRANSPARENT = 0

[SHADER_REPLACEMENT_...]
MATERIALS = Chassis_METAL
PROP_... = fresnelMaxLevel, 1
PROP_... = fresnelEXP, 5
PROP_... = fresnelC, 0.5
PROP_... = ksSpecularEXP, 80
PROP_... = extExtraSharpLocalReflections, -0.001
DOUBLE_FACE_SHADOW_BIASED = 1

[SHADER_REPLACEMENT_...]
MATERIALS = RT_rim
PROP_... = extExtraSharpLocalReflections, -0.001
DOUBLE_FACE_SHADOW_BIASED = 1

[BRAKEDISC_FX_FRONT]
ALPHA_MASK = 0, 0
CARVED = 0
CERAMIC = 0
DEBUG = 0
LUMINOCITY_MASK = 0, 0

[EMISSIVE_EXTRA_A_...]
NAME=polymsh262_SUB1
COLOR=0,0,8,3
LAG=0.8
FALLBACK_HEADLIGHTS_COLOR=0,0,8,3
LAG=0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0


[LIGHT_EXTRA_55]
LINE_FROM=-0.9,0.6,0.8                ;(INTERIOR FOOT WELL GLOW) {Visible from outside only}
LINE_TO=0.42,0.6,0.8
BIND_TO_EXTRA_A=1
BIND_TO_HEADLIGHTS=1l
COLOR=0, 5, 20
DIFFUSE_CONCENTRATION=0.95
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.60
RANGE_GRADIENT_OFFSET=0.1
SPOT=250
SPOT_SHARPNESS=0.0
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=1
EXTERIOR_ONLY=0
INTERIOR_ONLY=1

[SHAKING_EXHAUST_...]
MESHES = polymsh65_SUB6
POINT_0 = -0.4, 0.28, -2.22
POINT_0_RADIUS = 0.5
POINT_0_EXP = 1.5
POINT_1 = 0.4, 0.28, -2.22
POINT_1_RADIUS = 0.5
POINT_1_EXP = 1.5











[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
DI3CHARGE_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=3.1 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=5; 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=5 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=80 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=5 ; 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=5 ; flame size
LIMITER_RPM_THRESHOLD=2000 ; limiter flames will not shoot below this rpm
