[INCLUDE: materials_base.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_glass.ini]
[LIGHTING]
EMISSIVE_HEADLIGHTS_MULT	=	5

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = Carpaint
CarPaintVersionAware = 1
DisableDev = 1

[Material_CarPaint_Metallic]
FresnelMax = 1
FresnelC = 0.1
BrightnessAdjustment = 0.9
AmbientSpecular = 0.5
AmbientSpecularEXP = 1.0
SpecularBase  = 0.2, 50
SpecularColor = 1
SpecularMult = 0.6
ClearCoatThickness = 0.1
PROP_23=extClearCoatThickness, 0.1
NormalsMode = BASIC

[Material_CarPaint_Metallic]
Materials = MEISTER_SHDR
FresnelMax = 0.3
FresnelC = 0.05
BrightnessAdjustment = 0.7
SpecularBase = 0.5, 100
SpecularSun = 0, 200
SpecularMult = 0.15
AmbientSpecular = 1.0
AmbientSpecularEXP= 2.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.01
ClearCoatTint = 0, 0, 0
NormalsMode = BASIC

[Material_InteriorPBRDetail] ; 
Materials= Material #11148
Metalness = 0.07
Reflectance = 0.07
BrightnessAdjustment = 0.1
DetailNormalTexture = common/pbr_metal.dds
DsetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailScale = 0
DetailNormalBlend = 0
DetailNormalPBRSmoothnessGamma = 5
Smoothness = 0.3

[Material_Metal_v2] 
Materials= chromepin
HasDetailNormals = 1
Metalness = 0.1
Reflectance = 0.1
Smoothness = 0.4
BrightnessAdjustment = 0.14
LocalReflectionsSharpness = 1
OcclusionSource = NONE 
DetailScale = 8 

[Material_Metal_v2] 
Materials= Material__37
HasDetailNormals = 1
Metalness = 0.15
Reflectance = 0.1
Smoothness = 0.4
BrightnessAdjustment = 0.12
LocalReflectionsSharpness = 1
OcclusionSource = NONE 
DetailScale = 8 

[Material_Metal_v2] 
Materials= REAREND_SILVERS
HasDetailNormals = 1
Metalness = 0.13
Reflectance = 0.2
Smoothness = 0.4
BrightnessAdjustment = 0.14
LocalReflectionsSharpness = 1
OcclusionSource = NONE 
DetailScale = 11 

[Material_Metal_v2] 
Materials= REAREND_FITTINGS
HasDetailNormals = 1
Metalness = 0.11
Reflectance = 0.2
Smoothness = 0.4
BrightnessAdjustment = 0.12
LocalReflectionsSharpness = 1
OcclusionSource = NONE 
DetailScale = 14

[Material_Metal_v2]
Materials= Belt_Fix
BrightnessAdjustment = 0.2
DetailScale = 0
Metalness = 0.3
Reflectance = 0.1
LocalReflectionsSharpness = 0.3Z
ApplyTilingFix=1

[Material_Metal_v2]
Materials= chrome
BrightnessAdjustment = 0.3
DetailScale = 20
Metalness = 0.7
Reflectance = 0.1
LocalReflectionsSharpness = 0.3Z
ApplyTilingFix=1

[Material_Carbon] 
Meshes = EXT_Carbon
HasDetailNormals = 1
Smoothness = 1.0
Reflectance = 0.1
BrightnessAdjustment = 0.26
CubemapReflectionBlur = 0.55
UseClearCoat = 1
ClearCoatSmoothness = 1.0
ClearCoatIntensity = 1.0
DetailTexture = common/carbon.png
DetailNormalTexture = common/carbon_nm.png
DetailNormalBlend = 0.3
DetailScale = 191

[Material_Carbon] 
Meshes =  seatl_a04
HasDetailNormals = 1
Smoothness = 1.0
Reflectance = 0.1
BrightnessAdjustment = 0.26
CubemapReflectionBlur = 0.55
UseClearCoat = 1
ClearCoatSmoothness = 1.0
ClearCoatIntensity = 1.0
DetailTexture = common/carbon.png
DetailNormalTexture = common/carbon_nm.png
DetailNormalBlend = 0.3
DetailScale = 290

[Material_Carbon] 
Meshes =  INT_Carbon
HasDetailNormals = 1
Smoothness = 1.0
Reflectance = 0.1
BrightnessAdjustment = 0.26
CubemapReflectionBlur = 0.55
UseClearCoat = 1
ClearCoatSmoothness = 1.0
ClearCoatIntensity = 1.0
DetailTexture = common/carbon.png
DetailNormalTexture = common/carbon_nm.png
DetailNormalBlend = 0.3
DetailScale = 156

[Material_Velvet_v2]
Materials = Dash_Main
BrightnessAdjustment = 0.15
DetailScale = 12
ApplyTilingFix=1

[Material_Velvet_v2]
Materials = suede_001
BrightnessAdjustment = 0.14
DetailScale = 30
ApplyTilingFix=1


[EMISSIVE_EXTRA_A_0]   
NAME=EXT_HLHousing_SUB1
COLOR=135,220,350,2
CAST_LIGHT	=	1
BIND_TO_HEADLIGHTS=0
ACT_AS_HEADLIGHTS	=	1
BIND_TO_EXTRA_A=1


