----------- Includes -----------

[INCLUDE: common/custom_emissive.ini]
[INCLUDE: common/selflighting.ini]
[INCLUDE: common/no_popup_lights.ini]
[INCLUDE: refractions.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/materials_glass.ini]
[INCLUDE: pbr.ini]
[INCLUDE: common/navigators.ini]
[INCLUDE: navigators_mixins.ini]

[DATA] 
DISABLE_LIGHTSINI=1

----------- Refractions -----------

[REFRACTING_HEADLIGHT_...]
SURFACE=EXT_Headlight_DRL1_Refrac
INSIDE=BULB_DRL1

ABSORPTION = 0.048
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 1
BOUNCED_BACK_MULT = 0.3
BULB_BLUR_K = 4
BULB_REFLECTION_K = 0
CUSTOM_BULB_0 = 1.1,0.642,0.753,1
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.358,0.469,0.049,0
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 1
DIRECTION = -0.64209294,-0.026725808,-0.76614004
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 18.5
EXTRA_GLASS_COLORIZATION = 0
EXTRA_SIDE_THICKNESS = 0
F0 = 0.43
GLASS_COLOR = 0.5770211,0.5769634,0.5769634
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 7.9
INNER_SPECULAR_EXP = 800
IOR = 1.36
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,-0,7e-06
MIRROR_POS = -0,-0.000291,-0.000235
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.64
ORIGIN = 0.9027691,0.58345336,2.3439035
RADIUS = 0.19780001
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 9.6
REFLECTIVE_GAMMA = 0.3
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.33
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1
RESOLUTION_MULT = 4
SYNC_EMISSIVE_AUTO=1

[REFRACTING_HEADLIGHT_...]
SURFACE=EXT_Headlight_DRL2_Refrac
INSIDE=BULB_DRL2

ABSORPTION = 0.048
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 1
BOUNCED_BACK_MULT = 0.3
BULB_BLUR_K = 4
BULB_REFLECTION_K = 0
CUSTOM_BULB_0 = 1.1,0.642,0.753,1
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.358,0.469,0.049,0
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 1
DIRECTION = -0.13852583,-0.026828062,-0.9899954
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.8
EXTRA_GLASS_COLORIZATION = 0
EXTRA_SIDE_THICKNESS = 0
F0 = 0.43
GLASS_COLOR = 0.5770211,0.5769634,0.5769634
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 7.9
INNER_SPECULAR_EXP = 800
IOR = 1.36
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,-0,7e-06
MIRROR_POS = -0,-0.000291,-0.000235
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.64
ORIGIN = 0.6410942,0.52061266,2.3438783
RADIUS = 0.13710001
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 9.6
REFLECTIVE_GAMMA = 0.3
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.33
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1
RESOLUTION_MULT = 4
SYNC_EMISSIVE_AUTO=1

[REFRACTING_HEADLIGHT_...]
SURFACE=EXT_Headlight_Highbeamglass_Refrac
INSIDE=BULB_Highbeam

ABSORPTION = 0.048
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 1
BOUNCED_BACK_MULT = 0.3
BULB_BLUR_K = 4
BULB_REFLECTION_K = 0
CUSTOM_BULB_0 = 1.1,0.642,0.753,1
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.358,0.469,0.049,0
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 1
DIRECTION = -0.13852583,-0.026828062,-0.9899954
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 0
EXTRA_SIDE_THICKNESS = 0
F0 = 0.43
GLASS_COLOR = 0.5770211,0.5769634,0.5769634
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 7.9
INNER_SPECULAR_EXP = 800
IOR = 1.36
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,-0,7e-06
MIRROR_POS = -0,-0.000291,-0.000235
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.64
ORIGIN = 0.6410942,0.52061266,2.3438783
RADIUS = 0.13710001
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 9.6
REFLECTIVE_GAMMA = 0.3
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.33
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1
RESOLUTION_MULT = 4
SYNC_EMISSIVE_AUTO=1

[REFRACTING_HEADLIGHT_...]
SURFACE=Object040
INSIDE=EXT_Headlight_Indicator, EXT_Chrome_SUB0, BLINK_FR, BLINK_FL

