[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 =42_T, 212_T.001, 225, 248, 239.001, 228_T.002, 44_T.001

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

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


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

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

[Material_Plastic]
Materials = ext_plastic
BrightnessAdjustment = 0.03
Smoothness = 1
Reflectance = 0.0
LocalReflectionsSharpness = 0.1
CubemapReflectionBlur = 0.075
UseClearCoat = 1
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.95
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.1
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.1
Reflectance = 0
Metalness = 0.3

[Material_Metal]
Materials = center_cap
BrightnessAdjustment = 0.1
Reflectance = 0
Metalness = 0.3

[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_rear, ext_plate_front, 
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_...=fresnelC, 0.2
PROP_...=fresnelEXP, 0
PROP_...=fresnelMaxLevel, 1
PROP_...=ksAmbient, 0.3
PROP_...=ksDiffuse, 0.5
PROP_...=ksSpecular, 0.1
PROP_...=ksSpecularEXP,90

[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, 1
PROP_...=ksAmbient, 0.0
PROP_...=ksDiffuse, 0
PROP_...=ksSpecular, 0.1
PROP_...=ksSpecularEXP,90

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

[Material_Velvet_v2]
Materials = seat_black
Brightness = 0.5
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
PROP_... = ksAmbient, 0.05
PROP_... = ksDiffuse, 0.05
PROP_... = fresnelMaxLevel, 0.1
PROP_...=ksSpecular, 0.01
PROP_...=ksSpecularEXP, 0

[SHADER_REPLACEMENT_...]
MATERIALS = ext_rear_reflector
PROP_... = extBounceBack, 0.4
PROP_... = extColoredReflection, 1
PROP_... =fresnelMaxLevel, 0.45
PROP_... = isAdditive, 2
PROP_...=ksAmbient, 0.01
PROP_...=ksDiffuse, 0
PROP_...=ksSpecular, 0.1
PROP_...=ksSpecularEXP, 30

[Material_CarPaint_Solid]
MATERIALS=ext_body
FresnelMax = 0.2
FresnelC = 0.1
FlakesK = 1
SpecularSun  = 0.1, 5000
NormalsMode = BASIC
SpecularBase  = 0.1, 400
AmbientSpecular = 0.01
BrightnessAdjustment = 0.4 ; 
ColoredSpecular = 0.3
AmbientSpecularEXP = 1.0
ClearCoatThickness = 0.1
PROP_1... = detailUVMultiplier , 40
PROP_2_... = ksAmbient, 0.4


[Material_CarPaint_Solid]
MATERIALS=ext_body
SKINS = ?03_canyon_red?, ?10_wine_red?
FresnelMax = 0.2
FresnelC = 0.1
FlakesK = 1
SpecularSun  = 0.1, 5000
NormalsMode = BASIC
SpecularBase  = 0.1, 400
AmbientSpecular = 0.01
BrightnessAdjustment = 0.1 ; 
ColoredSpecular = 0.3
AmbientSpecularEXP = 1.0
ClearCoatThickness = 0.1
PROP_1... = detailUVMultiplier , 40
PROP_2_... = ksAmbient, 0.4

[Material_CarPaint_Solid]
MATERIALS=ext_body
SKINS = ?05_cashmere_yellow??
FresnelMax = 0.2
FresnelC = 0.1
FlakesK = 1
SpecularSun  = 0.1, 5000
NormalsMode = BASIC
SpecularBase  = 0.1, 400
AmbientSpecular = 0.01
BrightnessAdjustment = 0.5 ; 
ColoredSpecular = 0.3
AmbientSpecularEXP = 1.0
ClearCoatThickness = 0.1
PROP_1... = detailUVMultiplier , 40
PROP_2_... = ksAmbient, 0.4

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

[Material_CarPaint_Metallic]
CarPaintMaterial = 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.3

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

[Material_CarPaint_Metallic]
CarPaintMaterial = ext_body
SKINS = ?08_sonic_blue_mica?
FresnelMax = 0.6
FresnelC = 0.1
FlakesK = 1
BrightnessAdjustment = 0.8
SpecularBase = 0.4, 40
SpecularSun = 0.0, 900
AmbientSpecular = 3.0
AmbientSpecularEXP= 6.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.3

[Material_Plastic]
Materials = belt
BrightnessAdjustment = 0.1

[Material_Glass]
Materials = ext_glass_tint
IOR = 2
ThicknessMult = 2
MaskPass = 2

[Material_Plastic]
Materials = ext_orange

[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 = shroud_stitching, gear_pattern, pedals, speakers
PROP_...=fresnelMaxLevel, 0
PROP_...=ksAmbient, 0.05
PROP_...=ksDiffuse, 0.1

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

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

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

[Material_Metal]
Materials = steering_momo
