[INCLUDE: common/materials_interior.ini]
[INCLUDE: pbr.ini]
[INCLUDE: pbr_ext.ini]
[INCLUDE: common/materials_glass.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: navigators_mixins.ini]
[INCLUDE: android_auto/config.ini]
[INCLUDE: common/navigators.ini]

/// Felgen Replacement TE37v

[MODEL_REPLACEMENT_...]
ACTIVE = 1
FILE = msc_bmw_m3_e92_gts.kn5
SKINS = 2-GTS-1, 5-GRAY, 11-Pearl
HIDE = TYRE_LF, RIM_LF
INSERT = TE37V_LF.kn5
INSERT_AFTER = RIM_LF
INSERT_IN = RIM_LF     
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.630
ROTATION = 180, 0, 0
OFFSET = 0.015, 0, 0   

[MODEL_REPLACEMENT_...]
ACTIVE = 1       
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 2-GTS-1, 5-GRAY, 11-Pearl
HIDE = TYRE_RF, RIM_RF 
INSERT = TE37V_RF.kn5      
INSERT_AFTER = RIM_RF
INSERT_IN = RIM_RF    
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.630    
ROTATION = 0, 0, 0  
OFFSET = -0.015, 0, 0

[MODEL_REPLACEMENT_...]
ACTIVE = 1      
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 2-GTS-1, 5-GRAY, 11-Pearl
HIDE = TYRE_LR, RIM_LR
INSERT = TE37V_RL.kn5       
INSERT_AFTER = RIM_LR
INSERT_IN = RIM_LR     
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.662  
ROTATION = 180, 0, 0  
OFFSET = 0.045, 0, 0    

[MODEL_REPLACEMENT_...]
ACTIVE = 1       
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 2-GTS-1, 5-GRAY, 11-Pearl
HIDE = TYRE_RR, RIM_RR
INSERT = TE37V_RR.kn5
INSERT_AFTER = RIM_RR
INSERT_IN = RIM_RR  
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.662
ROTATION = 0, 0, 0
OFFSET = -0.045, 0, 0

/// Felgen Replacement TE37vSL

[MODEL_REPLACEMENT_...]
ACTIVE = 1
FILE = msc_bmw_m3_e92_gts.kn5
SKINS = 6-GRAY-2, 3-GTS, 9-Nightblue, 7-Green
HIDE = TYRE_LF, RIM_LF
INSERT = TE37VSL_LF.kn5
INSERT_AFTER = RIM_LF
INSERT_IN = RIM_LF     
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.630
ROTATION = 180, 0, 0
OFFSET = 0.015, 0, 0   

[MODEL_REPLACEMENT_...]
ACTIVE = 1       
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 6-GRAY-2, 3-GTS, 9-Nightblue, 7-Green
HIDE = TYRE_RF, RIM_RF 
INSERT = TE37VSL_RF.kn5      
INSERT_AFTER = RIM_RF
INSERT_IN = RIM_RF    
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.630    
ROTATION = 0, 0, 0  
OFFSET = -0.015, 0, 0

[MODEL_REPLACEMENT_...]
ACTIVE = 1      
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 6-GRAY-2, 3-GTS, 9-Nightblue, 7-Green
HIDE = TYRE_LR, RIM_LR
INSERT = TE37VSL_RL.kn5       
INSERT_AFTER = RIM_LR
INSERT_IN = RIM_LR     
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.662  
ROTATION = 180, 0, 0  
OFFSET = 0.045, 0, 0    

[MODEL_REPLACEMENT_...]
ACTIVE = 1       
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 6-GRAY-2, 3-GTS, 9-Nightblue, 7-Green
HIDE = TYRE_RR, RIM_RR
INSERT = TE37VSL_RR.kn5
INSERT_AFTER = RIM_RR
INSERT_IN = RIM_RR  
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.662
ROTATION = 0, 0, 0
OFFSET = -0.045, 0, 0

/// Felgen Replacement Bricton Forged

[MODEL_REPLACEMENT_...]
ACTIVE = 0
FILE = msc_bmw_m3_e92_gts.kn5
SKINS = 12-Brixton Forged
HIDE = TYRE_LF, RIM_LF
INSERT = Brixton Forged_LF.kn5
INSERT_AFTER = RIM_LF
INSERT_IN = RIM_LF     
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.630
ROTATION = 180, 0, 0
OFFSET = 0.015, 0, 0   

[MODEL_REPLACEMENT_...]
ACTIVE = 0       
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 12-Brixton Forged
HIDE = TYRE_RF, RIM_RF 
INSERT = Brixton Forged_RF.kn5      
INSERT_AFTER = RIM_RF
INSERT_IN = RIM_RF    
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.630    
ROTATION = 0, 0, 0  
OFFSET = -0.015, 0, 0