ABSORPTION = 0.048
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 0
BOUNCED_BACK_MULT = 0.3
BULB_BLUR_K = 4
BULB_REFLECTION_K = 0
CUSTOM_BULB_0 = 1.1,0.642,0.753,1
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.358,0.469,0.049,0
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 1
DIRECTION = -0.13852355,-0.02682812,-0.9899955
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 6.13
EXTRA_GLASS_COLORIZATION = 0
EXTRA_SIDE_THICKNESS = 0
F0 = 0.43
GLASS_COLOR = 0.5770211,0.5769634,0.5769634
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 7.9
INNER_SPECULAR_EXP = 800
IOR = 1.36
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,-0,7e-06
MIRROR_POS = -0,-0.000291,-0.000235
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.64
ORIGIN = 0.80189514,0.52065945,2.2343369
RADIUS = 0.13140012
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 9.6
REFLECTIVE_GAMMA = 0.3
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.33
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1
RESOLUTION_MULT = 4
SYNC_EMISSIVE_AUTO=1

[REFRACTING_HEADLIGHT_...]
SURFACE=EXT_Sidemarker_Glass_Left
INSIDE=EXT_Sidemarker_Inner, BLINK_SL

ABSORPTION = 0.01
AMBIENT_MULT = 0.27
BASE_EMISSIVE_K = 0.3
BOUNCED_BACK_MULT = 0
BULB_BLUR_K = 0
BULB_REFLECTION_K = 0
CUSTOM_BULB_0 = 0.655,0.563,0.057,0
CUSTOM_BULB_1 = 0.494,0.5,0,0
CUSTOM_BULB_2 = 1,0.609,0.011,1
CUSTOM_BULB_3 = 0.667,0.552,0,0
DIFFUSE_MAP_FILTER_MULT = 9
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.9902151,0.024757748,-0.13733554
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.8
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.8
GLASS_COLOR = 0.5770211,0.5769634,0.5769634
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.001
INNER_SPECULAR = 0.3
INNER_SPECULAR_EXP = 23
IOR = 1.5
IOR_FLYOUT_FLAT = 1
LOD_BIAS = 0
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1,-0,7e-06
MIRROR_POS = -0,-0.000291,-0.000235
NM_SHARE_EXT = 0.27
NM_SHARE_INT = 0.19
ORIGIN = 1.2215719,0.46502563,1.1433725
RADIUS = 0.0623
RAYTRACE_STEP_INCREASE = 1
RAYTRACE_STEP_START = 0.01
REFLECTIVENESS_DIFFUSE_MULT = 16.6
REFLECTIVENESS_MULT = 5.6
REFLECTIVE_GAMMA = 3
REFRACTION_MASKING = 0
SIDE_FALLOFF = 2.25
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0
SYNC_EMISSIVE_AUTO=1
RESOLUTION_MULT = 4

[REFRACTING_HEADLIGHT_...]
SURFACE=EXT_Sidemarker_Glass_Right
INSIDE=EXT_Sidemarker_Inner, BLINK_SR

ABSORPTION = 0.01
AMBIENT_MULT = 0.27
BASE_EMISSIVE_K = 0.3
BOUNCED_BACK_MULT = 0
BULB_BLUR_K = 0
BULB_REFLECTION_K = 0
CUSTOM_BULB_0 = 0.655,0.563,0.057,0
CUSTOM_BULB_1 = 0.494,0.5,0,0
CUSTOM_BULB_2 = 1,0.609,0.011,1
CUSTOM_BULB_3 = 0.667,0.552,0,0
DIFFUSE_MAP_FILTER_MULT = 9
DIFFUSE_MAP_MULT = 0
DIRECTION = 1.0,0.0,-0.15
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.8
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.8
GLASS_COLOR = 0.5770211,0.5769634,0.5769634
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.001
INNER_SPECULAR = 0.3
INNER_SPECULAR_EXP = 23
IOR = 1.5
IOR_FLYOUT_FLAT = 1
LOD_BIAS = 0
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = -1,-0,7e-06
MIRROR_POS = -0,-0.000291,-0.000235
NM_SHARE_EXT = 0.27
NM_SHARE_INT = 0.19
ORIGIN = -1.2215719,0.46502563,1.1433725
RADIUS = 0.0623
RAYTRACE_STEP_INCREASE = 1
RAYTRACE_STEP_START = 0.01
REFLECTIVENESS_DIFFUSE_MULT = 16.6
REFLECTIVENESS_MULT = 5.6
REFLECTIVE_GAMMA = 3
REFRACTION_MASKING = 0
SIDE_FALLOFF = 2.25
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0
SYNC_EMISSIVE_AUTO=1
RESOLUTION_MULT = 4



