[INCLUDE: common/materials_interior.ini]

[INCLUDE: common/materials_carpaint.ini]

[INCLUDE: common/custom_emissive.ini]

[INCLUDE: common/selflighting.ini]

[INCLUDE: common/materials_glass.ini]

[SHADER_REPLACEMENT_...]
MATERIALS=ext_body, 
DOUBLE_FACE_SHADOW_BIASED = 1

[EXTRA_FX]
MASK_GBUFFER = 
SKIP_GBUFFER =68.006, 42_T, 212_T.001, 225, 248, 239.001, 228_T.002, 44_T.001, 232_T.001, 42_T.001, 68.005

[Material_Leather]
Materials = int_leather, 
Reflectance = 0.03
DetailNormalPBRSmoothnessGamma = 0.0
DetailTextureBlur = 1
BrightnessAdjustment = 1
DetailScale = 60
Smoothness = 0.9
DetailNormalBlend = 1

[Material_Leather]
Materials = int_leather_skinned, 
BrightnessAdjustment = 0.5
DetailTextureBlur = 0
DetailNormalBlend = 1
DetailScale = 50
Reflectance = 0.1
Smoothness = 0.6
ApplyTilingFix = 1


[Material_Leather]
Materials = leather_wheel, 
BrightnessAdjustment = 0.4
DetailTextureBlur = 0
DetailNormalBlend = 1
DetailScale = 20
Reflectance = 0.1
Smoothness = 0.6
ApplyTilingFix = 1

[Material_Leather]
Materials = wheel_grip, 
BrightnessAdjustment = 0.4
DetailTextureBlur = 0
DetailNormalBlend = 1
DetailScale = 200
Reflectance = 0.2
Smoothness = 0.3

[Material_Plastic]
Materials = ext_plastic
BrightnessAdjustment = 0.03
Smoothness = 0.8
Reflectance = 0.1
LocalReflectionsSharpness = 0.1
CubemapReflectionBlur = 0.075
UseClearCoat = 0
ClearCoatSmoothness = 1
ClearcoatThickness = 0.2
ClearCoatIntensity = 1
OcclusionMap = 0.775,1

[SHADER_REPLACEMENT_...]
;gauge
MATERIALS = gauge
SHADER = ksPerPixelMultiMap_emissive
RESOURCE_4 = txEmissive
RESOURCE_TEXTURE_4 = gauge_emissive.dds

[Material_Plastic_v2]
Materials = int_smooth_plastic, 
Metalness = 0.01
Reflectance = 0.035
Smoothness = 0.1
BrightnessAdjustment = 1
ApplyTilingFix = 1
DetailScale = 0

[Material_Plastic_v2]
Materials = int_belt_plastic
Metalness = 0.01
Reflectance = 0.035
Smoothness = 0.1
BrightnessAdjustment = 0.3
ApplyTilingFix = 1
DetailScale = 0

[Material_Plastic_v2]
Meshes = 90_T.002
Metalness = 0.01
Reflectance = 0.035
Smoothness = 0.95
BrightnessAdjustment = 1.3
ApplyTilingFix = 1
DetailScale = 0

[Material_Plastic_v2]
Materials = int_smooth_plastic_dark
Metalness = 0.01
Reflectance = 0.035
Smoothness = 0.95
BrightnessAdjustment = 0.4
ApplyTilingFix = 1
DetailScale = 0

[SHADER_REPLACEMENT_...]
MATERIALS= int_metal, rim_metal, 
PROP_...=ksAmbient,0.2
PROP_...=ksDiffuse,0.3
PROP_...=fresnelEXP,3.5
PROP_...=fresnelMaxLevel,0.3
PROP_...=isAdditive,0
PROP_...=useDetail,1
PROP_...=detailUVMultiplier,55
PROP_...=sunSpecular,0.3
PROP_...=sunSpecularEXP,100
PROP_...=ksSpecular,1
PROP_...=ksSpecularEXP,300
PROP_...=fresnelC,0.7

[Material_Aluminium_v2]
Materials=ext_chrome, ext_headlight_back
Brightness = 0.2
LocalReflectionsSharpness = 1
;Smoothness=0.1
;Metalness=0.1
;Reflectance=0.5
DetailScale=10
AlphaFromDiffuse = 1

