[INCLUDE:pbr.ini]
[INCLUDE:lights.ini]
[INCLUDE:animations.ini]
[INCLUDE: common/materials_glass.ini]
[INCLUDE: common/materials_interior.ini]

[DATA]
DISABLE_LIGHTSINI=1

[BASIC]
IS_LOW_BEAM_AVAILABLE = 1

;sounds
[AUDIO_PROPERTIES]
TURBO_THROTTLE=1

[AUDIO_VOLUME]
ENGINE_EXT=1.0
ENGINE_EXT=0.8
WIND=0.4

[AUDIO_PITCH]
SKID_EXT = 0.65
SKID_INT = 0.6   

[ODOMETER_MAIN]
DIGITAL_ITEM=1
UPPER_BOUND=999999

[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]
COLOR=0.7, 0.75, 0.9, 0.2

[PARTICLES_FX_EXHAUST_0]
POSITION=0.355, 0.315, -2.22
DIRECTION=0.05,0,-1

[PARTICLES_FX_EXHAUST_1]
POSITION=0.441, 0.315, -2.22
DIRECTION=0.05,0,-1

// BRAKES

[BRAKEDISC_FX_FRONT]
ACTIVE = 1
DISC_INTERNAL_RADIUS = 0.101
DISC_RADIUS = 0.162
GLOW_OFFSET=1.2

[BRAKEDISC_FX_REAR]
ACTIVE=1
DISC_INTERNAL_RADIUS=0.110
DISC_RADIUS=0.162
GLOW_OFFSET=0.9

[BRAKEDISC_FX]
CERAMIC=0
CARVED=0
CARVED_FREQUENCY=0
ALPHA_MASK=0.0, 0.3
LUMINOCITY_MASK=0.15, 0.2
OVERRIDE_NORMAL_MAP=0

DEBUG = 0
WEAR_FORCE = 0.3
;GLOW_FORCE = 1.6


[SHADER_REPLACEMENT_...]
MESHES = ext_reflector_b
PROP_... = extBounceBack, 2.4

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

[SHADER_REPLACEMENT_...]
MESHES=ext_windows, int_windows, ext_backface
DOUBLE_FACE_SHADOW_BIASED = 0

[REFLECTIONS_FX]
MASK_GBUFFER = int_cluster_glass, RIM_LF_SUB4, RIM_LR_SUB4, RIM_RF_SUB4, RIM_RR_SUB4, int_shift_detail2, int_detailb, int_details2a, ext_nissan, caliper_LF_2, caliper_LR_2, caliper_RF_2, caliper_RR_2, ext_xenon, int_details2b, int_steer_detail, int_shift_detail1, int_shift_stitches, int_details2b, int_details2c, INT_stitching, INT_steer_stitching, int_safety_stickers, int_details3b, int_leather_2, ext_windows, ext_quater_windows, int_shift_detail003 

// PBR
;int
[Material_Carpet_v2]
Materials = INT_floor_mats
BrightnessAdjustment = 0.14
DetailNormalBlend = 60
Smoothness = 0.1
OcclusionMap = -0.01, 1
DetailScale = 60


[SHADER_REPLACEMENT_...]
MATERIALS = INT_leather
PROP_... =ksAmbient,0.1
PROP_... =ksDiffuse,0.14
PROP_... =ksSpecular,0.06
PROP_... =ksSpecularEXP,20
PROP_... =fresnelC,0.05
PROP_... =fresnelEXP,3.2
PROP_... =fresnelMaxLevel,0.08
PROP_... =detailUVMultiplier,80
PROP_... =detailNormalBlend,0.76
PROP_... = ksAlphaRef, -193

[SHADER_REPLACEMENT_...]
MATERIALS = int_steering_leather
PROP_... =ksAmbient,0.1
PROP_... =ksDiffuse,0.14
PROP_... =ksSpecular,0.06
PROP_... =ksSpecularEXP,20
PROP_... =fresnelC,0.01
PROP_... =fresnelEXP,3.2
PROP_... =fresnelMaxLevel,0.03
PROP_... =detailUVMultiplier,10
PROP_... =detailNormalBlend,1

[SHADER_REPLACEMENT_...]
MATERIALS = int_steer_leather_sm
PROP_... =ksAmbient,0.1
PROP_... =ksDiffuse,0.14
PROP_... =ksSpecular,0.06
PROP_... =ksSpecularEXP,20
PROP_... =fresnelC,0.01
PROP_... =fresnelEXP,3.2
PROP_... =fresnelMaxLevel,0.03
PROP_... =detailUVMultiplier,15
PROP_... =detailNormalBlend,1

[SHADER_REPLACEMENT_...]
MATERIALS = INT_fabric, INT_carpet
PROP_... = ksAlphaRef, -193

