[BASIC]
IS_LOW_BEAM_AVAILABLE=1

[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_glass.ini]

[REFLECTIONS_FX]
SKIP_GBUFFER = material:EXT_Headlightglass, material:EXT_Glass, material:EXT_Taillightglass

[SHADER_REPLACEMENT_...]
MESHES = EXT_Taillight
PROP_...= emSkipDiffuseMap, 1

[SHADER_REPLACEMENT_...]
MATERIALS = CarPaint, EXT_Grille, EXT_Misc_Carbon, EXT_Lights, INT_CARBON
CULL_MODE = DOUBLESIDED

[DATA]
DISABLE_DIGITALPANELSINI = 1

[SHADER_REPLACEMENT_...]
MATERIALS = LED_Panel
SHADER = ksPerPixelMultiMap_emissive
FILL_MISSING_TEXTURES = 1
PROP_... = emSkipDiffuseMap, 1
PROP_... = ksEmissive, 200, 200, 200

[LED_PANEL_...]
MESHES = RSS_EXT_LED_Panel
TEXTURE_SLOT = txEmissive
RESOLUTION = 1024, 512
MASKS_PACK = rss_font.zip
DIGIT_0 = 22, 47, 312, 455
DIGIT_1 = 353, 47, 312, 455
DIGIT_2 = 692, 47, 312, 455

BASE_COLOR = '#00FFFF', 1
FLASHING_COLOR = '#00FFFF', 1
FLASHING_APPLY_MASK = 1

BLANCPAIN_FLASHING_PERIOD = 0.5
BLANCPAIN_FLASHING_DURATION = 0.15
BLANCPAIN_FLASHING_RACE_CLASS = AM

N24_FLASHING_PERIOD = 3.5
N24_FLASHING_TIME = 1.2
N24_FLASHING_FREQUENCY = 6
N24_FLASHING_ACTIVE_SHARE = 0.7

ROLE_0 = DRIVER_NAME
ROLE_1 = POSITION
ROLE_DURATION = 3

[EMISSIVE_HIGHBEAM_...]
NAME=EXT_Highbeam
COLOR=90,90,90, 9
OFF_COLOR=0,0,0
LAG=0.3
SIMULATE_HEATING=1

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=EXT_Turnsignal_RF
COLOR=85,40,0, 3
OFF_COLOR=60,60,60, 2
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=EXT_Turnsignal_LF
COLOR=85,40,0, 3
OFF_COLOR=60,60,60, 2
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=EXT_Turnsignal_RR
COLOR=45,25,0, 3
OFF_COLOR=0,0,0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=EXT_Turnsignal_LR
COLOR=45,25,0, 3
OFF_COLOR=0,0,0
LOCATION=REAR

[EMISSIVE_EXTRA_B_1]
NAME=EXT_Pitlight
BLINKING_PATTERN= (|0=0|0.5=0|1=0|1.5=0.5|2=1|2.5=1|3=0.5|3.5=0|4=0)
BLINKING_DURATION=1
COLOR=300,0,0, 20
OFF_COLOR=0,0,0
SIMULATE_HEATING=0
LAG=0
AFFECTS_TRACK=0
CAST_LIGHT=0

[EXTRA_FX_EMISSIVE_...]
MESHES=EXT_Turnsignal_LF, EXT_Turnsignal_RF
COLOR=5,5,5
OFF_COLOR=0
RANGE = 0.035
DIRECTED = 0.5

[EXTRA_FX_EMISSIVE_...]
MESHES=EXT_Lowbeam
COLOR=4
OFF_COLOR=0
RANGE = 0.085

[EXTRA_FX_EMISSIVE_...]
MESHES=EXT_Highbeam
COLOR=6
OFF_COLOR=0
RANGE = 0.065
DIRECTED = 1

;PBR

[Material_Glass]
Materials = EXT_Taillightglass
IOR = 1.5            ; index of refraction for glass, usualy, 1.5
FilmIOR = 2      ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1  ; thicker glass passes less light through
ProfileFix = 0.04    ; adds thickness to glass for glazing angles

[Material_Glass]
Materials = EXT_Headlightglass
IOR = 1.5            ; index of refraction for glass, usualy, 1.5
FilmIOR = 3.5       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1.2  ; thicker glass passes less light through
ProfileFix = 0.06    ; adds thickness to glass for glazing angles

[Material_Glass]
Materials = EXT_Glass
IOR = 2.5            ; index of refraction for glass, usualy, 1.5
FilmIOR = 3.5       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1.0  ; thicker glass passes less light through
ProfileFix = 0.07    ; adds thickness to glass for glazing angles

;EXT RIM
[Material_Aluminium_v2]
Materials = lambert3
Metalness = 0.1
Reflectance = 0.1
BrightnessAdjustment = 0.5
DetailTexture = 1
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 0,0,0,0
DetailScale = 30
DetailNormalBlend = 1
DetailNormalPBRSmoothnessGamma = 2
CubemapReflectionBlur = 0.1
Smoothness = 0.0
OcclusionMult = 0.5
RESOURCE_0=txDetail
RESOURCE_0_TEXTURE=metal_detail_rim
OcclusionMap = 0.4
PROP_...= ksSpecular, 1
PROP_...= ksSpecularEXP, 300

[Material_Metal_v2]
Meshes = EXT_Turnsignal_LR, EXT_Turnsignal_RR, EXT_Lights, EXT_Highbeam, EXT_Lowbeam
Metalness = 0.8
BrightnessAdjustment = 0.5
LocalReflectionsSharpness = 1
Reflectance = 0.3
DetailNormalPBRSmoothnessGamma = 2
OcclusionMap = 0.5