----------- PBR -----------

; Rims
[Material_CarPaint_Chrome]
Materials = EXT_Rim_Finish
UseMetallicReflections = 0
BrightnessAdjustment = 0.25
FresnelMax = 0.5
FresnelC = 0.2
FlakesK = 0
SpecularMult = 0.5
AmbientSpecular = 0.1
ColoredSpecular = 1

;Glass
[Material_Glass]
Meshes = EXT_Taillight_Glass_Red
ThicknessMult = 1
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 0.8
PROP_... = extColoredReflection, 1
PROP_... = fresnelC, 0.27
BrightnessAdjustment = 0.001

[Material_Glass]
Materials = INT_Needle_Red
ThicknessMult = 3.7
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 3
PROP_... = extColoredReflection, 1
BrightnessAdjustment = 2

[Material_Glass]
Meshes = EXT_Taillight_Glass_White
FilmIOR=3.5
ThicknessMult = 0.1
ExtraLightsAdjustment=0.1

[Material_Glass]
Meshes = EXT_Windows
FilmIOR=2.5
ExtraLightsAdjustment=0

[Material_Glass]
Materials = INT_Gauge_Glass
ThicknessMult = 1
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 1
BrightnessAdjustment = 0.1
ExtraLightsAdjustment = 0  ; intensity of extra lights

[Material_PhotoelasticGlass]
Meshes = EXT_Headlight_Glass
FilmIOR=2.5
ExtraLightsAdjustment=0

[Material_Glass]
Materials = headgla
IOR = 2.5
ThicknessMult = 5
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 1
ProfileFix = 0.04
PROP_1... = ksAmbient, 0
BrightnessAdjustment = 0.01
ExtraLightsAdjustment = 0

[Material_Metal_v2]
Materials = EXT_Taillight_Chrome
Brightness = 0.8
DetailScale = 10
CubemapReflectionBlur=0

[Material_Metal_v2]
Materials = EXT_Chrome
Brightness = 0.5
DetailScale = 10
CubemapReflectionBlur=0

----------- Shader Replacement -----------

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

[SHADER_REPLACEMENT_...]
MATERIALS = INT_ColouredLeather1_OCC
PROP_0 = ksAmbient, 0.6
PROP_1 = ksDiffuse, 0.3
PROP_2 = ksSpecular, 0.025
PROP_3 = ksSpecularEXP, 20
PROP_4 = fresnelC, 0.1
PROP_5 = fresnelEXP, 6
PROP_6 = fresnelMaxLevel, 0.3
PROP_7 = detailNormalBlend, 0.25
PROP_8 = detailUVMultiplier, 20

[SHADER_REPLACEMENT_...]
MATERIALS = INT_ColouredLeather2_OCC
PROP_0 = ksAmbient, 0.8
PROP_1 = ksDiffuse, 0.3
PROP_2 = ksSpecular, 0.07
PROP_3 = ksSpecularEXP, 20
PROP_4 = fresnelC, 0.15
PROP_5 = fresnelEXP, 6
PROP_6 = fresnelMaxLevel, 0.4
PROP_7 = detailNormalBlend, 0.25
PROP_8 = detailUVMultiplier, 15

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Dashboard_OCC
PROP_0 = ksAmbient, 0.5
PROP_1 = ksDiffuse, 0.3
PROP_2 = ksSpecular, 0.08
PROP_3 = ksSpecularEXP, 20
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 4
PROP_6 = fresnelMaxLevel, 0.15
PROP_7 = detailNormalBlend, 0.30
PROP_8 = detailUVMultiplier, 30
PROP_9 = isAdditive, 0

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Pedals_OCC
PROP_... = ksSpecular, 0.08
PROP_... = ksSpecularEXP, 20


