[DEFAULTS]
DisableDev = 1 

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

[SHADER_REPLACEMENT_...]
MESHES = navi
;IS_TRANSPARENT = 1
;PROP_... = ksAmbient, 0.33
PROP_... = ksDiffuse, 0.05

[Material_Metal_v2]
Materials = STEERING_Nuts
Metalness = 0.65
DetailScale=1
BrightnessAdjustment = 0.1
DetailNormalBlend = 1
LocalReflectionsSharpness = 0.3
OcclusionMap = 0.5
CubemapReflectionBlur = 0.5

[Material_Glass]
Materials= EXT_TAILLIGHT_GLASS
IOR = 1.4             ; looks better like this
FilmIOR = $IOR       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 4 ; thicker glass passes less light through
ProfileFix = 0.00    ; adds thickness to glass for glazing angles
MaskPass = 0         ; mask pass opacity
BrightnessAdjustment = 0.3
MaskPassColor = 255, 0, 0  ; mask pass color adjustment

[Material_Glass]
Meshes= EXT_HEADANDTAIL_LIGHT_GLASS
IOR = 1.460              ; looks better like this
FilmIOR = $IOR       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 0  ; thicker glass passes less light through
ProfileFix = 0.04    ; adds thickness to glass for glazing angles
MaskPass = 1           ; mask pass opacity
MaskPassColor = 255, 0, 0  ; mask pass color adjustment

[Material_Glass]
Materials = EXT_GLASS
ThicknessMult = 5
EXTRA_MASK_PASS = 10
EXTRA_MASK_PASS_OPACITY = 5

[Material_PhotoelasticGlass]
Materials=EXT_HEADLIGHT_GLASS
IOR=2
FilmIOR = 2.2
PhotoelasticityMult = 1.5
ProfileFix = 0.08
ThicknessMult=0.1

;PBR EXTERIOR

[INCLUDE: common/materials_interior.ini]

[Material_DigitalScreen]
Meshes = navi
ScreenScale = 350
;ScreenAspectRatio = 0.5
;MatrixType = TN

[Material_DigitalScreen]
Meshes = INT_DISP_STEERINGWHEEL
UseTextureCoordinates = 1	; if mapping seems weird, change to 0
ScreenAspectRatio = 0.5	; adjust if pixels look skewed
ScreenScale = 100	; adjust for target resolution, in general using texture size here might be a good idea

[Material_DigitalScreen]
Materials = EXT_CLUSTER_SCREENi
MatrixType = TN       ; valid values: IPS, TN
UseTextureCoordinates = 1  ; with 0, vertex coordinates will be used. sometimes it’s better, sometimes it’s buggier
ScreenScale = 100       ; amount of pixels horizontally
ScreenAspectRatio = 0.10   ; aspect ratio, height/width
Emissive = 4               ; screen brightness
FlipXY = 0                 ; rotate display 90°


[Material_Aluminium_v2]
Materials = EXT_TAILLIGHT_NM,  EXT_TAILLIGHT_RED , EXT_INSIDE_TAIL_CHROME , EXT_ALUMINUM , EXT_CHROME , tow_main, EXT_DOORHANDLES , EXT_TAILLIGHT_BRAKE , EXT_INNER_TAIL_LIGHT_GLASS , EXT_TAILLIGHT_INNERINGS , INT_NEEDLES , EXT_TAILLIGHT_BRAKE
Smoothness = 0.4
Metalness = 0.9
Reflectance = 1
BrightnessAdjustment = 0.6
DetailNormalBlend = 2
CubemapReflectionBlur = 0
PROP_22=pbReflectionBlurEnv, 0
HasDetailNormals=1

[Material_Carbon]
Meshes = EXT_CARBON
BrightnessAdjustment = 0.1
CubemapReflectionBlur=0
Reflectance = 0.001
ClearCoatF0 = 0.2
DetailNormalBlend = 2
DetailScale = 700

[Material_Carbon]
Meshes = EXT_CARBON_BOOLEAN
BrightnessAdjustment = 0.1
CubemapReflectionBlur=0
Reflectance = 0.001
ClearCoatF0 = 0.2
RESOURCE_TEXTURE_0=carbon.dds
RESOURCE_TEXTURE_1=carbon_nm.dds
DetailScale = 605

[Material_InteriorPBRDetail]
Materials= EXT_PLASTIC_GLOSSY , EXT_TRIMS
BrightnessAdjustment = 0.05
OcclusionMult=1.5
ClearCoatF0 = 0.4
Reflectance=0.1
CubemapReflectionBlur=0
DetailScale=0
ApplyTilingFix=0