[MODEL_REPLACEMENT_...]
ACTIVE = 0      
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 12-Brixton Forged
HIDE = TYRE_LR, RIM_LR
INSERT = Brixton Forged_RL.kn5       
INSERT_AFTER = RIM_LR
INSERT_IN = RIM_LR     
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.662  
ROTATION = 180, 0, 0  
OFFSET = 0.045, 0, 0    

[MODEL_REPLACEMENT_...]
ACTIVE = 0       
FILE = msc_bmw_m3_e92_gts.kn5  
SKINS = 12-Brixton Forged
HIDE = TYRE_RR, RIM_RR
INSERT = Brixton Forged_RR.kn5
INSERT_AFTER = RIM_RR
INSERT_IN = RIM_RR  
MULTIPLE = 0 
MERGE = 0     
SCALE = 0.662
ROTATION = 0, 0, 0
OFFSET = -0.045, 0, 0

/// Materials

[Material_Chrome]
Materials = Material #45
Smoothness = 0.95
Metalness = 0.5
Reflectance = 0.7
BrightnessAdjustment = 0.1
CubemapReflectionBlur = 1

[Material_Chrome]
Materials = Material #59, Material #60, Material #61
Smoothness = 0.4
Metalness = 0.1
Reflectance = 1
BrightnessAdjustment = 0.5
CubemapReflectionBlur = 1

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


[Material_Aluminium_v2]
Materials = CAR_lights
Smoothness = 0.05
Metalness = 1
Reflectance = 2
BrightnessAdjustment = 0.4
CubemapReflectionBlur = 0
PROP_22=pbReflectionBlurEnv, 0
HasDetailNormals=1

[Material_PhotoelasticGlass]
Meshes = REAR_LIGHT_GLASS
FilmIOR = 3.6
PhotoelasticityMult = 0.4  ; doesn’t look good if too high
ThicknessMult = 2.0
MaskPass = 2.5
MaskPassColor = 104, 10, 25
ExtraLightsAdjustment = 0.018
; Ideally, there would be a texture for that, but we’re not going to draw
; all those textures for Kunos cars, so here are some parameters for perlin noise
; instead
PhotoelasticityBaseScale = 1     ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.0003  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.001   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.32  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 3   ; how many stripes are therr

[Material_Leather_v2]
Materials = TopDash, INT_speakers
DetailScale =27
Reflectance = 0.2
UseClothShading = 1
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.06

[Material_Leather_v2]
Materials = IntLeather1
DetailScale =15
Reflectance = 0.2
UseClothShading = 1
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.18

[Material_Leather_v2]
Materials = 
DetailScale =15
Reflectance = 0.2
UseClothShading = 1
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.1

[Material_Aluminium_v2]
Materials= IntChrome, INT_chrome
Metalness = 0.1
Reflectance = 0.95
BrightnessAdjustment = 0.4
DetailTexture = 1
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailScale =1
DetailNormalBlend = 1
DetailNormalPBRSmoothnessGamma = 2

[Material_Carpet_v2]
Materials = carpetint, INT_floor_mats
BrightnessAdjustment = 0.3
Reflectance = 0.1
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 1
DetailScale = 13

[Material_InteriorPBRDetail]
Materials = IntPlastic, INT_plastic_black_lucid,
ColorSource=DIFFUSE
Reflectance=0.1
Smoothness=0.4
Metalness=0.8
CubemapReflectionBlur=1
Brightness=0.5
OcclusionMult=0.6
DetailScale=0
ApplyTilingFix=1

[SHADER_REPLACEMENT_...]
MATERIALS = CAR_LOGHI_BMW
PROP_... = fresnelEXP, 8
PROP_... = fresnelMaxLevel, 1
PROP_... = fresnelC, 0.2
PROP_... = isAdditive, 0

[Material_Velvet_v2]
Materials= AlcntSeats, IntAlcantara, i forgot this alcantara, BottomDash,
Brightness = 0.3
DetailNormalTexture = common/pbr_fabric.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
UseClothShading = 1
Reflectance = 0.2
DetailScale =30
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.3
ApplyTilingFix=1

[Material_Velvet_v2]
Materials= IntAlcantara
Brightness = 0.6
DetailNormalTexture = common/pbr_fabric.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
UseClothShading = 1
Reflectance = 0.2
DetailScale =30
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.3
ApplyTilingFix=1

[Material_Velvet_v2]
Materials= IntLeather1
Brightness = 0.35
DetailNormalTexture = common/pbr_fabric.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
UseClothShading = 1
Reflectance = 0.2
DetailScale =30
ClothSheenColor = 1, 1, 1, 1
BrightnessAdjustment = 0.3
ApplyTilingFix=1

;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = REAR_LIGHT_GL
ThicknessMult = 2.1
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=3d