[SHADER_REPLACEMENT_...]
MATERIALS = INT_Dashboard_OCC_Shiftknob
PROP_0 = ksAmbient, 0.3
PROP_1 = ksDiffuse, 0.3
PROP_2 = ksSpecular, 0.025
PROP_3 = ksSpecularEXP, 20
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 6
PROP_6 = fresnelMaxLevel, 0.15
PROP_7 = detailNormalBlend, 0.30
PROP_8 = detailUVMultiplier, 15
PROP_9 = isAdditive, 0

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Steeringwheel_LeatherRim
PROP_0 = ksAmbient, 0.3
PROP_1 = ksDiffuse, 0.14
PROP_2 = ksSpecular, 0.02
PROP_3 = ksSpecularEXP, 5
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 4
PROP_6 = fresnelMaxLevel, 0.15
PROP_7 = detailNormalBlend, 0.30
PROP_8 = isAdditive, 0

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Steeringwheel_FakeLeather
PROP_0 = ksAmbient, 0.3
PROP_1 = ksDiffuse, 0.14
PROP_2 = ksSpecular, 0.02
PROP_3 = ksSpecularEXP, 5
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 4
PROP_6 = fresnelMaxLevel, 0.15
PROP_7 = detailNormalBlend, -2
PROP_8 = detailUVMultiplier, 6
PROP_9 = isAdditive, 0

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Plastic_Diffuse
PROP_... = ksAmbient, 0.2 
PROP_... = ksDiffuse, 0.4
PROP_... = ksSpecular, 0.02
PROP_... = ksSpecularEXP, 10
PROP_... = fresnelC, 0.0
PROP_... = fresnelEXP, 3
PROP_... = fresnelMaxLevel, 0.2
PROP_... = isAdditive, 0
PROP_... = sunSpecular, 0
PROP_... = sunSpecularEXP, 0


[SHADER_REPLACEMENT_...]
MATERIALS = INT_FakeLeather_OCC
PROP_0 = ksAmbient, 0.5
PROP_1 = ksDiffuse, 0.3
PROP_2 = ksSpecular, 0.02
PROP_3 = ksSpecularEXP, 5
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 4
PROP_6 = fresnelMaxLevel, 0.25
PROP_7 = detailNormalBlend, 0.3
PROP_8 = detailUVMultiplier, 10

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Rim_Logo2, EXT_BMWLogo
PROP_0 = ksAmbient, 0.2
PROP_1 = ksDiffuse, 0.4
PROP_2 = ksSpecular, 0.1
PROP_3 = ksSpecularEXP, 150
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 1
PROP_6 = fresnelMaxLevel, 0.25

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Carpet_OCC
PROP_0 = ksAmbient, 0.4
PROP_1 = ksDiffuse, 0.2
PROP_2 = ksSpecular, 0.03
PROP_3 = ksSpecularEXP, 5
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 4
PROP_6 = fresnelMaxLevel, 0.15
PROP_7 = detailNormalBlend, 0.35
PROP_8 = detailUVMultiplier, 25


[SHADER_REPLACEMENT_...]
MATERIALS = INT_Alu_OCC
PROP_0 = ksAmbient, 0.5
PROP_1 = ksDiffuse, 0.0
PROP_2 = ksSpecular, 1
PROP_3 = ksSpecularEXP, 60
PROP_4 = fresnelC, 0.3
PROP_5 = fresnelEXP, 0.00
PROP_6 = fresnelMaxLevel, 1.7
PROP_7 = isAdditive, 1

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Chrome_Headlightmatte
PROP_0 = ksAmbient, 0.2
PROP_1 = ksDiffuse, 0.1
PROP_2 = ksSpecular, 0.1
PROP_3 = ksSpecularEXP, 20
PROP_4 = fresnelC, 0.2
PROP_5 = fresnelEXP, 1
PROP_6 = fresnelMaxLevel, 0.4
PROP_7 = isAdditive, 1