[Material_Metal]
Materials = rim_gold
BrightnessAdjustment = 0.2
Reflectance = 0.2
Metalness = 0.8
Smoothness = 0.8

[Material_Metal]
Materials = center_cap
BrightnessAdjustment = 0.2
Reflectance = 0.2
Metalness = 0.8
Smoothness = 0.8

[SHADER_REPLACEMENT_...]
MATERIALS = ext_bolts
PROP_...=fresnelC, 0.2
PROP_...=fresnelEXP, 5
PROP_...=fresnelMaxLevel, 0.5
PROP_...=ksAmbient, 0.01
PROP_...=ksDiffuse, 0.01
PROP_...=ksSpecular, 1.1
PROP_...=ksSpecularEXP, 25

[Material_CarPaint_Solid]
Materials = ext_plate_front, ext_plate_rear
NormalsMode = BASIC
UseMetallicReflections = 0
FresnelMax = 0.3
FresnelC = 0.25
ClearCoatThickness = 0.05
ColoredSpecular = 1
AmbientSpecular = 0.5
BrightnessAdjustment = 0.8

[SHADER_REPLACEMENT_...]
MATERIALS= ext_plate_screws
PROP_...=ksAmbient,0.2
PROP_...=ksDiffuse,0.3
PROP_...=fresnelEXP,3.5
PROP_...=fresnelMaxLevel,1
PROP_...=isAdditive,0
PROP_...=useDetail,1
PROP_...=detailUVMultiplier,1
PROP_...=sunSpecular,0.3
PROP_...=sunSpecularEXP,100
PROP_...=ksSpecular,1
PROP_...=ksSpecularEXP,300
PROP_...=fresnelC,0.7

[SHADER_REPLACEMENT_...]
MATERIALS = ext_chrome_orange_bake
PROP_...=fresnelC, 0.2
PROP_...=fresnelEXP, 0
PROP_...=fresnelMaxLevel, 0.05
PROP_...=ksAmbient, 0.05
PROP_...=ksDiffuse, 1
PROP_...=ksSpecular, 0.1
PROP_...=ksSpecularEXP,90

[SHADER_REPLACEMENT_...]
MATERIALS = ext_metal
PROP_...=fresnelC, 0
PROP_...=fresnelEXP, 0
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.1
PROP_...=ksDiffuse, 0.1
PROP_...=ksSpecular, 0.1
PROP_...=ksSpecularEXP,90

[Material_Velvet_v2]
Materials = seat_red
Brightness = 0.5
DetailScale = 800

[Material_Velvet_v2]
Materials = seat_black
BrightnessAdjustment = 0.4
DetailScale = 500

[Material_Carpet_v2]
Materials = carpet_top
Brightness = 0.3
DetailScale = 2

[Material_Carpet]
Meshes = 197_T.001
BrightnessAdjustment = 2
DetailScale = 40

[SHADER_REPLACEMENT_...]
MATERIALS = tyre.001
PROP_... = ksAmbient, 0.1
PROP_... = ksDiffuse, 0.12
PROP_... = fresnelMaxLevel, 0.1
PROP_...=ksSpecular, 0.02
PROP_...=ksSpecularEXP, 10

[SHADER_REPLACEMENT_...]
MATERIALS = int_window_logo
PROP_... = ksAmbient, 0.03
PROP_... = ksDiffuse, 0.03
PROP_... = fresnelMaxLevel, 1
PROP_...=ksSpecular, 0.02
PROP_...=ksSpecularEXP, 10

[Material_CarPaint_Solid]
MATERIALS=ext_body
SKINS = ?03_canyon_red?, ?04_black_mica?, ?06_pure_white?, ?05_cashmere_yellow?
FresnelMax = 0.8
FresnelC = 0.1
FlakesK = 1
SpecularSun  = 0.4, 5000
SpecularBase  = 0.1, 400
AmbientSpecular = 0.01
BrightnessAdjustment = 0.9 ; compensates for ambient specular
ColoredSpecular = 0.3
AmbientSpecularEXP = 1.0
ClearCoatThickness = 0.06