[SHADER_REPLACEMENT_...]
MATERIALS = INT_plastic_smooth, INT_detail3b
PROP_... =ksAmbient,0.08
PROP_... =ksDiffuse,0.1
PROP_... =ksSpecular,0.06
PROP_... =ksSpecularEXP,20
PROP_... =fresnelC,0.01
PROP_... =fresnelEXP,3.2
PROP_... =fresnelMaxLevel,0.03

[SHADER_REPLACEMENT_...]
MATERIALS = int_mfd
PROP_... =ksAmbient,0.0
PROP_... =ksDiffuse,0.0
PROP_... =ksSpecular,0.1
PROP_... =ksSpecularEXP,130
PROP_... =fresnelC,0.04
PROP_... =fresnelEXP,5
PROP_... =fresnelMaxLevel,0.06
PROP_... =isAdditive,2
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,600
PROP_... =detailNormalBlend,3
PROP_... =sunSpecular,0.6
PROP_... =sunSpecularEXP,500

[SHADER_REPLACEMENT_...]
MATERIALS = INT_metal
PROP_... =ksAmbient,0.1
PROP_... =ksDiffuse,0.1
PROP_... =ksSpecular,1
PROP_... =ksSpecularEXP,50
PROP_... =fresnelC,0.4
PROP_... =fresnelEXP,3.5
PROP_... =fresnelMaxLevel,0.6
PROP_... =isAdditive,0
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,600
PROP_... =detailNormalBlend,3
PROP_... =sunSpecular,0.6
PROP_... =sunSpecularEXP,500


[SHADER_REPLACEMENT_...]
MATERIALS = INT_Detail_1
PROP_... =ksAmbient,0.2
PROP_... =ksDiffuse,0.2
PROP_... =ksSpecular,0.4
PROP_... =ksSpecularEXP,30
PROP_... =fresnelC,0.4
PROP_... =fresnelEXP,3.5
PROP_... =fresnelMaxLevel,0.6
PROP_... =isAdditive,1
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,1
PROP_... =detailNormalBlend,3
PROP_... =sunSpecular,0.6
PROP_... =sunSpecularEXP,500

[SHADER_REPLACEMENT_...]
MATERIALS = INT_brushed_metal 
PROP_... = ksAmbient,0.27
PROP_... = ksDiffuse,0.32
PROP_... = fresnelEXP, 1
PROP_... = fresnelMaxLevel, 0.5
PROP_... = fresnelC, 0.4
PROP_... =isAdditive,0
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,10
PROP_... =detailNormalBlend,0.11
PROP...=sunSpecular,0.3
PROP...=sunSpecularEXP,500
BLEND_MODE = ALPHA_TEST

;ext
[Material_Carbon]
Materials = EXT_carbon
BrightnessAdjustment = 0.15
DetailTexture = Carbon_C.dds
DetailNormalTexture = Carbon_N.dds
DetailNormalPBRSmoothnessGamma = 0.04
DetailNormalBlend = 3
ClearCoatF0 = 0.2
DetailScale = 300

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Exhaust_chrome
PROP_... =ksAmbient,0.24
PROP_... =ksDiffuse,0.45
PROP_... =ksSpecular,3
PROP_... =ksSpecularEXP,80
PROP_... =fresnelC,0.7
PROP_... =fresnelEXP,1.5
PROP_... =fresnelMaxLevel,0.8
PROP_... =isAdditive,0
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,80
PROP_... =detailNormalBlend,0.1
PROP_... =sunSpecular,0.6
PROP_... =sunSpecularEXP,500

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_HEADLIGHT_LOWBEAM_EM
PROP_... =ksAmbient,0.1
PROP_... =ksDiffuse,0.1
PROP_... =ksSpecular,3
PROP_... =ksSpecularEXP,350
PROP_... =fresnelC,0.3
PROP_... =fresnelEXP,6
PROP_... =fresnelMaxLevel,0.8
PROP_... =isAdditive,0
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,1
PROP_... =detailNormalBlend,4
PROP_... =sunSpecular,0.6
PROP_... =sunSpecularEXP,500

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_HEADLIGHT_HIBEAM
PROP_... =ksAmbient,0.1
PROP_... =ksDiffuse,0.1
PROP_... =ksSpecular,3
PROP_... =ksSpecularEXP,350
PROP_... =fresnelC,0.5
PROP_... =fresnelEXP,6
PROP_... =fresnelMaxLevel,0.8
PROP_... =isAdditive,0
PROP_... =useDetail,1
PROP_... =detailUVMultiplier,1
PROP_... =detailNormalBlend,1
PROP_... =sunSpecular,0.1
PROP_... =sunSpecularEXP,500