[SHADER_REPLACEMENT_...]
MATERIALS = INT_Leatherboot_OCC
PROP_0 = ksAmbient, 0.3
PROP_1 = ksDiffuse, 0.2
PROP_2 = ksSpecular, 0.05
PROP_3 = ksSpecularEXP, 30
PROP_4 = fresnelC, 0.05
PROP_5 = fresnelEXP, 2
PROP_6 = fresnelMaxLevel, 0.2
PROP_7 = detailNormalBlend, 0.35
PROP_8 = detailUVMultiplier, 8

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Badge
PROP_0 = ksAmbient, 0.2 
PROP_1 = ksDiffuse, 0.2
PROP_2 = ksSpecular, 0.01
PROP_3 = ksSpecularEXP, 10
PROP_4 = fresnelC, 0.0
PROP_5 = fresnelEXP, 0
PROP_6 = fresnelMaxLevel, 0.0

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Fender_Logo
PROP_0 = ksAmbient, 0.2 
PROP_1 = ksDiffuse, 0.2
PROP_2 = ksSpecular, 0.03
PROP_3 = ksSpecularEXP, 10
PROP_4 = fresnelC, 0.0
PROP_5 = fresnelEXP, 1
PROP_6 = fresnelMaxLevel, 0.05

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Tire2
PROP_0 = ksAmbient, 0.05 
PROP_1 = ksDiffuse, 0.15


[SHADER_REPLACEMENT_...]
MATERIALS = INT_Smoothplastic_OCC, INT_Alu_Plastic_OCC
PROP_0 = ksAmbient, 0.5
PROP_1 = ksDiffuse, 0.3
PROP_2 = ksSpecular, 0.02
PROP_3 = ksSpecularEXP, 5
PROP_4 = fresnelC, 0.0
PROP_5 = fresnelEXP, 0
PROP_6 = fresnelMaxLevel, 0.15

[SHADER_REPLACEMENT_...]
MATERIALS = INT_Steeringwheel_Smoothplastic
PROP_0 = ksAmbient, 0.3
PROP_1 = ksDiffuse, 0.10
PROP_2 = ksSpecular, 0.02
PROP_3 = ksSpecularEXP, 5
PROP_4 = fresnelC, 0.0
PROP_5 = fresnelEXP, 0
PROP_6 = fresnelMaxLevel, 0.15

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Headlightplastic_Diffuse
PROP_... = ksSpecular, 0.04
PROP_... = ksSpecularEXP, 10
PROP_... = fresnelC, 0.2
PROP_... = fresnelEXP, 3
PROP_... = fresnelMaxLevel, 0.3


[SHADER_REPLACEMENT_...]
MATERIALS = INT_needles
PROP_0 = ksAmbient, 0.1
PROP_1 = ksDiffuse, 0.1
PROP_2 = ksSpecular, 0.005
PROP_3 = ksSpecularEXP, 10
PROP_4 = fresnelC, 0.0
PROP_5 = fresnelEXP, 0
PROP_6 = fresnelMaxLevel, 0.02

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_ProjectorInside
PROP_...=ksAmbient,0.05
PROP_...=ksDiffuse,0.05
PROP_...=ksSpecular,0.5
PROP_...=ksSpecularEXP,800
PROP_...=fresnelC,0.25
PROP_...=fresnelMaxLevel,2
PROP_...=fresnelEXP,0.5


[Material_Glass] 
Materials = headgla
IOR = 1.5
ThicknessMult = 8
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 1
PROP_1... = ksAmbient, 0
BrightnessAdjustment = 0
ExtraLightsAdjustment = 0



----------- Misc -----------


[SHADOWED_WHEELS]
ANGLE=0
EXTRA_AMBIENT_BRIGHTNESS=0.04
OFFSET=-0.15
OPACITY=0.8
WIDTH=0.04