[INCLUDE: common/selflighting.ini]
[SelfLight_Headlights]
POSITION=0, 0.54, 2
DIRECTION=0,0,1
SPOT=90
COLOR=3,7,9,6
RANGE_GRADIENT_OFFSET=0
MIRROR=0.6
BIND_TO_HEADLIGHTS=1
[SelfLight_Headlights]
POSITION=0, 0.56, 2.03
DIRECTION=0,0.2,1
SPOT=90
COLOR=3,7,9,6
RANGE_GRADIENT_OFFSET=0
MIRROR=0.44
BIND_TO_HEADLIGHTS=0
BIND_TO_EXTRA_A=1

;---------------------///Glass///---------------------

[INCLUDE: common/materials_glass.ini]
ExteriorGlassTintedMaterials = 
ExteriorGlassHeadlightsMaterials = headlight_glass

[Material_Glass]
Meshes = taillightglass000, wing_lf_ok_SUB007
ThicknessMult = 1.4
FresnelC = 0.15

[Material_Glass]
Materials = 
IOR = 2.2            ; looks better like this
FilmIOR = $IOR       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 0.3  ; thicker glass passes less light through
ProfileFix = 0.05    ; adds thickness to glass for glazing angles
MaskPass = 1.5            ; mask pass opacity
MaskPassColor = 0, 1, 1  ; mask pass color adjustment
ExtraLightsAdjustment = 0.1  ; intensity of extra lights

[Material_PhotoelasticGlass]
Meshes = 
ThicknessMult = 1
FresnelC = 0.15
IOR = 1
Refraction = 1
RefractionRainbow = 1
PhotoelasticityMult = 0.
PhotoelasticityBaseScale = 0.6  ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.4  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.1   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.9  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale =2   ; how many stripes are there
ProfileFix = 0.02

[Material_Glass]
Meshes=
IOR = 2.2            ; looks better like this
FilmIOR = $IOR       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 0.3  ; thicker glass passes less light through
ProfileFix = 0.05    ; adds thickness to glass for glazing angles
MaskPass = 1.5            ; mask pass opacity
MaskPassColor = 0, 1, 1  ; mask pass color adjustment
ExtraLightsAdjustment = 0.1  ; intensity of extra lights


;---------------------///Extras///---------------------

[BRAKEDISC_FX]
ACTIVE = 1             ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0            ; use ceramic look
CARVED = 1            ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 0  ; increase to make more lines
GLOW_OFFSET = 0.8     ; increase to offset heated and worn center more to the center, decrease to offset it more to the outside area; with 0.5, it would be in the middle

; Patch guesses holes from alpha-channel of txDiffuse. Holes don’t glow or reflect stuff and look dark:
ALPHA_MASK = 0.0, 0.0  ; hole is everything with alpha below 0.1, everything with alpha above 0.2 is not a hole, in-between is a transition

; Patch can also estimate deepenings based on luminance and normal texture. Deepenings glow with a delay (but fully heated, glow more) and are a bit occluded:
LUMINOCITY_MASK = 0.01, 0.06  ; everything darker than 0.01 is a deepening
NORMAL_MASK = 0.0, 0.0        ; everything looking away more than 50% is a deepening

; Patch would try and guess size of brake disc and its inside area from its mesh, but if it fails:
DISC_RADIUS = 0.172         ; radius of a brake disc
DISC_INTERNAL_RADIUS = 0.113  ; radius of an inside part of a brake disc

; Another feature is that patch would mask reflections with rim, stopping brake disc from reflecting sky if looked at a angle. By default it would use rim radius and 60% of wheel width (for the distance between brake disc and exterior part) from “tyres.ini”, could be changed if needed:
RIM_RADIUS = 0.1  ; inside radius of a rim
RIM_HEIGHT = 0.1   ; distance between surface of brake disc and vertical surface of a wheel rim

DEBUG = 0 ; set to 1 to highlight shape:
    ; • cyan is for the actual disc;
    ; • yellow is for the deepenings;
    ; • dark blue is for the inside part;
    ; • pink is for the outside part;
    ; • red is for the borders;
    ; • black is for holes.
WEAR_FORCE = 0.6  ; force certain wear level

;---------------------///Audio///---------------------

[AUDIO_VOLUME]
ENGINE_EXT = 1.0
ENGINE_INT = 1.0
GEAR_EXT = 1.0
GEAR_INT = 1.0
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
HORN = 1.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1.0
BACKFIRE_INT = 1.0
TRACTION_CONTROL_EXT = 1.0
TRACTION_CONTROL_INT = 1.0
TRANSMISSION = 1.0
LIMITER = 1.0
TURBO = 1.0

[AUDIO_PITCH]
ENGINE_EXT = 1.0
ENGINE_INT = 1.0
GEAR_EXT = 1.0
GEAR_INT = 1.0
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
HORN = 1.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1.0
BACKFIRE_INT = 1.0
TRACTION_CONTROL_EXT = 1.0
TRACTION_CONTROL_INT = 1.0
TRANSMISSION = 1.0
LIMITER = 1.0
TURBO = 1.0
HIT = 1.0
SCRAPE = 1.0
WHEEL = 1.0
SKID_EXT = 0.7
SKID_INT = 0.7

[AUDIO_PARAMETER_TRANSFORM]
; Originally, AC would sent 10000 to soundbank, but now it’ll send 5000 instead. Or, 
; it’ll send 2500 instead of 5000 — values in-between these points are linearly interpolated.
ENGINE_EXT_RPMS = (| 0=0 | 8250=9000 |)
ENGINE_INT_RPMS = (| 0=0 | 8250=9000 |)