[Material_PhotoelasticGlass]
Meshes = FRONT_LIGHT_GLASS
PhotoelasticityBaseScale = 3    ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.09  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.10   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.1  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 14  ; how many stripes are there
ProfileFix = 0.01



/// Lights


[LIGHT_EXTRA_...]; top interior light
AFFECTS_TRACK=0
BIND_TO_EXTRA_B=1
BIND_TO_HEADLIGHTS=0
COLOR=1, 1, 1.0, 2
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.0,1.13,0.41
DIRECTION=0,-2,0.1
RANGE=6.0
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=0.9
SPOT=170
SPOT_SHARPNESS=0.1

[EXTRA_FX]
MASK_GBUFFER = FRONT_LIGHT_GLASS


[EMISSIVE_EXTRA_A_...]
BIND_TO_HEADLIGHTS=0
AFFECTS_TRACK=1
NAME=FRONT_LIGHT_POSITION
COLOR=11,11,11, 150
FALLBACK_HEADLIGHTS_COLOR=11,11,11, 150
LAG=0
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.7

[EMISSIVE_LIGHT_...]
NAME=FRONT_LIGHT_HIGH
TOGGLE_VISIBILITY = 0
BIND_TO_HEADLIGHTS=1
COLOR=11,11,11, 30
LAG=0.2
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...]
NAME=FRONT_LIGHT_LOW
TOGGLE_VISIBILITY = 0
COLOR=11,11,11, 30
LAG=0.2
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[LIGHT_LICENSEPLATE]
MESHES= Plate_LODA
OFFSET=-0.0, 0.06, -0.15
RANGE=0.10
RANGE_GRADIENT_OFFSET=0.3
SPOT=150
SPOT_SHARPNESS=0.9
COLOR=2.1, 2, 2.3, 1.8
FALLBACK_EMISSIVE=1,1,1,1
; other supported values: TWO_ON_TOP, ONE_ON_TOP
LAYOUT=TWO_ON_TOP
FADE_AT=50
FADE_SMOOTH=4

[EMISSIVE_LIGHT_...];LICENSE_LIGHTS
NAME= Plate_LODA
COLOR=10, 10, 10, 0.0
SIMULATE_HEATING=0.2
LAG=0.1

[EMISSIVE_BRAKE_...]
NAME= REAR_LIGHT_STOP
COLOR=20, 2, 0, 100
LAG=0.15
SIMULATE_HEATING=0.9
OFF_COLOR =20, 20, 20, 0
LOCATION=REAR
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_BRAKE_...]
NAME= REAR_LIGHT_LIGHT
COLOR=20, 20, 20, 5
LAG=0.15
SIMULATE_HEATING=0.9
OFF_COLOR =20, 20, 20, 0
FALLBACK_LOWBEAM_COLOR=20, 20, 20, 3
FALLBACK_HIGHBEAM_COLOR=20, 20, 20, 3
LOCATION=REAR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.6

[INCLUDE: common/materials_glass.ini]
ExteriorGlassMaterials = 
ExteriorGlassFilmedMaterials = Glass

/// CSP Stuff