[SHADER_REPLACEMENT_...]
MATERIALS = Tyre
PROP_... = ksAmbient, 0.16
PROP_... = ksDiffuse, 0.2
PROP_... = fresnelMaxLevel, 0.03

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_met_plastic
PROP_... = ksAmbient,0.2
PROP_... = ksDiffuse,0.3
PROP_... = fresnelEXP, 3
PROP_... = fresnelMaxLevel, 0.3
PROP_... = fresnelC, 0.4

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_badges
PROP_...=ksAmbient,0.26
PROP_...=ksDiffuse,0.3
PROP_...=ksSpecular,1
PROP_...=ksSpecularEXP,50
PROP_...=fresnelC,0.6
PROP_...=fresnelEXP,1.5
PROP_...=fresnelMaxLevel,0.8
PROP_...=isAdditive,2
PROP_...=useDetail,1
PROP_...=detailUVMultiplier,50
PROP_...=sunSpecular,0.3
PROP_...=sunSpecularEXP,500


[SHADOWED_WHEELS_FRONT]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=0
DISTANCE=5
EXTRA_AMBIENT_BRIGHTNESS=0.04
OFFSET=0.04
WIDTH=0.14

AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=0
DISTANCE=5
EXTRA_AMBIENT_BRIGHTNESS=0.04
OFFSET=0.04
WIDTH=0.14

;glass
[Material_PhotoelasticGlass]
Meshes = ext_headlight_glass
ExtraLightsAdjustment = 0.01
IOR = 2.2
PhotoelasticityMult = 0.3

[Material_Glass]
Materials = EXT_WINDOWS
IOR = 3.2
ThicknessMult = 0.26
MaskPass = 4

[Material_Glass]
Materials = EXT_QUATER_WINDOWS
IOR = 2.8
ThicknessMult = 3.8
MaskPass = 4

[Material_Glass]
Materials = int_glass
IOR = 2.8

[Material_Glass]
Materials = int_rev_light
IOR = 3.8
ExtraLightsAdjustment = 0.03
Refraction = 1
Desaturate = 0
ThicknessMult = 4
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 100
MaskPass = 100           ; mask pass opacity
MaskPassColor = 100, 100, 100  ; mask pass color adjustment

[Material_Glass]
Materials = ext_reflector_glass
IOR = 2
ExtraLightsAdjustment = 0.01
Refraction = 0
Desaturate = 0
ThicknessMult = 3
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 100
MaskPass = 100           ; mask pass opacity
MaskPassColor = 70, 1, 1  ; mask pass color adjustment

[CAR_STEREO_...]
MESHES = int_radio
RESOLUTION =400,200
DISPLAY_POS = -10,0.8
DISPLAY_SIZE = 450, 320
BACKGROUND = 0.50, 0.60, 0.57, 0.5
FONT = digital_big

TEXT_0 = "{Artist} - {Track}"
TEXT_0_NOALBUM = "{Artist} - {Track}"
TEXT_0_NOARTIST = "{Track}"
TEXT_0_FALLBACK = "FM 107.9"
TEXT_0_ALIGN = CENTER
TEXT_0_COLOR=0.1,0.1,0.1,4
TEXT_0_START = 24.5, 46
TEXT_0_LETTER = 20.7, 64
TEXT_0_LETTERS_LIMIT = $" floor((512 - 26 * 2) / 24) "

TEXT_1 = "{Time:%p %I:%M}"
TEXT_1_ALIGN = CENTER
TEXT_1_START = 26, 160
TEXT_1_COLOR=0.1,0.1,0.1,4
TEXT_1_LETTER = 12, 28
TEXT_1_LETTERS_LIMIT = 8

ICON_0 = @SOURCE
ICON_0_FALLBACK = SPOTIFY
ICON_0_START = 152, 164 
ICON_0_SIZE = 15, 18
ICON_0_MARGIN = 1, 1
ICON_0_COLOR=0.1,0.1,0.1,4

ANIMATION_0 = 10, 4
ANIMATION_0_START = 90, 80
ANIMATION_0_BLOCK = 20, 8
ANIMATION_0_MARGIN = 4, 4
ANIMATION_0_COLOR=0.1,0.1,0.1,4
ANIMATION_0_BASE_ROW = BOTTOM

[EXTRA_FX]
GLASS_FILTER = int_radio_disp

[ANALOG_INDICATOR_...]
BIND_TO=OIL
NAME=ARROW_OIL_PRESSURE
MIN_VALUE=-270
MAX_VALUE=270
INPUT_LAG_UP=0
INPUT_LAG_DOWN=0
LUT=(0=0|1.77=-23|2=-30|4=-54|5=-65|6=-77|6.44=-81)
USE_BAR=1

[SCRIPTABLE_DISPLAY_...]
ACTIVE= $" read('csp/version', 0) >= 1709 "
MESHES = int_mfd
RESOLUTION = 1024,512
DISPLAY_POS = 15,0   
DISPLAY_SIZE = 990, 540
SKIP_FRAMES = 6
SCRIPT = MFD.lua