[Material_Metal_v2]
Materials=EXT_WIPERS
Metalness = 0.9
BrightnessAdjustment = 0
LocalReflectionsSharpness = 1
DetailScale= 0

[INCLUDE: common/materials_interior.ini]
[Material_InteriorPBRDetail]
Materials= EXT_RIM_NM
Metalness=0.08
Reflectance=0.06
CubemapReflectionBlur=1.2
DetailScale=80
ApplyTilingFix=1

[Material_Metal_v2]
Materials=EXHAUST_METAL
Metalness = 0.65
DetailScale=120
BrightnessAdjustment = 0.1
DetailNormalBlend = 1
LocalReflectionsSharpness = 0.3
OcclusionMap = 0.5
CubemapReflectionBlur = 0.5

[Material_Aluminium_v2]
Materials=EXT_PLASTIC_CHROME
Metalness = 0.1
Reflectance = 0.2
BrightnessAdjustment = 0.1
DetailTexture = 1
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
ApplyTilingFix=1
DetailScale = 0
DetailNormalBlend = 0.2
DetailNormalPBRSmoothnessGamma = 1

[Material_Aluminium_v2]
Materials=EXT_ALUMINUM, INT_ALUMINUM_STEERINGWHEEL
Metalness = 0.4
Reflectance = 0.1
BrightnessAdjustment = 0.5
DetailTexture = 1
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
ApplyTilingFix=1
DetailScale = 80
DetailNormalBlend = 0.2
DetailNormalPBRSmoothnessGamma = 0.2

[Material_Glass]
Meshes=EXT_REFLECTOR_REAR
MaskPass=5
MaskPassColor=255,255,255
ThicknessMult=4.5
UseNormalMap=1

[INCLUDE: common/materials_carpaint.ini]

[Material_CarPaint_Solid]
Materials = logo_metal
BaseSpecularColor = 0.3, 0.3, 0.3
FresnelMax = 0.001
FresnelC = 0.001
FlakesK = 80.5
BrightnessAdjustment = 0.60
AmbientSpecular = 4.5
SpecularBase = 0.5, 25
SpecularSun = 0.02, 600
ClearCoatThickness = 0.04

;PBR INTERIOR

[Material_Fabric]
Materials=INT_CARPET
BrightnessAdjustment = 1
OcclusionMap = 1
Reflectance = 0.01
DetailScale=100
PROP_1... = ksAmbient, 0.35

[Material_Plastic_v2]
Materials = INT_PLASTIC, INT_PLASTIC_STEERINGWHEEL
Reflectance = 0.3
Smoothness=0.8
BrightnessAdjustment = 0.55
DetailScale=500
ApplyTilingFix = 1

[Material_Leather]
Materials = INT_LEATHER_STEERINGWHEEL, INT_LEATHER
BrightnessAdjustment = 0.2
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
Smoothness = 0.5
ApplyTilingFix = 1
DetailScale=50
DetailNormalBlend = 2
Reflectance = 0.1

[Material_Leather]
Materials = INT_LEATHER , INT_PLASTIC_LEATHER
BrightnessAdjustment = 0.3
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
Smoothness = 0.2
ApplyTilingFix = 1
DetailScale=300
DetailNormalBlend = 2
Reflectance = 0.01

[Material_Leather]
Materials = INT_RED_LEATHER
BrightnessAdjustment = 1
OcclusionMap = 0.85
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
Smoothness = 0.2
DetailScale=800
RESOURCE_0=txDetail
RESOURCE_TEXTURE_0=red leather diffuse.DDS
RESOURCE_1=txNormalDetail
RESOURCE_TEXTURE_1=red leather nm.DDS
Reflectance = 0.001
ApplyTilingFix = 1

[Material_Velvet_v2]
Materials = INT_ALCANTARA_STEERINGWHEEL, INT_ALCANTARA
BrightnessAdjustment=0.12
DetailTexture = textures/gmp_gc8_alcantara_diffuse.dds
DetailNormalTexture = textures/gmp_gc8_alcantara_normal.dds
OcclusionMap = 1
Smoothness = 0.2
Reflectance = 0.1
ApplyTilingFix = 1
DetailNormalBlend = 0.7
DetailScale = 100
PROP_1... = ksAmbient, 0.3

[Material_InteriorPBRDetail]
Materials=EXT_TACH_LETTERING
ClearCoatF0 = 0.2
BrightnessAdjustment=1
Reflectance=0.15
CubemapReflectionBlur=0.0

ApplyTilingFix=0