[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 = 0             ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 20  ; 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.1, 0.2  ; 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.02  ; everything darker than 0.01 is a deepening
NORMAL_MASK = 0.5, 0.3        ; everything looking away more than 50% is a deepening


[SHAKING_EXHAUST_0]
MESHES = Remus Exhaust_SUB0, Remus Exhaust_SUB1
POINT_0 = -0.02,-0.10,0.0　
POINT_0_RADIUS = 1 
POINT_0_EXP = -0.4
POINT_0_SCALE = 0.1, 0.7, 0		

[PARTICLES_FX_EXHAUST_0]
POSITION=0.300,0.28,-2.14
DIRECTION = 0.060, 0.000, -1.000
SPREAD = 2
GROW = 0.5
LIFE = 10, 10   
SPEED = 0.6, 1.8
INTENSITY = 0.1, 0.4
TEMPERATURE_THRESHOLD = 0
SPEED_THRESHOLD = 10, 40

[PARTICLES_FX_EXHAUST_1]
POSITION=0.250,0.28,-2.5
DIRECTION = 0.060, 0.000, -1.000
SPREAD = 1
GROW = 0.5
LIFE = 10, 10   
SPEED = 0.6, 1.8
INTENSITY = 0.1, 0.4
TEMPERATURE_THRESHOLD = 0
SPEED_THRESHOLD = 10, 40

[PARTICLES_FX_EXHAUST_2]
POSITION=-0.290,0.28,-2.5
DIRECTION = 0.060, 0.000, -1.000
SPREAD = 1
GROW = 0.5
LIFE = 10, 10   
SPEED = 0.6, 1.8
INTENSITY = 0.1, 0.4
TEMPERATURE_THRESHOLD = 0
SPEED_THRESHOLD = 10, 40

[PARTICLES_FX_EXHAUST_3]
POSITION=-0.200,0.28,-2.5
DIRECTION = 0.060, 0.000, -1.000
SPREAD = 1
GROW = 0.5
LIFE = 10, 10   
SPEED = 0.6, 1.8
INTENSITY = 0.1, 0.4
TEMPERATURE_THRESHOLD = 0
SPEED_THRESHOLD = 10, 40


[AUDIO_PITCH]
ENGINE_EXT = 1.1
ENGINE_INT = 1.1
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 = 0
LIMITER = 0
TURBO = 0
HIT = 1.0
SCRAPE = 1.0
WHEEL = 1.0
SKID_EXT = 1.0
SKID_INT = 1.0

[AUDIO_VOLUME]
BACKFIRE_EXT=5
BACKFIRE_INT=7
BODYWORK=1
DIRT=1.0
DOWN_SHIFT=1.5
ENGINE_EXT=0.8
ENGINE_INT=0.8
GEAR_EXT=1.0
GEAR_GRIND=1.0
GEAR_INT=1.0
HORN=1
LIMITER=3
TRACTION_CONTROL_EXT=1
TRACTION_CONTROL_INT=1
TRANSMISSION=0.1
TURBO=0.0
WIND=1

[ANIMATION_0]
FILE=car_door_L.ksanim
TIME= 1
BIND_TO_EXTRA_C=1


[ANIMATION_1]
FILE=car_door_R.ksanim
TIME= 1
BIND_TO_EXTRA_D=1

\\ Lackierungen

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = Carpaint, CAR_chassis

[Material_CarPaint_Chameleon]
Skins =9-Nightblue
BaseSpecularColor = 4, 0, 50 ; specular color
FresnelMax = 0.5
FresnelC = 0.1
AmbientSpecular = 0.5
SpecularBase = 1.0, 50
SpecularSun = 4, 200
SunMultiplier = 2
BrightnessAdjustment = 1.4
ChameleonColorA = 0.05, 0.026, 0.05, 0.1
ChameleonColorB = 0.25,0.15,0.05, 0.5
ChameleonExponent = 0.9
ChameleonCenter = 0.8
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.35
ApplyTilingFix=1
UseDiffuseAlphaAsChameleonMask = 1
FlakesK = 1.8

[Material_CarPaint_Metallic]
Skins = 7-GreenA
BaseSpecularColor = #04c7a8
FresnelMax = 0.6
FresnelC = 0.08
FlakesK = 2
BrightnessAdjustment = 1.2
SpecularBase = 0.4, 110
SpecularSun = 1, 500
AmbientSpecular = 2.0
AmbientSpecularEXP= 11.0
UseDiffuseAlphaAsMask = 1
ClearCoatThickness = 0.2
ClearCoatTint = 0, 0, 0
UseMetallicReflections = 0.3


[Material_CarPaint_Pearl]
Skins= 11-Pearl
BaseSpecularColor = #0082CE
FresnelMax = 0.5
FresnelC = 0.08
FlakesK = 1.8
BrightnessAdjustment = 0.22; compensates for ambient specular
PearlescentSpecular = 0.8
AmbientSpecular = 1.0
AmbientSpecularEXP = 10.0
ClearCoatThickness = 0.35
SpecularBase = 0.3, 25
SpecularSun = 0.3, 200

[Material_CarPaint_Pearl]
Skins= 12-Daytona Violet
BaseSpecularColor = #b5a0c7
FresnelMax = 0.5
FresnelC = 0.08
FlakesK = 0.8
BrightnessAdjustment = 0.9; compensates for ambient specular
PearlescentSpecular = 0.6
AmbientSpecular = 0.6
AmbientSpecularEXP = 10.0
ClearCoatThickness = 0.4
SpecularBase = 0.6, 30
SpecularSun = 0.3, 200

[SHADER_REPLACEMENT_...]
ACTIVE = 1
MATERIALS = CAR_stencil, WCCARBODY, 
SKINS = 11-Pearl, 7-GreenA
PROP_0 = ksAmbient, 0.05
PROP_1 = ksDiffuse, 0.1

[SHADER_REPLACEMENT_...]
ACTIVE = 1
MATERIALS = INT_textured
PROP_0 = ksAmbient, 0.01
PROP_1 = ksDiffuse, 0.01

//Android

[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes = COCKPIT_HR_mesh_SUB14
Resolution = 1900, 500
Size = 950, 400
Offset = 850, 90
Scale = 1
RearCameraPosition = 0, 0.746, -2.54
aftermarketComponent=1

[EXTRA_FX]
GLASS_FILTER = COCKPIT_HR_mesh_SUB14
SKIP_GBUFFER = 

[INCLUDE: common/materials_interior.ini]
[Material_DigitalScreen]
Materials = INT_display
ScreenScale = 700
ScreenAspectRatio = 0.5
MatrixType = IPS