[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 = 1	           ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 50  ; increase to make more lines
GLOW_OFFSET = 1	; 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.11
DISC_RADIUS = 0.193  
LUMINOCITY_MASK = 0, 0.3
NORMAL_MASK = 1.2, 0.1
ALPHA_MASK = 0, 0.2
RIM_HEIGHT = 0.10
OVERRIDE_DIFFUSE_MAP = 1
OVERRIDE_NORMAL_MAP = 1

[REFLECTIONS_FX]
MASK_GBUFFER=EXT_Headlight_Glass, EXT_Taillight_Glass_Red, EXT_Taillight_Glass_White, INT_Gauge_Glass
SKIP_GBUFFER =bmw_m5_09_cockpit_interior_glass_, EXT_Taillight_Detailglass, bmw_m5_09_cockpit_interior_gauge_emissive_, EXT_LMR_Logo2

----------- Emissives -----------

; Lights emissives

[EMISSIVE_BRAKE_...]
NAME = BULB_Brakelight_2, BULB_Brakelight_1
COLOR =10,0.5,0,30
FALLBACK_HEADLIGHTS_COLOR=5,0.5,0,20
LAG=0.0
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_BRAKE_...]
NAME = EXT_Taillight_Housing_SUB2
COLOR =10,0.5,0,20
FALLBACK_HEADLIGHTS_COLOR=5,0.5,0,10
LAG=0.0
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_BRAKE_...]
NAME = Object165
COLOR =10,0.5,0,50
FALLBACK_HEADLIGHTS_COLOR=5,0.5,0,50
LAG=0.0
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_BRAKE_...]
NAME = BULB_THIRDBRAKE
COLOR =10,0,0,5
FALLBACK_HEADLIGHTS_COLOR=0,0,0,20
LAG=0.0
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...]
NAME= bmw_m5_09_lod0_headlightL_head_light_
TOGGLE_VISIBILITY = 0
BIND_TO_HEADLIGHTS= 1
COLOR= 90, 90 ,100, 15
LAG=0.5
SIMULATE_HEATING=0
LOCATION=FRONT 
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
NAME= Cylinder004
TOGGLE_VISIBILITY = 1
BIND_TO_HEADLIGHTS= 1
COLOR= 10, 0.25 ,0, 100
LAG=0.0
SIMULATE_HEATING=0
LOCATION=REAR 
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5


[EMISSIVE_LIGHT_...]
NAME= NEEDLE_RPM_SUB1, NEEDLE_SPEED_SUB1, NEEDLE_FUEL_SUB1, NEEDLE_OIL_SUB0, Object129, NEEDLE_WATER, bmw_m5_09_cockpit_interior_gauge_emissive_
COLOR = 1,1,1,2
LAG = 0
SIMULATE_HEATING = 0

[EMISSIVE_LIGHT_...]
NAME= INT_Lightup_Decal_SUB0, bmw_m5_09_cockpit_steering_wheel_badge_, INT_Lightup_Decal_SUB1, bmw_m5e39_03_cockpit_interior_reflector_001
COLOR = 2,0,0,1
LAG = 0
SIMULATE_HEATING = 0

[EMISSIVE_LIGHT_...]
NAME= INT_SMOOTHPLASTIC_Light
COLOR = 1,0,0,4
LAG = 0
SIMULATE_HEATING = 0

[EMISSIVE_EXTRA_B_...]
NAME=BULB_DRL2
COLOR = 15,15,15,3
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT

[EMISSIVE_EXTRA_B_...]
NAME= BULB_DRL1
COLOR = 99,15,0,20
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT


[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=BLINK_RL
COLOR=90,5,0, 3
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=LEFT

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=BLINK_FL
COLOR=7,3,0, 1
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=LEFT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=BLINK_RR
COLOR=90,5,0, 3
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=BLINK_FR
COLOR=7,3,0, 1
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=BLINK_SR
COLOR=70,10,0, 2
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=BLINK_SL
COLOR=70,10,0, 2
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=LEFT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=INT_BLINK_R
COLOR=0,10,0, 8
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=INT_BLINK_L
COLOR=0,10,0, 8
LAG=0.0 
SIMULATE_HEATING=100
LOCATION=LEFT




----------- Analog Instruments -----------

[ANALOG_INDICATOR_...]
INPUT = WATER_TEMPERATURE                
NAME = NEEDLE_WATER        
SPEED_LAG = 0.1                  
LUT = (60=-94|67.5=-51|75=0)

[ANALOG_INDICATOR_...]
INPUT = OIL_TEMPERATURE                
NAME = NEEDLE_OIL      
SPEED_LAG = 0.1                  
LUT = (50=50|100=0|150=-45)

[ANALOG_INDICATOR_...]
INPUT = RPM                  
NAME = NEEDLE_RPM            
SPEED_LAG = 0.1                  
LUT = (0=0|1000=29|2000=57|3000=86|4000=114|5000=142|6000=171|7000=201|8000=231|9000=261)

[ANALOG_INDICATOR_...]
INPUT = SPEED_WHEELS                
NAME = NEEDLE_SPEED             
SPEED_LAG = 0.1                  
LUT = (0=0|60=60|100=100|180=160|210=181|240=202|270=221|300=242|330=259)

[ANALOG_INDICATOR_...]
INPUT = FUEL              
NAME = NEEDLE_FUEL         
SPEED_LAG = 0.1                  
LUT = (0=0|34=-46|68=-92)

____________________________________________ LUA

[SCRIPTABLE_DISPLAY_...]
ACTIVE = 1
RESOLUTION = 1280, 480
DISPLAY_POS = 0,0  
DISPLAY_SIZE = 1280, 480
SKIP_FRAMES = 0
MESHES = bmw_m5_09_cockpit_interior_plastic__SUB2
SCRIPT = ccc.lua

[SHADER_REPLACEMENT_...]
MATERIALS = computer
PROP_0 = ksAmbient, 0.5
PROP_1 = ksDiffuse, 0.5

[EMISSIVE_LIGHT_...]
NAME= bmw_m5_09_cockpit_interior_plastic__SUB2
CAST_LIGHT = 1
COLOR = 255, 255, 255, 0.003
LAG = 0.0
SIMULATE_HEATING = 0.1
LOCATION = NONE

____________________________________________ selflighting

[EXTRA_FX_EMISSIVE_...]
MESHES = NEEDLE_SPEED_SUB1, NEEDLE_OIL_SUB0, NEEDLE_FUEL_SUB1, INT_BLINK_L, INT_BLINK_R
COLOR = 0.1
RANGE = 0.008
INTERIOR_ONLY = 1
SPLIT_ELEMENTS = 1

[EXTRA_FX_EMISSIVE_...]
MESHES = NEEDLE_RPM_SUB1
COLOR = 0.1
RANGE = 0.006
INTERIOR_ONLY = 1
SPLIT_ELEMENTS = 1

[EXTRA_FX_EMISSIVE_...]
MESHES = bmw_m5_09_cockpit_interior_gauge_emissive_, NEEDLE_WATER, Object129
COLOR = 0.02
RANGE = 0.1
INTERIOR_ONLY = 1
SPLIT_ELEMENTS = 1

[EXTRA_FX_EMISSIVE_...]
MESHES = bmw_m5_09_cockpit_interior_plastic__SUB2, bmw_m5_09_cockpit_interior_digital_gauge_
COLOR = 0.1
RANGE = 0.2
INTERIOR_ONLY = 1
SPLIT_ELEMENTS = 1

[EXTRA_FX_EMISSIVE_...]
MESHES = BULB_Brakelight_1, BULB_Brakelight_1
COLOR = 0.1
RANGE = 0.03
INTERIOR_ONLY = 0
SPLIT_ELEMENTS = 1


[EXTRA_FX_EMISSIVE_...]
MESHES = BLINK_RL, BLINK_RR
COLOR = 9,2.5,0, 1
RANGE = 0.04
INTERIOR_ONLY = 0
SPLIT_ELEMENTS = 1

[EXTRA_FX_EMISSIVE_...]
MESHES = BLINK_FL, BLINK_FR
COLOR = 7,2.5,0, 1
RANGE = 0.04
INTERIOR_ONLY = 0
SPLIT_ELEMENTS = 1


[LIGHT_EXTRA_...]
BOUND_TO = bmw_m5_09_lod0_headlightL_head_light_
AMBIENT_INFLUENCE = 0
COLOR=25.5,25.5,25.5,600
DIFFUSE_CONCENTRATION = 1
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=200
FADE_SMOOTH=50
MIRROR=0, 0, 0
POSITION=-0.66, 0.53, 2.06
DIRECTION=0, 0, 1
RANGE=0.15
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=1
SPOT=120

[LIGHT_EXTRA_...]
BOUND_TO = bmw_m5_09_lod0_headlightL_head_light_
AMBIENT_INFLUENCE = 0
COLOR=25.5,25.5,25.5,600
DIFFUSE_CONCENTRATION = 1
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=200
FADE_SMOOTH=50
MIRROR=0, 0, 0
POSITION=0.66, 0.53, 2.06
DIRECTION=0, 0, 1
RANGE=0.15
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=1
SPOT=120

[LIGHT_BRAKE_0]
BOUND_TO = BULB_Brakelight_2
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=200
BOUND_EXP=1
COLOR=1, 0, 0, 2
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=0
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.48
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_COLOR=0, 0, 0
OFF_FADE_MULT=0.764696
OFF_MULT=0.1
OFF_RANGE_MULT=0.831926
POSITION=0, 0.56, -2.1
RANGE=5
RANGE_GRADIENT_OFFSET=0.275
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=160
SPOT_EDGE=0.406, 0.406, 0.406
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.3675

[EMISSIVE_REVERSE_...]
NAME= BULB_Reverse
COLOR= 26, 26, 26, 3
LAG= 0.7
SIMULATE_HEATING= 3
CAST_LIGHT= 1
CHANNEL = 0

[EMISSIVE_REVERSE_...]
NAME= EXT_Housing_Reverselight
COLOR= 26, 26, 26, 0.5
LAG= 0.7
SIMULATE_HEATING= 3
CAST_LIGHT= 1
CHANNEL = 0


[LIGHT_LICENSEPLATE]
MESHES=EXT_PLATE_R
OFFSET= -0.15 ,0.1, 0.04
RANGE=0.21
RANGE_GRADIENT_OFFSET=0.2
SPOT=125
SPOT_SHARPNESS=0.2
COLOR=8,8,8,2
FALLBACK_EMISSIVE=5,4.2,2.9,0.1
LAYOUT=TWO_ON_TOP
FADE_AT=180





[PARTICLES_FX_EXHAUST_0]
POSITION = 0.545,0.136,-2.30
DIRECTION = 0.0, -0.0, -1

[PARTICLES_FX_EXHAUST_1]
POSITION = -0.545,0.136,-2.30
DIRECTION = 0.0, -0.0, -1

[PARTICLES_FX_EXHAUST_2]
POSITION = -0.455,0.136,-2.31
DIRECTION = 0.0, -0.0, -1

[PARTICLES_FX_EXHAUST_3]
POSITION = 0.455,0.136,-2.31
DIRECTION = 0.0, -0.0, -1

[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

[Material_Carbon]
Materials = EXT_Carbon
DetailScale = 500
RESOURCE_2 = txNormalDetail
RESOURCE_FILE_2 = PBR_CARBON_NM.dds
RESOURCE_3 = txDetail
RESOURCE_FILE_3 = PBR_CARBON_D.dds
Brightness = 0.4
ClearCoatF0 = 0.1
CubemapReflectionBlur = 0,0


[Material_Metal_v2]
Materials = EXT_Exhaust
Metalness = 0.8
BrightnessAdjustment = 0.05
LocalReflectionsSharpness = 0.5
Reflectance = 0
DetailNormalPBRSecondaryColor = 0.8, 0.8, 0.8, 0
CubemapReflectionBlur = 0
PROP_22=pbReflectionBlurEnv, 0
DetailScale = 20
DetailNormalBlend = 2
DetailNormalPBRSmoothnessGamma = 1
ApplyTilingFix = 1