[Material_InteriorPBRDetail]
Materials = EXT_BADGE_RED,EXT_STEERING_BADGE_RED
Reflectance = 0.2
Smoothness = 0.9999
DetailNormalPBRFormat = 0
DetailNormalBlend = 0
DetailScale = 1
BrightnessAdjustment = 1.5
CubemapReflectionBlur = 0.5
Metalness = 1

[Material_InteriorPBRDetail]
Materials=INT_SPEAKER
BrightnessAdjustment=0.3
Reflectance=0.2
Metalness = 1
CubemapReflectionBlur=0.0
DetailScale=900
DetailNormalBlend = 0.2
ApplyTilingFix=0


[Material_Velvet_v2]
Materials = INT_STEERINGWHEEL_MARKER
BrightnessAdjustment=0.9
Reflectance = 0.1
ApplyTilingFix = 1
DetailNormalBlend = 1
DetailScale = 50
RESOURCE_0=txDetail
RESOURCE_TEXTURE_0=alcnt marker.dds
RESOURCE_1=txNormalDetail
RESOURCE_TEXTURE_1=alcnt_nm.dds

[Material_Velvet_v2]
Materials=INT_SEAT_CLOTH
BrightnessAdjustment = 0.8
OcclusionMap = 0.4
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
ApplyTilingFix=1
RESOURCE_0=txDetail
RESOURCE_TEXTURE_0=seat centre diffuse
RESOURCE_1=txNormalDetail
RESOURCE_TEXTURE_1=seat centre nm.dds
Reflectance = 0.3
DetailScale = 160
ClothSheenColor = 1, 1, 1

[Material_LeatherPoked_v2]
Materials = INT_SPOTTED_LEATHER
Reflectance = 0.04
BrightnessAdjustment = 0.7
OcclusionMap = 0.7
Smoothness = 0.2
DetailNormalTexture = common/pbr_leather_pattern.dds
DetailNormalIntensity = 2
DetailNormalPBRSecondaryColor = 0, 0, 0, 10
DetailNormalPBRReflectance = 10
DetailNormalBlend = 2

[Material_Chrome]
Materials = INT_ALUMINUM, INT_STEERINGWHEEL_CHROME
BrightnessAdjustment = 0.95
OcclusionMap = 0.7
Smoothness = 0.95
Metalness = 0.85
Reflectance = 0.0
BrightnessAdjustment = 1.5
CubemapReflectionBlur = 1

[Material_Carbon]
Meshes = INT_CARBON
BrightnessAdjustment = 0.3
ClearCoatF0 = 0.3
CubemapReflectionBlur = 0
Reflectance = 0.001
DetailScale = 750
DetailNormalBlend = 1


[Material_InteriorPBRDetail]
Materials=EXT_RED_STRIPING
ClearCoatF0 = 0.2
BrightnessAdjustment=0.2
Reflectance=0.1
CubemapReflectionBlur=0.0
ApplyTilingFix=1


[EXHAUST_FLAMES]
ANTILAG=0
ANTILAG_DELAY=0.2
ANTILAG_INTENSITY=5
ANTILAG_INTERVAL_MAX=0.1
ANTILAG_INTERVAL_MIN=0.05
ANTILAG_TURBO_THRESHOLD=0.1
DAMAGE=0
DAMAGE_DURATION=0.05
DAMAGE_INTENSITY=1
DAMAGE_PROBABILITY=1
DISCHARGE=1
DISCHARGE_CHARGE_TIME=0
DISCHARGE_DELAY=0.2
DISCHARGE_DURATION=0.1
DISCHARGE_INTENSITY=0.01
DISCHARGE_PROBABILITY=0.8
DISCHARGE_RPM_THRESHOLD_MAX=9000
DISCHARGE_RPM_THRESHOLD_MIN=5000
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=0
FLAT_SHIFT=1
FLAT_SHIFT_COOLDOWN=0.23
FLAT_SHIFT_DURATION=0.05
FLAT_SHIFT_GAS_THRESHOLD=0.3
FLAT_SHIFT_INTENSITY=0.0
FLAT_SHIFT_PROBABILITY=1
FLAT_SHIFT_RPM_THRESHOLD=4000
LIMITER=1
LIMITER_DELAY=0.25
LIMITER_INTENSITY=0.01
LIMITER_RPM_THRESHOLD=0

[INCLUDE: common/materials_license_plate.ini]
[Material_LicensePlate_Europe]
ACTIVE=0

	;This makes the Seal NM look correct and okay PBR metal
[INCLUDE: common/materials_interior.ini]
[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