[INCLUDE]
INCLUDE=common
[INCLUDE: common/materials_interior.ini] 
[INCLUDE: common/navigators.ini]
[INCLUDE: common/no_popup_lights.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: navigators_mixins.ini]
[INCLUDE: android_auto/config.ini]
[INCLUDE: pbr_int.ini]
[INCLUDE: pbr_ext.ini]
[INCLUDE: navigators_maps.ini]

[AUDIO_VOLUME]
ENGINE_EXT = 1.0
ENGINE_INT = 0.9
GEAR_EXT = 1.0
GEAR_INT = 1.0
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
UP_SHIFT = 1.0
HORN = 1.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1.2
BACKFIRE_INT = 1.0
TRACTION_CONTROL_EXT = 1.0
TRACTION_CONTROL_INT = 1.0
TRANSMISSION = 1.0
LIMITER = 1.0
TURBO = 0.9
RAIN_EXT=1.0
RAIN_INT=1.0
WIPER_EXT=1.0
WIPER_INT=1.0

----------------------------------------------------
--               EXHAUST               --
----------------------------------------------------

[INCLUDE: common/gt3_exhaust_glow.ini]
[EMISSIVE_WATER_TEMP_0_EXHAUST_GLOW]
MESHES = 
COLOR = 25, 3, 0, 3
USE_SMOOTH_TRANSITION = 1
INPUT_MIN = 82
INPUT_MAX = 100
INPUT_LUT = (| 84 = 0 | 95 = 1 |)
AFFECTS_TRACK = 1
SPECULAR_MULT = 3

[BASIC]
DIESEL_ENGINE = 0 		; or 1




[PARTICLES_FX_EXHAUST_0]
POSITION=-0.0,0.22,-1.70
DIRECTION=0,-0.005,-1
COLOR=0.15,0.15,0.15			                ; RGB blend - 0,0,0 is black, 1,1,1 is white
LIFE=0.7,0.7				; how long particles last in the air before disappearing
SPEED=6				; how fast smoke particles fly from the exhaust
SPREAD=6				; initial spread of particles
STARTING_SIZE=0.6			; initial size of particles
SPAWN_OFFSET=0.07			; initial spawn point offset (length-wise)
INTENSTY=0.01,0			                ; smoke intensity
TEMPERATURE_LAG=10			; engine heating up (1 to disable)
SPEED_THRESHOLD=220,460 		; speed at which the smoke disappears

[PARTICLES_FX]
SPARKS_AS = STEEL ; base material tags for all the colliders including collider.kn5
BODY_SPARKS_AS = CARBON ; material tags for collider.kn5
COLLIDER_0_SPARKS_AS = TITANIUM, SKIDPAD ; material tags for COLLIDER_0 in colliders.ini
COLLIDER_1_SPARKS_AS = IRON ; material tags for COLLIDER_0 in colliders.ini

[WOBBLY_BIT_...]
NAME = EXHAUST          ; name of the node to move
CONNECTED_TO = 1, 1, 1   ; point to which node is attached to, and around which it will rotate
MAX_RANGE = 0.004                ; max range node can move from its original position
DAMPENING_LAG = 0.9            ; think of it as usual AC lag value, trying to zero node’s speed
G_GAIN = 24                      ; how much G-forces affect node’s speed
GRAVITY_GAIN = 3                ; how much gravity affects node’s speed
OFFSET_GAIN = 2000              ; how strong is returning force
STIFF_AXIS = 1, 1, 0            ; optional higher stiffness axis to reduce movement along it
STIFF_AXIS_STIFFNESS = 1      ; now stiff is optional stiffness axis
G_FILTER = 0                    ; temporal filter for G-forces
DEFAULT_GRAVITY_INCLUDED_ALREADY = 1 ; either `0` or `1`; set it to `1` if you don’t want gravity to skew your stuff when car is in neutral position