[Material_CarPaint_Solid]
MATERIALS=ext_body
SKINS = ?10_wine_red?
FresnelMax = 0.8
FresnelC = 0.1
FlakesK = 1
SpecularSun  = 0.4, 5000
SpecularBase  = 0.1, 400
AmbientSpecular = 0.01
BrightnessAdjustment = 0.5 ; compensates for ambient specular
ColoredSpecular = 0.3
AmbientSpecularEXP = 1.0
ClearCoatThickness = 0.06

[Material_CarPaint_Metallic]
MATERIALS=ext_body
SKINS = ?01_sonic_blue?
FresnelMax = 0.3
FresnelC = 0.1
FlakesK = 1
BrightnessAdjustment = 0.7
SpecularBase = 0.3, 40
SpecularSun = 0.0, 900
AmbientSpecular = 1.0
AmbientSpecularEXP= 6.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.3

[Material_CarPaint_Metallic]
MATERIALS=ext_body
SKINS = ?07_dark_blue_mica2?
FresnelMax = 0.3
FresnelC = 0.1
FlakesK = 1
BrightnessAdjustment = 0.2
SpecularBase = 0.3, 40
SpecularSun = 0.0, 900
AmbientSpecular = 1.0
AmbientSpecularEXP= 6.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.3

[Material_CarPaint_Metallic]
MATERIALS=ext_body
SKINS = ?02_royal_silver?
FresnelMax = 0.8
FresnelC = 0.1
FlakesK = 1
BrightnessAdjustment = 0.5
SpecularBase = 0.4, 40
SpecularSun = 0.0, 900
AmbientSpecular = 3.0
AmbientSpecularEXP= 6.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.1


[Material_Plastic]
Materials = belt
BrightnessAdjustment = 0.1

[Material_Glass]
Materials = ext_glass_tint
ThicknessMult = 2
Refraction = 0
UseNormalMap = 0
FresnelC = 0.2
EXTRA_MASK_PASS = 1
MaskPass = 1          ; mask pass opacity
MaskPassColor = 0, 1, 0.5  ; mask pass color adjustment

[Material_Plastic]
Materials = ext_orange
BrightnessAdjustment = 0.5

[Material_Plastic]
Materials = ext_behind_grill_detail
BrightnessAdjustment = 0.01

[Material_Metal]
Materials = int_brushed_steel
BrightnessAdjustment = 0.5
DetailScale = 2
DetailNormalBlend = 0.2

[Material_Metal_v2]
Materials = int_metal, 
BrightnessAdjustment = 1
DetailScale = 20
Metalness = 0.1
Reflectance = 0.1

[SHADER_REPLACEMENT_...]
MATERIALS = steering_bolt
PROP_...=fresnelMaxLevel, 0.1
PROP_...=ksAmbient, 0.05
PROP_...=ksDiffuse, 0.1

[Material_Metal]
Materials = metal_engraving, 
BrightnessAdjustment = 0.1
DetailScale = 20
Metalness = 0.4
Reflectance = 0.1
LocalReflectionsSharpness = 1

[SHADER_REPLACEMENT_...]
MATERIALS = pedals, speakers
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.05
PROP_...=ksDiffuse, 0.1

[SHADER_REPLACEMENT_...]
MATERIALS = gear_pattern, knob_stitching
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.05
PROP_...=ksDiffuse, 0.1
IS_TRANSPARENT = 1
BLEND_MODE = ALPHA_BLEND

[SHADER_REPLACEMENT_...]
MATERIALS = shroud_stitching, 
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.1
PROP_...=ksDiffuse, 0.2
IS_TRANSPARENT = 1
BLEND_MODE = ALPHA_BLEND

[SHADER_REPLACEMENT_...]
MATERIALS = smoking, grill_buttons, seat_head
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.1
PROP_...=ksDiffuse, 0.1

[SHADER_REPLACEMENT_...]
MATERIALS = handbrake_stitch, 
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.2
PROP_...=ksDiffuse, 0.2


[Material_Glass]
Materials = ext_rear_tint_dark
IOR = 2
ThicknessMult = 2
MaskPass = 4

[Material_Glass]
Materials = int_windschield_tinted
IOR = 1
ThicknessMult = 7
MaskPass = 0

[Material_Metal]
Materials = steering_momo


[Material_Glass]
Meshes = 367_T.007, ext_rear_reflector
IOR = 2
ThicknessMult = 0
MaskPass = 0