[SHADER_REPLACEMENT_...]
MATERIALS = JT5_2016_TWALL, JT5_2016_TREAD
PROP_...= ksDiffuse,0.45
PROP_...= fresnelC, 0.2
PROP_...= fresnelMaxLevel, 0.05
PROP_...= ksSpecularEXP, 100
PROP_...= ksSpecular, 0.5

[SHADER_REPLACEMENT_...]
MESHES=EXT_Taillight
PROP_...= ksDiffuse, 0.1
PROP_...= ksAmbient, 0.3
PROP_...= isAdditive, 1
PROP_...= fresnelC, 0.3
PROP_...= fresnelMaxLevel, 0.45
PROP_...= fresnelEXP, 3.5
PROP_...= extColoredBaseReflection, 1
PROP_...= extColoredReflection, 1
PROP_...= ksSpecularEXP, 300

[Material_Plastic_v2]
Materials = EXT_BGlass
Reflectance = 0.9
DetailNormalPBRSecondaryColor = 0, 0, 0, 1
DetailNormalBlend = 0.5
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 2
DetailTextureBlur = 1

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Misc_Chrome
PROP_...= fresnelC, 0.6
PROP_...= fresnelMaxLevel, 0.8
PROP_...= ksSpecularEXP, 300
PROP_...= ksSpecular, 0.6
PROP_...= isAdditive, 2

[Material_Plastic_v2]
Materials = EXT_Misc_Plastic
Reflectance = 0.12
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.25
DetailNormalBlend = 0.5
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 2
DetailTextureBlur = 1

;INT PBR
[Material_Carpet_v2]
Materials = INT_ALCANTARA
Reflectance = 0.13
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0.1,0.1,0.1,0.35
DetailScale = 60
DetailNormalBlend = 1

[SHADER_REPLACEMENT_...]
MATERIALS = INT_PAINTED_GREY
PROP_...=ksSpecularEXP, 150
PROP_...=ksDiffuse, 0.2
PROP_...=ksAmbient, 0.4
PROP_...=fresnelC, 0.3
PROP_...=fresnelMaxLevel, 0.4
PROP_...=ksSpecular, 0.5

[Material_Carpet_v2]
Materials = INT_POLYSTYRENE
Reflectance = 0.13
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0.1,0.1,0.1,0.95
DetailScale = 60
DetailNormalBlend = 1

[Material_Aluminium_v2]
Materials = INT_METAL_GOLD
Metalness = 0.0
Reflectance = 1
BrightnessAdjustment = 0.5
DetailTexture = 1
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 1, 1, 0, 1
DetailScale = 30
DetailNormalBlend = 1
DetailNormalPBRSmoothnessGamma = 2

[Material_Velvet_v2]
Materials = SW_ALCANTARA
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 0.5
DetailScale = 40
ClothSheenColor = 1, 1, 1
BrightnessAdjustment = 0.35

[Material_Carbon]
Materials = INT_SW_CARBON
HasDetailNormals = 1
BrightnessAdjustment = 0.45
Smoothness = 0.9
Reflectance = 0.45
CubemapReflectionBlur = 0.3
UseClearCoat = 1
ClearCoatSmoothness = 1
ClearCoatIntensity = 1.0
DetailNormalBlend = 0.5
DetailScale = 150

[Material_Aluminium_v2]
Materials = INT_PLASTIC_RED_GLOSSY
Metalness = 0.4
Reflectance = 0.1
BrightnessAdjustment = 0.9
DetailTexture = 0
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 100, 0, 0, 1
DetailScale = 30
DetailNormalBlend = 0
DetailNormalPBRSmoothnessGamma = 2

[Material_Plastic_v2]
Materials = INT_PLASTIC_YELLOW_GLOSSY
Reflectance = 0.06
DetailNormalPBRSecondaryColor = 10, 10, 0, 10
DetailNormalBlend = 0
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 1
DetailTexture= 1

[Material_Carbon]
Materials = INT_CARBON
HasDetailNormals = 1
BrightnessAdjustment = 0.45
Smoothness = 0.9
Reflectance = 0.45
CubemapReflectionBlur = 0.3
UseClearCoat = 1
ClearCoatSmoothness = 1
ClearCoatIntensity = 1.0
DetailNormalBlend = 0.5
DetailScale = 750

[Material_Plastic_v2]
Materials = INT_PLASTIC_MATTE
Reflectance = 0.2
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailNormalBlend = 0
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 2
DetailTextureBlur = 1

[Material_Plastic_v2]
Materials = INT_PLASTIC_GLOSSY
Reflectance = 0.4
DetailNormalPBRSecondaryColor = 1,1,1,0
DetailNormalBlend = 0
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 2
DetailTextureBlur = 1

[SHADER_REPLACEMENT_...]
MATERIALS = INT_CARBON_B
PROP_...= ksAmbient, 0.25
PROP_...= ksDiffuse, 0.2
PROP_...= isAdditive, 1
PROP_...= ksSpecularEXP, 250
PROP_...= fresnelC, 0.2
PROP_...= fresnelMaxLevel, 0.4
PROP_...= detailNormalBlend, 1
PROP_...= detailUVMultiplier, 500

[SHADER_REPLACEMENT_...]
MATERIALS = INT_MISC
PROP_...= ksDiffuse, 0.2
PROP_...= ksAmbient, 0.35
PROP_...= ksSpecular, 0.6
PROP_...= ksSpecularEXP, 150
PROP_...= fresnelC, 0.15
PROP_...= fresnelEXP, 2.5
PROP_...= fresnelMaxLevel, 0.3