[EXHAUST_FLAMES]
ANTILAG=1.0
ANTILAG_DELAY=0.005
ANTILAG_INTENSITY=140
ANTILAG_INTERVAL_MAX=10.0
ANTILAG_INTERVAL_MIN=0.0
ANTILAG_TURBO_THRESHOLD=0.4
DAMAGE=0
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1
DISCHARGE_CHARGE_TIME=0.25
DISCHARGE_DELAY=0.02
DISCHARGE_DURATION=2
DISCHARGE_INTENSITY=120
DISCHARGE_PROBABILITY=0.98
DISCHARGE_RPM_THRESHOLD_MAX=9500
DISCHARGE_RPM_THRESHOLD_MIN=6000
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=60
FLAT_SHIFT=1
FLAT_SHIFT_COOLDOWN=0.05
FLAT_SHIFT_DURATION=0.01
FLAT_SHIFT_GAS_THRESHOLD=50
FLAT_SHIFT_INTENSITY=10
FLAT_SHIFT_PROBABILITY=0.9
FLAT_SHIFT_RPM_THRESHOLD=8500
LIMITER=9500
LIMITER_DELAY=0.0001
LIMITER_INTENSITY=80
LIMITER_RPM_THRESHOLD=9000



[BASIC]
BOUNDING_SPHERE_RADIUS=3
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=1
EXTERIOR_RANGE_FROM=1
EXTERIOR_RANGE_TO=1.1
HAZARD_LIGHTS_ENGINE_LIFE_THRESHOLD=0.001
LIGHT_DAMAGE_SPEED_MAX=120
LIGHT_DAMAGE_SPEED_MIN=80
TURNING_LIGHTS_REPEAT=1
HEADLIGHTS_ARE_HEADLIGHTS=1
IS_LOW_BEAM_AVAILABLE=1

[DATA] 
DISABLE_LIGHTSINI=0

[SMART_MIRROR]
VISIBLE_FIRSTPERSON=RIGHT

────────────────────── Exterior PBR Shaders────────────────────────
[TYRES_FX]
BROKEN_TYRES_DYNAMIC=1

[SHADOWED_WHEELS_FRONT]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=1
DISTANCE=3
EXTRA_AMBIENT_BRIGHTNESS=0.12
OFFSET=0.01
WIDTH=0.2

[SHADOWED_WHEELS_REAR]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=1
DISTANCE=3
EXTRA_AMBIENT_BRIGHTNESS=0.12
OFFSET=0.01
WIDTH=0.2

[REFLECTIONS_FX]
ALLOW_INTERIOR_SSAO=0
ALLOW_INTERIOR_SSGI=0
AUTOFIX=1
MASK_CUBEMAP_ENABLED=1
MASK_CUBEMAP_OFFSET=0, -0.1, 0.2
MASK_CUBEMAP_TWEAK=0.5

[SMART_MIRROR]
DISALLOW_MAPPING_NORMALIZATION=0
DISALLOW_REAR_MIRROR=0
DISALLOW_REFLECTION_TILTING=0
SHAKING=0

[STATUS_BATTERY]
BASE_VOLTAGE=12.4
MAX_VOLTAGE=13.6
RPM_LAG=0.98

[STATUS_EXHAUST]
TEMPERATURE_BOOST=400
TEMPERATURE_IDLE=400
TEMPERATURE_LAG_DOWN=0.995
TEMPERATURE_LAG_UP=0.998
TEMPERATURE_RPM=100

[STATUS_OIL]
PRESSURE_BASE=1
PRESSURE_LAG_DOWN=0.9985
PRESSURE_LAG_UP=0.998
PRESSURE_STEP=0.7
TEMPERATURE_LAG_DOWN=0.995
TEMPERATURE_LAG_UP=0.995
TEMPERATURE_MULT=1
TEMPERATURE_OFFSET=0
TEMPERATURE_RPM_FACTOR=0.03

