[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 =219, 193, 417, 372

[Material_CarPaint_Solid]
MATERIALS=ext_body
SKINS = ?01_white?, ?06_yellow?, ?15_red?, ?16_beige?, ?17_black?, ?18_zaince?
FresnelMax = 0.8
FresnelC = 0.1
FlakesK = 0
SpecularSun  = 0.4, 5000
SpecularBase  = 0.1, 400
AmbientSpecular = 0.01
BrightnessAdjustment = 0.7 ; compensates for ambient specular
ColoredSpecular = 0.3
AmbientSpecularEXP = 1.0
ClearCoatThickness = 0.06

[Material_CarPaint_Metallic]
MATERIALS=ext_body
SKINS = ?03_medium_tan_metallic?, ?04_bronze_metallic?, ?05_medium_gold_metallic?, ?07_light_green_metallic?, ?08_medium_green_metallic?, ?09_racing_green_metallic?, ?10_dark_turquoise_metallic?, ?11_dark_blue_metallic?, ?12_light_blue_metallic?, ?13_bright_blue_metallic?, ?14_burgundy_metallic?,  
FresnelMax = 0.3
FresnelC = 0.1
FlakesK = 1
BrightnessAdjustment = 0.7
SpecularBase = 0.6, 40
SpecularSun = 0.0, 900
AmbientSpecular = 1.0
AmbientSpecularEXP= 6.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.3

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

[Material_CarPaint_Metallic]
MATERIALS=ext_body
SKINS = ?13_bright_blue_metallic?
FresnelMax = 0.3
FresnelC = 0.1
FlakesK = 1
BrightnessAdjustment = 0.5
SpecularBase = 0.6, 40
SpecularSun = 0.0, 900
AmbientSpecular = 1.0
AmbientSpecularEXP= 6.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.3

[Material_CarPaint_Metallic]
MATERIALS=ext_body
SKINS = ?02_silver_metallic?
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_Leather]
Materials = int_leather_dash, 
Reflectance = 0.1
DetailNormalPBRSmoothnessGamma = 0.0
DetailTextureBlur = 1
BrightnessAdjustment = 0.3
DetailScale = 80
Smoothness = 0.7
DetailNormalBlend = 0.3

[Material_Leather]
Materials = int_wheel_leather, 
Reflectance = 0.03
DetailNormalPBRSmoothnessGamma = 0.0
DetailTextureBlur = 1
BrightnessAdjustment = 1
DetailScale = 10
Smoothness = 0.9
DetailNormalBlend = 0.5

[Material_Leather]
Meshes = 158_T.001
Reflectance = 0.0
DetailNormalPBRSmoothnessGamma = 0.0
DetailTextureBlur = 1
BrightnessAdjustment = 0.6
DetailScale = 50
Smoothness = 0.1
DetailNormalBlend = 0.5

[Material_InteriorPBRDetail]
Materials =int_metal
Reflectance = 0.6
Smoothness = 0.8
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 10
BrightnessAdjustment = 0.4
CubemapReflectionBlur = 0.1
Metalness = 0.6

[Material_Metal]
Materials = int_dash_line_pattern
BrightnessAdjustment = 2
DetailNormalBlend = 1

[Material_Plastic]
Materials = int_smooth_plastic
Metalness = 0.01
Reflectance = 0.02
Smoothness = 0.95
BrightnessAdjustment = 0.6
ApplyTilingFix = 1
DetailScale = 0

[Material_Plastic]
Materials = int_rubber
Metalness = 0.01
Reflectance = 0.02
Smoothness = 0.95
BrightnessAdjustment = 0.6
ApplyTilingFix = 1
DetailScale = 0

[Material_Plastic]
Materials = int_gloss_plastic
Metalness = 0.01
Reflectance = 0.02
Smoothness = 0.95
BrightnessAdjustment = 0.6
ApplyTilingFix = 1
DetailScale = 0

[Material_Glass]
Materials = int_glass
ThicknessMult = 0.1
Refraction = 0
UseNormalMap = 0
FresnelC = 0.1
ExtraLightsAdjustment = 0

[SHADER_REPLACEMENT_...]
MATERIALS =int_glass
BLEND_MODE = ALPHA_TEST   

[SHADER_REPLACEMENT_...]
MATERIALS =int_belts, int_door_stitch_line, ext_radiator 
PROP_... = ksAmbient, 0.05
PROP_... = ksDiffuse, 0.05

[SHADER_REPLACEMENT_...]
MATERIALS =int-bolts, ext_bolts
PROP_... = ksAmbient, 0.05
PROP_... = ksDiffuse, 0.05
PROP_...=fresnelMaxLevel,0.1
BLEND_MODE = ALPHA_TEST   
IS_TRANSPARENT = 1

[SHADER_REPLACEMENT_...]
MATERIALS =ext_glass_orange
BLEND_MODE = ALPHA_BLEND   
IS_TRANSPARENT = 1

[SHADER_REPLACEMENT_...]
MATERIALS =ext_light_stan_text
BLEND_MODE = ALPHA_BLEND   
IS_TRANSPARENT = 1


[SHADER_REPLACEMENT_...]
MATERIALS =cragar_logo_cap 
PROP_... = ksAmbient, 0.13
PROP_... = ksDiffuse, 0.13

[SHADER_REPLACEMENT_...]
MATERIALS =int_floor_hard
PROP_... = ksAmbient, 0.08
PROP_... = ksDiffuse, 0.08
PROP_...=fresnelMaxLevel,0.0

