[INCLUDE:lights.ini]
[INCLUDE: common/selflighting.ini]
[INCLUDE: common/custom_emissive.ini]

[DATA] 
DISABLE_LIGHTSINI=1
DISABLE_ANALOGINSTRUMENTSINI=1

[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1

[AUDIO_VOLUME]
TURBO = 0.8

[BASIC]
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=20
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

[REFLECTIONS_FX]
MASK_GBUFFER = material:ext_window_fade, ext_stickers?, ext_badge_efini, material:ms01_logo, int_seat_logo, int_glass, material:int_text, material:int_radio_text, int_stalk_symbols

[SHADER_REPLACEMENT_...]
ACTIVE = 1
MATERIALS = ?
DOUBLE_FACE_SHADOW_BIASED = 1 

[SHADER_REPLACEMENT_...]
ACTIVE = 1
MESHES  = int_black, ext_black
CULL_MODE = DOUBLESIDED 

[DEFAULTS]
DisableDev = 1

[ODOMETER_TRIP]
DIGITAL_ITEM=1

[ODOMETER_MAIN]
DIGITAL_ITEM=0
UPPER_BOUND=999999

[LIGHTING]
EMISSIVE_MULT=2
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=0.4
INTERIOR_FAKE_UPPER_SHADOW_FADE=-0.1
INTERIOR_FAKE_SHADOW_OPACITY=0.43
INTERIOR_FAKE_SHADOW_HEIGHT=-0.1
INTERIOR_FAKE_SHADOW_FADE=0.1

[BOUNCED_INTERIOR_LIGHT]
ACTIVE=1

[BOUNCED_HEADLIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.4
GRADIENT_OFFSET=0.8
MULT=1, 1, 1, 1
OFFSET=7

;;EXHAUST
[PARTICLES_FX_EXHAUST_0]
POSITION=-0.509, 0.247, -2
DIRECTION=0.00,0,-1

[EXHAUST_FLAMES]
ANTILAG=0 ; turbo antilag, i havent tested this yet
ANTILAG_DELAY=0.0 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=10 ; flame size
ANTILAG_INTERVAL_MAX=5500
ANTILAG_INTERVAL_MIN=5000
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.01 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0 ; delay after throttle lift
DISCHARGE_DURATION=0.5 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=0.5; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=0.1; flame size
DISCHARGE_RPM_THRESHOLD_MAX=9000 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=6000 ; self explanatory
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=30
FLAT_SHIFT=1 ; on upshift
FLAT_SHIFT_COOLDOWN=0 ; after upshift
FLAT_SHIFT_DURATION=0.1 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=90 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=0.2 ; flame size
FLAT_SHIFT_PROBABILITY=0.5 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=0 ; 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

[SHAKING_EXHAUST_...]
MESHES = ext_exhaust
POINT_0 = -0.383, 0.24, -1.5
POINT_0_RADIUS = 1
POINT_0_EXP = 1
POINT_0_SCALE = 0.12, 0.3, 0.06

;;WIPERS

[WIPERS_TRACE_...]
SURFACE=ext_windows
WIPERS= ext_wiper00, ext_wiper02, ext_wiper09

;;BRAKES

[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 = 10  ; 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
DEBUG = 0
DISC_INTERNAL_RADIUS = 0.101
DISC_RADIUS = 0.16

ALPHA_MASK = 0

;;CLUSTER

[ANALOG_INDICATOR_...]
BIND_TO=SPEED
NAME=ARROW_SPEED
INPUT_LAG=0.5
SPEED_LAG = 0.2
LUT=(0=3|10=9.5|20=21.5|40=51.5|60=81|80=111|100=140.5|120=170.5|140=200|160=230.5|180=260.5)

[ANALOG_INDICATOR_...]
BIND_TO=RPM
NAME=ARROW_RPM
ZERO=0.000
MIN_VALUE=0
INPUT_LAG_DOWN=0.75
LUT=(0=3|500=11|1000=27|2000=58|3000=89|4000=118.5|5000=148|6000=177.5|7000=207.5|8000=238|9000=268.5)

[ANALOG_INDICATOR_...]
BIND_TO=FUEL
NAME=ARROW_FUEL
ZERO=0
MIN_VALUE=0
LUT=(0=0|76=68)

[ANALOG_INDICATOR_...]
BIND_TO=OIL_PRESSURE
NAME=ARROW_TURBO
ZERO=0
MIN_VALUE=0
LUT=(0=0|8=60)

[ANALOG_INDICATOR_...]
BIND_TO=WATER_TEMPERATURE
NAME=ARROW_TEMP
ZERO=0
MIN_VALUE=50
LUT=(0=0|50=6|120=66)

;;GLASS

[INCLUDE: common/materials_glass.ini]

[Material_Glass]
Meshes=int_glass
ExtraLightsAdjustment = 0.2  ; intensity of extra lights

[REFRACTING_HEADLIGHT_...]
SURFACE=ext_reflector_outer
INSIDE=ext_reflector_inner

ABSORPTION = 0.100000
AMBIENT_MULT = 0.250000
BASE_EMISSIVE_K = 0.050000
BOUNCED_BACK_MULT = 0.400000
BULB_BLUR_K = 2.000000
BULB_REFLECTION_K = 0.200000
CUSTOM_BULB_0 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_1 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_2 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_3 = 0.500000,0.500000,0.000000,0.000000
DIFFUSE_MAP_FILTER_MULT = 1.000000
DIFFUSE_MAP_MULT = 0.000000
DIRECTION = -0.000000,-0.000000,1.000025
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1.000000
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0.000000
F0 = 0.800000
GLASS_COLOR = 1.000000,0.000000,0.000000
GLASS_EMISSIVE_MULT = 0.250000
GLASS_EXTRA_THICKNESS = 0.005000
INNER_SPECULAR = 10.000000
INNER_SPECULAR_EXP = 800.000000
IOR = 2.000000
IOR_FLYOUT_FLAT = 0.000000
LOD_BIAS = -0.500000
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1.000000,0.000000,0.000000
MIRROR_POS = 0.000001,0.453853,-2.079643
NM_SHARE_EXT = 0.000000
NM_SHARE_INT = 0.700000
ORIGIN = 0.534378,0.453926,-2.120148
RADIUS = 0.129793
REFLECTIVENESS_DIFFUSE_MULT = 60.000000
REFLECTIVENESS_MULT = 10.000000
REFLECTIVE_GAMMA = 1.000000
REFRACTION_MASKING = 0
SIDE_FALLOFF = 2.000000
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1

[REFRACTING_HEADLIGHT_...]
SURFACE=ext_reflector_rear2
INSIDE=ext_reflector_rear2_inner

ABSORPTION = 0.100000
AMBIENT_MULT = 0.250000
BASE_EMISSIVE_K = 0.050000
BOUNCED_BACK_MULT = 0.400000
BULB_BLUR_K = 2.000000
BULB_REFLECTION_K = 0.200000
CUSTOM_BULB_0 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_1 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_2 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_3 = 0.500000,0.500000,0.000000,0.000000
DIFFUSE_MAP_FILTER_MULT = 1.000000
DIFFUSE_MAP_MULT = 0.000000
DIRECTION = -0.981699,-0.004181,0.190838
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1.000000
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0.000000
F0 = 0.800000
GLASS_COLOR = 1.000000,0.000000,0.000000
GLASS_EMISSIVE_MULT = 0.250000
GLASS_EXTRA_THICKNESS = 0.005000
INNER_SPECULAR = 10.000000
INNER_SPECULAR_EXP = 800.000000
IOR = 2.000000
IOR_FLYOUT_FLAT = 0.000000
LOD_BIAS = -0.500000
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1.000000,0.000000,0.000000
MIRROR_POS = 0.000000,0.460702,-1.708646
NM_SHARE_EXT = 0.000000
NM_SHARE_INT = 0.700000
ORIGIN = 0.810593,0.461085,-1.708139
RADIUS = 0.084967
REFLECTIVENESS_DIFFUSE_MULT = 60.000000
REFLECTIVENESS_MULT = 10.000000
REFLECTIVE_GAMMA = 1.000000
REFRACTION_MASKING = 0
SIDE_FALLOFF = 2.000000
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1



[REFRACTING_HEADLIGHT_...]
SURFACE=ext_f_reflectors
INSIDE=ext_reflector_front_inner

ABSORPTION = 0.1
AMBIENT_MULT = 0.720000
BASE_EMISSIVE_K = 0.050000
BOUNCED_BACK_MULT = 0.400000
BULB_BLUR_K = 2.000000
BULB_REFLECTION_K = 0.200000
CUSTOM_BULB_0 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_1 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_2 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_3 = 0.500000,0.500000,0.000000,0.000000
DIFFUSE_MAP_FILTER_MULT = 1.000000
DIFFUSE_MAP_MULT = 1.000000
DIRECTION = -0.906303,0.000618,-0.422623
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1.000000
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0.000000
F0 = 0.800000
GLASS_COLOR = 0.250000,0.250000,0.250000
GLASS_EMISSIVE_MULT = 0.250000
GLASS_EXTRA_THICKNESS = 0.005000
INNER_SPECULAR = 10.000000
INNER_SPECULAR_EXP = 800.000000
IOR = 2.000000
IOR_FLYOUT_FLAT = 0.000000
LOD_BIAS = -0.500000
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1.000000,0.000000,0.000000
MIRROR_POS = 0.000014,0.424383,1.745673
NM_SHARE_EXT = 0.000000
NM_SHARE_INT = 0.700000
ORIGIN = 0.847321,0.423309,1.759644
RADIUS = 0.083395
REFLECTIVENESS_DIFFUSE_MULT = 60.000000
REFLECTIVENESS_MULT = 10.000000
REFLECTIVE_GAMMA = 1.000000
REFRACTION_MASKING = 0
SIDE_FALLOFF = 2.000000
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1



;;PBR


[INCLUDE: common/materials_interior.ini]

;;int

[Material_Velvet_v2]
Materials = int_seat_suede
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 1
DetailScale = 30
ClothSheenColor = 1, 1, 1
BrightnessAdjustment = 0.2
ApplyTilingFix=1

[Material_Leather]
Materials = int_leatherdash
Brightness = 1.25
Reflectance = 0.1
;Smoothness = 0.1
DetailScale = 250
ApplyTilingFix=1
DetailNormalBlend = 0.5
CubemapReflectionBlur = 1

[Material_Leather]
Materials = int_leather_smooth
Brightness = 1.25
Reflectance = 0.15
Smoothness = 0.5
DetailScale = 200
ApplyTilingFix=1
DetailNormalBlend = 0.25
DetailNormalPBRSmoothnessGamma =0.5
CubemapReflectionBlur = 1

[Material_Plastic_v2]
Materials = int_plastic_rough, , int_plastic_smooth
Brightness = 1.4
DetailScale = 25
DetailNormalBlend = 0.65
Reflectance = 0.2
Smoothness = 0.5

[Material_Plastic_v2]
Materials = int_steer_plastic_rough
Brightness = 0.75
DetailScale = 5
DetailNormalBlend = 0.5
Reflectance = 0.05
Smoothness = 0.1


[Material_Plastic_v2]
Materials = int_seat_plastic_bump
Brightness = 2
DetailScale = 20
DetailTextureBlur = 1
DetailNormalBlend = 1
Reflectance = 0
Smoothness = 0.85
ApplyTilingFix=1

[Material_Plastic_v2]
Materials = int_seat_belt_buckle, int_plastic_smooth2, int_stalk_nm
Brightness = 2.2
DetailScale = 0
DetailTextureBlur = 1
Smoothness = 0
Metalness = 0.35
CubemapReflectionBlur=1
DetailNormalPBRSmoothnessGamma = 0.1

[Material_Plastic_v2]
Materials =int_stalk_nm
Brightness = 1
DetailScale = 0
DetailTextureBlur = 1
Smoothness = 0
Metalness = 0.35
CubemapReflectionBlur=1
DetailNormalPBRSmoothnessGamma = 0.1

[Material_LeatherPoked_v2]
Materials = int_steer_spotted
Brightness = 0.5
DetailTextureBlur = 1
DetailNormalBlend = 1
DetailScale = 4
ApplyTilingFix=1
Reflectance = 0.1
;Smoothness = 0.3

[Material_Leather]
Materials = int_steer_leather_smooth
ColorSource = DIFFUSE
Brightness = 0.6
DetailTextureBlur = 0.8
DetailNormalBlend = 0.3
DetailScale = 40
ApplyTilingFix=1
Reflectance = 0.1
;Smoothness = 0.3

[Material_Leather]
Materials = int_steer_leather
ColorSource = DIFFUSE
Brightness = 0.7
DetailTextureBlur = 1
DetailNormalBlend = 0.5
DetailScale = 40
ApplyTilingFix=1
Reflectance = 0.1
Smoothness = 0.1

[Material_Aluminium_v2]
Materials = int_chrome

[Material_Aluminium]
Materials = int_metal, int_pedals_alu

[Material_Plastic]
Materials = int_seat_carbon
Brightness = 0.8
DetailScale = 250
Reflectance = 0.1
Smoothness = 0.8

[Material_Aluminium_v2]
Materials = int_steer_metal
ApplyTilingFix=1
Brightness = 0.5
DetailScale = 5
CubemapReflectionBlur = 1
Reflectance = 0.25
Metalness=0.25

[Material_Aluminium_v2]
Materials = int_steer_bolts
DetailScale = 0
CubemapReflectionBlur=1

[Material_Plastic_v2]
Materials = int_steer_plastic
DetailScale = 10
Brightness = 0.7

[Material_Plastic_v2]
Materials = int_rubber
DetailScale = 0
Brightness = 0.7


;;ext


[Material_Metal_v2]
Materials = ext_exhaust
DetailScale = 0
Reflectance = 0.5
Metalness=0.5
Brightness = 0.7

[Material_Aluminium_v2]
Materials = ext_chrome
DetailScale = 0

[Material_Aluminium_v2]
Materials = ext_ms01_chrome
DetailScale = 0
Brightness = 0.5
Reflectance = 0.5
Metalness=0.5

[Material_Aluminium_v2]
Materials = ext_ms01_gold
DetailScale = 20
Reflectance = 0.3
Metalness=0.5

[Material_Plastic_v2]
Materials = ext_ms01_plastic
DetailScale = 0
CubemapReflectionBlur=1
Brightness = 0.8

[Material_Plastic_v2]
Materials = ext_plastic, ext_wiper, ext_popup_plastic
DetailScale = 0
CubemapReflectionBlur=1
Brightness = 1
ColorSource = DIFFUSE

[Material_Plastic_v2]
Materials = ext_rubber, ext_wiperblade
DetailScale = 0
CubemapReflectionBlur=1
Brightness = 0.7
ColorSource = DIFFUSE
Reflectance = 0.2

[SHADER_REPLACEMENT_...]
MATERIALS=int_plastic_dots
BLEND_MODE = ALPHA_TEST

[ANIMATION_0]
FILE=lights.ksanim
TIME=0.5
BIND_TO_EXTRA_B=1
TICK_TOCK_MODE=0
LOOP_KEEP_UNTIL_DONE=1
LOOP_WHILE_ACTIVE=0

[INCLUDE: common/materials_carpaint.ini]
[Material_CarPaint_Solid]
CarPaintMaterial = ext_carpaint
BrightnessAdjustment = 0.7

[Material_CarPaint_Metallic]
Materials=ext_ms01_rim

[Material_Metal_v2]
Materials = ext_plate_screws
DetailScale = 1
DetailNormalBlend = 1
CubemapReflectionBlur=1
Brightness = 0.5
Metalness = 0.1
Reflectance = 0.1
DetailNormalTexture = Plate_NM.dds