[BRAKEDISC_FX]
ACTIVE = 1   
REFRESH = 1          ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0         ; use ceramic look
CARVED = 30              ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 0.72   ; 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
DEBUG = 0
DISC_INTERNAL_RADIUS = 0.110
DISC_RADIUS = 0.200
ALPHA_MASK = 0.012, 0.07
LUMINOCITY_MASK = 0.08 0.3
WEAR_FORCE = 0.6
;GLOW_FORCE = 0.0


;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = Glass_Material, Window_Material
ThicknessMult = 0.8
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=3.0


────────────────────── MATERIALS (EXTERIOR) ────────────────────────

[INCLUDE: common/materials_interior.ini]

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

;Int Plastic
[Material_Plastic_v2]
Materials = int_plastic
BrightnessAdjustment = 0.3
DetailScale = 80
DetailTextureBlur = 1
DetailNormalBlend = 1
Reflectance = 0.02
Smoothness = 0.1

;Int Fake Leather
[Material_Plastic_v2]
Materials = int_fake_leather
BrightnessAdjustment = 0.2
DetailScale =80
DetailNormalBlend = -0.5
Reflectance = 0.02
Smoothness = 0.1


;Int Smooth Plastic
[Material_Plastic_v2]
Materials = gaugepod
BrightnessAdjustment = 0.02
DetailScale = 10
DetailTextureBlur = 1
DetailNormalBlend = 1
Reflectance = 0.05
Smoothness = 0.2

;Int Piano Black
[Material_Plastic_v2]
Materials = INT_Decals_Plastic_Base
BrightnessAdjustment = 0.2
DetailScale = 0
Reflectance = 0.15
Smoothness = 0.999999

;Int Alcantara
[Material_Velvet_v2]
Materials = 
DetailScale=70
DetailNormalBlend = 1
BrightnessAdjustment=0.17
ApplyTilingFix=0

;Int Carpet
[Material_Velvet_v2]
Materials = int_fabirc
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 0.0
DetailScale = 60
ClothSheenColor = 1,1,1
BrightnessAdjustment = 0.1



;Int Detailed Leather
[Material_LeatherDetailed]
Materials =
Smoothness = 0
Reflectance = 0.004
ApplyTilingFix = 0
HasDetailNormals = 1
DetailNormalBlend = 0.1
DetailScale = 140
DetailNormalPBRFormat = 1
DetailNormalTexture = common/pbr_leather_spotty.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.1
DetailNormalPBRReflectance = 0.5

[Material_Leather_v2]
Materials= int_leather
DetailScale = 77
DetailNormalPBRSecondaryColor = 0.5, 0.5, 0.5, 0.1
Brightness = 1

;Int Old Leather
[Material_Leather_v2]
Materials = INT_wheelLeather
Reflectance = 0.02
DetailNormalTexture = common/pbr_leather_bumpy.dds
DetailNormalIntensity = 3
DetailNormalPBRSecondaryColor = 1, 1 1, .08
DetailScale = 35
BrightnessAdjustment = 0.14
DetailNormalBlend = 1
;Int Alu 1 
[Material_Aluminium_v2]
Materials = sportcomp2_main
BrightnessAdjustment = 0.22
Metalness = 0.2
Reflectance = 0.3
DetailTexture = 1
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailScale = 30
DetailNormalBlend = 1
DetailNormalPBRSmoothnessGamma = 2

;Int brushed
[Material_Metal_v2]
Meshes = GEO_steer_SUB2
RESOURCE_2 = txNormalDetail
RESOURCE_FILE_2 = PBR_brushed.dds
RESOURCE_3 = txDetail
RESOURCE_FILE_3 = PBR_brushed_detail.dds
DetailNormalBlend =0.5
DetailScale =21
Metalness = 0.1
BrightnessAdjustment = 0.02
Smoothness = 0.1
Reflectance = 0.5
DetailNormalPBRSmoothness = 1.75

;Int Carbon
[Material_Carbon]
Materials=
RESOURCE_0=txDetail
RESOURCE_TEXTURE_0=carbon_fiber2.png
RESOURCE_1=txNormalDetail
RESOURCE_TEXTURE_1=carbon_fiber_nm2.png
DetailScale=165
Brightness=0.4
DetailNormalBlend=1