[SHADER_REPLACEMENT_...]
MATERIALS =ext_rear_stripe
PROP_... = ksAmbient, 0.2
PROP_... = ksDiffuse, 0.2
PROP_...=fresnelMaxLevel,0.1

[Material_Velvet_v2]
Materials = int_carpet
Brightness = 1
DetailScale = 20
DetailNormalBlend = 1

[Material_Plastic]
Materials = ext_palstic_gloss
BrightnessAdjustment = 0.4
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_...]
MATERIALS= ext_chrome, cragar_chrome, int_charger_center_logo
PROP_...=ksAmbient,0.2
PROP_...=ksDiffuse,0.3
PROP_...=fresnelEXP,3.5
PROP_...=fresnelMaxLevel,1
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

[SHADER_REPLACEMENT_...]
MATERIALS= ext_side_hemi
PROP_...=ksAmbient,0.1
PROP_...=ksDiffuse,0.1
PROP_...=fresnelEXP,3.5
PROP_...=fresnelMaxLevel,0.2
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_InteriorPBRDetail]
Materials =int_chrome, 
Reflectance = 0.6
Smoothness = 0.8
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 10
BrightnessAdjustment = 0.9
CubemapReflectionBlur = 0.1
Metalness = 0.6

[Material_InteriorPBRDetail]
Materials =ext_chrome
Reflectance = 0.6
Smoothness = 1
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 10
BrightnessAdjustment = 0.9
CubemapReflectionBlur = 0.1
Metalness = 0.5

[SHADER_REPLACEMENT_...]
MATERIALS= ext_fuel_cap_detail
PROP_...=ksAmbient,0.1
PROP_...=ksDiffuse,0.1
PROP_...=fresnelEXP,3.5
PROP_...=fresnelMaxLevel,1
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_Plastic_v2]
Materials = ext_smooth_plastic
BrightnessAdjustment = 0.1
Smoothness = 0.1
Reflectance = 0.04
DetailScale = 10
DetailNormalBlend = 0.2
LocalReflectionsSharpness = 0.1
CubemapReflectionBlur = 0.0
UseClearCoat = 0
ClearCoatSmoothness = 1
ClearcoatThickness = 0.2
ClearCoatIntensity = 1
OcclusionMap = 0.775,1

[Material_Metal_v2]
Materials = cragar_black
BrightnessAdjustment = 0.02
Smoothness = 0
Reflectance = 0
Metalness = 0.1
DetailScale = 2

[Material_Metal]
Materials = Wilwood_Forged_Narrow_Superlite_4Piston_Rotor, Wilwood_Forged_Narrow_Superlite_4Piston_Caliper
BrightnessAdjustment = 0.2
Smoothness = 0
Reflectance = 0
Metalness = 0.1

[SHADER_REPLACEMENT_...]
MATERIALS = ext_light_stan_red, ext_light_stan_text,   
PROP_... = ksAmbient, 0.8
PROP_... = ksDiffuse, 0.2
PROP_... = fresnelMaxLevel, 0
BLEND_MODE = ALPHA_BLEND   
IS_TRANSPARENT = 1

[Material_Metal_v2]
Materials = brake_metal
BrightnessAdjustment = 0.02
Smoothness = 0
Reflectance = 0
Metalness = 0.1

[SHADER_REPLACEMENT_...]
MATERIALS = tyres
PROP_... = ksAmbient, 0.08
PROP_... = ksDiffuse, 0.1
PROP_... = fresnelMaxLevel, 0.02
PROP_...=ksSpecular, 0.02
PROP_...=ksSpecularEXP, 10

[Material_Glass]
Materials = ext_glass, 
ThicknessMult =1
IOR = 1
FresnelC = 0.0
ExtraLightsAdjustment = 0

[Material_WindscreenBanner]
Materials = ext_window_banner
BlurBackground = 0
MaskPass = 0.5
MaskPassColor = 0, 0, 0
ColorfulShadowing = 2

[SHADER_REPLACEMENT_...]
MATERIALS = ext_window_banner
PROP_... = ksAmbient, 0.05
PROP_... = ksDiffuse, 0.05
PROP_... = fresnelMaxLevel, 0.1
PROP_...=ksSpecular, 0.01
PROP_...=ksSpecularEXP, 0

[SHADER_REPLACEMENT_...]
MATERIALS = int_glass, 
DEPTH_MODE = LESSEQUAL

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

[Material_Metal]
Materials = ext_underbody
BrightnessAdjustment = 0.04
Reflectance = 0.1
Metalness = 0

[SHADER_REPLACEMENT_...]
;gauge
MATERIALS = int_cluster
SHADER = ksPerPixelMultiMap_emissive
PROP_... = ksAmbient, 0.15
PROP_... = ksDiffuse, 0.15
RESOURCE_4 = txEmissive
RESOURCE_TEXTURE_4 = gauge_cluster_emissive.dds

[SHADER_REPLACEMENT_...]
MATERIALS = ext_reflectors
PROP_... = extBounceBack, 0.2
PROP_... = extColoredReflection, 1
PROP_... =fresnelMaxLevel, 0.45
PROP_... = isAdditive, 2
PROP_...=ksAmbient, 0.02
PROP_...=ksDiffuse, 0.02
PROP_...=ksSpecular, 0.1
PROP_...=ksSpecularEXP, 30

[SHADER_REPLACEMENT_...]
MATERIALS =int_button_labels
BLEND_MODE = ALPHA_BLEND   
IS_TRANSPARENT = 1

[Material_Glass]
Materials = ext_black_windows
IOR = 2
ThicknessMult = 1
MaskPass = 4

[Material_Plastic]
Materials = int_red, int_cluster