────────────────────── MATERIALS (PAINT) ────────────────────────

[INCLUDE: common/materials_carpaint.ini]

[Material_CarPaint_Metal]
Materials = EXT_RIM
UseMetallicReflections = 1
FresnelMax = 3
FresnelC = 0.2
FlakesK = 2
ClearCoatThickness = 0.06
ColoredSpecular = 1.0
AmbientSpecular = 0.5
BrightnessAdjustment = 0.38

────────────────────── MATERIALS (EXTERIOR) ────────────────────────
[Material_Aluminium_v2]
Materials= ext_chassi_dark_plastic_metal
Smoothness = 0.0
Metalness = 0.4
Reflectance = 0.4
BrightnessAdjustment = 0.4
DetailTexture = 1
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 1, 1, 1, 0.4
DetailScale = 60
DetailNormalBlend = 10
DetailNormalPBRSmoothnessGamma = 1
LocalReflectionsSharpness = 0.05
ApplyTilingFix = 1

;Ext Rim Chrome
[Material_Aluminium_v2]
Materials = 
BrightnessAdjustment = 0.2
DetailScale = 0
Metalness = 0.3
Reflectance = 0.5
LocalReflectionsSharpness = 1

;Ext Metal
[Material_Metal_v2]
Materials = 
BrightnessAdjustment = 0.25
DetailScale = 1
Metalness = 0.6
Reflectance = 0.001
RESOURCE_0=txDetail
RESOURCE_TEXTURE_0=pipe1z.dds




;Ext Metal Headlights
[Material_Metal_v2]
Materials = 
BrightnessAdjustment = 0.6
DetailScale = 0
Metalness = 0.9
Reflectance = 0.1
LocalReflectionsSharpness = 0.3
DetailNormalPBRSmoothnessGamma = 0.4

;Ext Metal Old
[Material_MetalOld_v2]
Meshes = 
Metalness = 0.11
Reflectance = 0.11
Brightness = 0.3
DetailNormalPBRSmoothnessGamma = 1
LocalReflectionsSharpness = 0

;Ext Smooth Plastic
[Material_Plastic_v2]
Materials =ext_plastic
Metalness = 0.00
Reflectance = 0.03
Smoothness = 0.4
BrightnessAdjustment = 0.2
ApplyTilingFix = 1
DetailScale = 0

[Material_Plastic_v2]
Materials =EXT_PLASTIC_HDL_HOUSE
Metalness = 0.00
Reflectance = 0.1
Smoothness = 0.4
BrightnessAdjustment = 0.012s
ApplyTilingFix = 1
DetailScale = 0

;Ext Smooth Plastic
[Material_Plastic_v2]
Materials =ext_gloss_plastic
Metalness = 0.00
Reflectance = 0.2
Smoothness = 0.4
BrightnessAdjustment = 0.01
ApplyTilingFix = 1
DetailScale = 0

;Ext Rough Chrome
[Material_Plastic_v2]
Materials = 
BrightnessAdjustment = 0.15
Reflectance = 0.7
Metalness = 0.5
Smoothness = 0.6
DetailScale = 35
DetailTextureBlur = 1
DetailNormalBlend = 0.2

;Ext Carbon
[Material_Carbon]
Materials = vehicle_generic_carbon
DetailScale = 500
RESOURCE_2 = txNormalDetail
RESOURCE_FILE_2 = PBR_CARBON_NM.dds
RESOURCE_3 = txDetail
RESOURCE_FILE_3 = PBR_CARBON_D.dds
Brightness = 0.2
ClearCoatF0 = 0.2
CubemapReflectionBlur = 0,0






[LIGHT_BRAKEDISCS]
COLOR=0.5, 0.1, 0, 2

[BRAKEDISC_FX]
ACTIVE = 0             ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
DEBUG = 0
CERAMIC = 1            ; use ceramic look
CARVED = 1             ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 25  ; increase to make more lines
GLOW_OFFSET = 2.0      ; 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




