[INCLUDE: motec_cluster.ini]

[DATA] 
DISABLE_LIGHTSINI = 1

[REFLECTIONS_FX]
SKIP_GBUFFER = headlights_glass, tails_glass

;---------------------///Magic///---------------------
[INCLUDE: common/materials_interior.ini]

[Material_Velvet_v2] ; Dash Alcantara
Materials= int_alcantara
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 0.35
DetailScale = 90
BrightnessAdjustment = 0.03
ClothSheenColor = 1, 1, 1

[Material_Velvet_v2] ; Steer Alcantara
Materials = steer_alcantara
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 0.35
DetailScale = 19
BrightnessAdjustment = 0.03
ClothSheenColor = 1, 1, 1

[Material_Velvet_v2] ; 12 Clock
Materials= steer_12_color
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 0.35
DetailScale = 90
BrightnessAdjustment = 0.3
ClothSheenColor = 1, 1, 1

[Material_Leather] Leathers
Materials = seats_leather
BrightnessAdjustment = 0.2

[Material_InteriorPBRDetail] Interior and Rollcage
Materials=  int_paint, int_rollcage_color, rollcage_welds, int_color_1, int_color_2, int_red, steer_color
Metalness = 0.05
Reflectance = 0.15
BrightnessAdjustment = 0.3
DetailNormalTexture = common/pbr_metal.dds
DsetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailScale = 0
DetailNormalBlend = 0
DetailNormalPBRSmoothnessGamma = 2
Smoothness = 0.5

[Material_Plastic_v2] ; Plastic
Materials = plasticc, lights_plastic, chassie_plastic, int_plastic
BrightnessAdjustment = 0.08
DetailScale = 100
DetailTextureBlur = 1
DetailNormalBlend = 1
LocalReflectionsSharpness = 0.1
Reflectance = 0.15

[Material_Plastic_v2] ; Plastic Color
Materials = led_brake, filter_color, chassie_light_plastic, engine_red, pedals_nm, int_light_plastic, int_plastic_color_1, int_plastic_color_2
BrightnessAdjustment = 0.2
DetailScale = 100
DetailTextureBlur = 1
DetailNormalBlend = 1
LocalReflectionsSharpness = 0.1
Reflectance = 0.15

[Material_Metal_v2] Chrome
Materials = rims_chrome_barell, radiator, chromm, lights_chrome, tails_chrome_nm, glass_headlight_nm, welds, chassie_chrome, int_chrome
BrightnessAdjustment = 0.25
DetailScale = 10
Metalness = 0.5
Reflectance = 0.3
LocalReflectionsSharpness = 0.1

[Material_InteriorPBRDetail] PBR Stufff
Materials= rim_sticker, wires_car, int_black, belts
Metalness = 0.01
Reflectance = 0.1
BrightnessAdjustment = 0.2
DetailNormalTexture = common/pbr_metal.dds
DsetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailScale = 0
DetailNormalBlend = 0
DetailNormalPBRSmoothnessGamma = 2
Smoothness = 0.5

[Material_Carbon] int carbon
Materials = int_carbon, doors_fix_carbon
DetailScale = 1000
BrightnessAdjustment = 0.30
ClearCoatF0 = 0.15

[Material_Carbon] carbon
Materials = carbonn, lights_carbon, chassie_carbon
DetailScale = 600
BrightnessAdjustment = 0.30
ClearCoatF0 = 0.15

[Material_Aluminium_v2] Lights
Materials = light_in_red_nm, tail_another_red_nm
Smoothness = 0.05
Metalness = 1
Reflectance = 2
BrightnessAdjustment = 0.35
CubemapReflectionBlur = 0
PROP_22=pbReflectionBlurEnv, 0
HasDetailNormals=1
MaskPass = 10.5



;---------------------///Paint///---------------------
[INCLUDE: common/materials_carpaint.ini]

CarPaintMaterial = car_paint, rim_color, rim_hw, Endless_calipers, black_out, under_paint, color_1, color_2, bash_bar_color, chassie_color, chassie_black, chassie_color_1, chassie_color_2, suspension_color, susp_spring_color
CarPaintVersionAware = 2
DisableDev = 1

[Material_CarPaint_Metallic]
FresnelMax = 1
FresnelC = 0.1
BrightnessAdjustment = 0.45 ; compensates for ambient specular
ColoredSpecular = 0.9
ClearCoatThickness = 0.09
SpecularBase = 2, 40
SpecularMult=0.3
FlakesK = 0.3
NormalsMode = BASIC

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

[INCLUDE: common/materials_glass.ini]

[Material_Glass] ext_glass 
Materials = glass_out 
ThicknessMult = 3.5
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=3

[Material_PhotoelasticGlass]
Materials = headlights_glass
PhotoelasticityBaseScale = 5    ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.5  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.15   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.1  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 10  ; how many stripes are there
ProfileFix = 0.09
ThicknessMult = 1
FilmIOR=2.5
ExtraLightsAdjustment = 0.018

[Material_PhotoelasticGlass]
Materials = tails_glass
FilmIOR = 2.6
PhotoelasticityMult = 0.4  
ThicknessMult = 1
MaskPass = 10.5
ExtraLightsAdjustment = 0.018
PhotoelasticityBaseScale = 1     
PhotoelasticityNoiseScale = 0.0003  
PhotoelasticitySpotsScale = 0.001   
PhotoelasticitySpotsOffset = 0.32  
PhotoelasticityStripesScale = 3   

;---------------------///refracting and light///---------------------
[INCLUDE: common/selflighting.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: common/no_popup_lights.ini]

[EXTRA_FX_EMISSIVE_...] EXTRA FX Lights  
MESHES = high_beam_glass
RANGE = 0.06
COLOR = 19, 19, 21, 0.5
DIRECTED = 1
LAG=0.6

[EXTRA_FX_EMISSIVE_...] EXTRA FX Motec
MESHES = motec_logo,  motec_data_displey, stickers
RANGE = 0.1
COLOR=1,1,1, 0.05
DIRECTED = 1 
EXTERIOR_ONLY = 0 
LAG=0.6

[EMISSIVE_BRAKE_0]
NAME=tails_light_red_nm
COLOR=100, 30, 0, 5
FALLBACK_HEADLIGHTS_COLOR=100, 30, 0, 1,5
CAST_LIGHT=1
LAG=0.5
SIMULATE_HEATING=1
LOCATION=REAR

[EMISSIVE_BRAKE_2]
NAME= RED_REAR_BRAKE
COLOR=100, 0, 0, 5
CAST_LIGHT=1
LAG=0.5
SIMULATE_HEATING=0
LOCATION=REAR

[EMISSIVE_REVERSE_...] ; Reverse Lights
NAME = reverse_tails_nm    
COLOR = 20, 20, 32, 15       
LAG = 0.4                   
SIMULATE_HEATING = 1
CAST_LIGHT=1        	
LOCATION = REAR             
ACT_AS_HEADLIGHTS = 1  

[EMISSIVE_LIGHT_...]
NAME= high_beam_glass
COLOR=150,150,150, 2
LAG=0.6
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[REFRACTING_HEADLIGHT_0]
SURFACE = high_beam_glass
INSIDE = headlights_plastic

[REFRACTING_HEADLIGHT_0]
ABSORPTION = 0.017
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 0.62
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 0.5
BULB_REFLECTION_K = 0.02
CUSTOM_BULB_0 = 0.48,0.525,0.328,0.326
CUSTOM_BULB_1 = 0.493,0.387,0,0
CUSTOM_BULB_2 = 0.493,0.451,0,0
CUSTOM_BULB_3 = 0.5,0.507,0,0
DIFFUSE_MAP_FILTER_MULT = 2.57
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.049901478,-0.1538143,-0.9868389
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 23.43
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.13
GLASS_COLOR = 0.06719,0.067196,0.067197
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 2.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -2
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1.00275,0.00018,-0.008303
MIRROR_POS = -0.00094,0.407634,1.95363
NM_SHARE_EXT = 0
NM_SHARE_INT = 0
ORIGIN = 0.668,0.503,2.004577
RADIUS = 0.042600077
RAYTRACE_STEP_INCREASE = 1
RAYTRACE_STEP_START = 0.2
REFLECTIVENESS_DIFFUSE_MULT = 3.9
REFLECTIVENESS_MULT = 8.2
REFLECTIVE_GAMMA = 0.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 4
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1

---------------------------Key Pad by @ssofficially----------------------------------

[EMISSIVE_...] white logos on
INPUT=HEADLIGHTS
NAME= stickers, GEO_Cockpit_HR_SUB9
COLOR=1,1,1,8
CAST_LIGHT=1 
LAG=0.7

[EMISSIVE_...] green lights on
INPUT=HEADLIGHTS
NAME= green_lights_on
COLOR=0,25,0,1
LAG=0.3

[EMISSIVE_...] red lights on
INPUT=HEADLIGHTS
NAME= red_lights_on
COLOR=25,0,0, 1
LAG=0.3

[EMISSIVE_...] green lights always on
BIND_TO=FUEL
INPUT_THRESHOLD=15  
INPUT_THRESHOLD_INVERSE=1
NAME= green_lights_always_on
COLOR=0,25,0,1
LAG=0.3

[EMISSIVE_LIGHT_...] orange flashing light
NAME= orange_lights_flashing
BIND_TO=FUEL
INPUT_THRESHOLD=15  
INPUT_THRESHOLD_INVERSE=1
COLOR=5,5,0, 2
BLINKING_PATTERN = (|0 = 0|0.5 = 0|0.542 = 0|0.583 = 1|0.625 = 0|0.667 = 0|0.708 = 0|0.75 = 1|0.792 = 0|0.833 = 0|0.875 = 0|0.917 = 0|0.958 = 0|1 = 0|)
BLINKING_DURATION = 1.0
LAG=0.0

[EMISSIVE_LIGHT_...] green flashing light
NAME= green_lights_flashing
BIND_TO=FUEL
INPUT_THRESHOLD=15  
INPUT_THRESHOLD_INVERSE=1
COLOR=0,25,0,1
BLINKING_PATTERN = (|0 = 0|0.5 = 0|0.542 = 0|0.583 = 1|0.625 = 0|0.667 = 0|0.708 = 0|0.75 = 1|0.792 = 0|0.833 = 0|0.875 = 0|0.917 = 0|0.958 = 0|1 = 0|)
BLINKING_DURATION = 1.0
LAG=0.0

[EMISSIVE_LIGHT_...] red flashing light
NAME= red_lights_flashing
BIND_TO=FUEL
INPUT_THRESHOLD=15  
INPUT_THRESHOLD_INVERSE=1
COLOR=25,0,0, 1
BLINKING_PATTERN = (|0 = 0|0.5 = 0|0.542 = 0|0.583 = 1|0.625 = 0|0.667 = 0|0.708 = 0|0.75 = 1|0.792 = 0|0.833 = 0|0.875 = 0|0.917 = 0|0.958 = 0|1 = 0|)
BLINKING_DURATION = 1.0
LAG=0.0 

;---------------------///Wipers///---------------------

[WIPERS_TRACE_...]
SURFACE = windshield_out
WIPERS = WIPER_R, WIPER_L

;---------------------///Animations///---------------------



[ANIMATION_...] Hood Animation
INPUT = EXTRA_A            
FILE = hood.ksanim     
TIME = 1.0                  
INPUT_AS_PROGRESS = 0       
LOOP_WHILE_ACTIVE = 0                                                               
LOOP_KEEP_UNTIL_DONE = 1                               
TICK_TOCK_MODE = 0                                      
AFFECTS_INTERIOR_SHAPE = 1  

[ANIMATION_...] Trunk Animation
INPUT = EXTRA_B            
FILE = trunk.ksanim   
TIME = 1.0                  
INPUT_AS_PROGRESS = 0       
LOOP_WHILE_ACTIVE = 0                                                               
LOOP_KEEP_UNTIL_DONE = 1                               
TICK_TOCK_MODE = 0                                      
AFFECTS_INTERIOR_SHAPE = 1  

[ANIMATION_...] Left Door Animation
INPUT = EXTRA_C            
FILE = car_door_l.ksanim   
TIME = 1.0                  
INPUT_AS_PROGRESS = 0       
LOOP_WHILE_ACTIVE = 0                                                               
LOOP_KEEP_UNTIL_DONE = 1                               
TICK_TOCK_MODE = 0                                      
AFFECTS_INTERIOR_SHAPE = 1 

[ANIMATION_...] Right Door Animation
INPUT = EXTRA_D           
FILE = car_door_r.ksanim   
TIME = 1.0                  
INPUT_AS_PROGRESS = 0       
LOOP_WHILE_ACTIVE = 0                                                               
LOOP_KEEP_UNTIL_DONE = 1                               
TICK_TOCK_MODE = 0                                      
AFFECTS_INTERIOR_SHAPE = 1  

[ANIMATION_...] Rear Windows Animation
INPUT = EXTRA_E           
FILE=rear_windows.ksanim 
TIME = 1.0                  
INPUT_AS_PROGRESS = 0       
LOOP_WHILE_ACTIVE = 0                                                               
LOOP_KEEP_UNTIL_DONE = 1                               
TICK_TOCK_MODE = 0                                      
AFFECTS_INTERIOR_SHAPE = 1  

[EMISSIVE_EXTRA_F_...] Hood Remove
BIND_TO_EXTRA_B=1
BIND_TO_HEADLIGHTS=0
NAME = hood_under_carbon, hood_under_color_paint, hood_chrome, hood_bolts_at, hood_paint
COLOR=0,0,1,1         
OFF_COLOR = 0,0,0         
LAG = 0.01                  
SIMULATE_HEATING = 0      
LOCATION =FRONT             
ACT_AS_HEADLIGHTS = 0       
TOGGLE_VISIBILITY=1	
TOGGLE_VISIBILITY_INVERSE=1


;---------------------///Exhaust and Audio stuff///---------------------

[EXHAUST_FLAMES]
ANTILAG=1 ; turbo antilag, i havent tested this yet
ANTILAG_DELAY=0.0 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=40 ; flame size
ANTILAG_INTERVAL_MAX=9000
ANTILAG_INTERVAL_MIN=2000
ANTILAG_TURBO_THRESHOLD=0.5
DAMAGE=0 ; engine damage? idk
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1 ; lifting off the throttle
DI3CHARGE_CHARGE_TIME=0.001 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.1 ; delay after throttle lift
DISCHARGE_DURATION=3.1 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=5; flame size
DISCHARGE_RPM_THRESHOLD_MAX=9000 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=2000 ; self explanatory
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=70
FLAT_SHIFT=1 ; on upshift
FLAT_SHIFT_COOLDOWN=0 ; after upshift
FLAT_SHIFT_DURATION=5 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=80 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=5 ; flame size
FLAT_SHIFT_PROBABILITY=1 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=8500
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=5 ; flame size
LIMITER_RPM_THRESHOLD=2000 ; limiter flames will not shoot below this rpm


[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 = 2.0
HORN = 4.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1.0
BACKFIRE_INT = 1.0
TRANSMISSION = 1.0
LIMITER= 1.0
TURBO = 5.0  

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

;---------------------///Brake and Tyre fx///---------------------

[BRAKEDISC_FX_FRONT]
ACTIVE=1
DISC_INTERNAL_RADIUS=0.115
DISC_RADIUS=0.15
GLOW_OFFSET=0.9

[BRAKEDISC_FX_REAR]
ACTIVE=1
DISC_INTERNAL_RADIUS=0.115
DISC_RADIUS=0.15
GLOW_OFFSET=0.9

[BRAKEDISC_FX]
CERAMIC=0
CARVED=0
CARVED_FREQUENCY=10
ALPHA_MASK=0.0, 0.3
LUMINOCITY_MASK=0.15, 0.2
OVERRIDE_NORMAL_MAP=0

DEBUG = 0
WEAR_FORCE = 0.65
;GLOW_FORCE = 0.8

[TYRES_FX_FRONT]
COOKTORRANCE_FRESNEL_REFLECTANCE=0.2
COOKTORRANCE_IOR=0.1
COOKTORRANCE_LAMBERT_FACTOR=5
COOKTORRANCE_ROUGHNESS=0.5
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=10000
DIRT_FADE=100
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=20
VISIBLE_IN_INTERIOR_CAM=0

[TYRES_FX_REAR]
COOKTORRANCE_FRESNEL_REFLECTANCE=0.2
COOKTORRANCE_IOR=0.1
COOKTORRANCE_LAMBERT_FACTOR=5
COOKTORRANCE_ROUGHNESS=0.5
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=10000
DIRT_FADE=100
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=20
VISIBLE_IN_INTERIOR_CAM=0

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_tyre
PROP_... = ksAmbient, 0.06
PROP_... = ksDiffuse, 0.26
PROP_... = fresnelMaxLevel, 0.06

;---------------------///REAL MIRRORS///---------------------

[REAL_MIRROR_0]
ASPECT_MULT=1
FLIP=0
FOV=11
IS_MONITOR=0
MONITOR_SHADER_TYPE=1
ROTATION=0,0

[REAL_MIRROR_1]
ASPECT_MULT=1
FLIP=0
FOV=11
IS_MONITOR=0
MONITOR_SHADER_TYPE=1
ROTATION=0,0

;---------------------///Double Side///---------------------
[SHADER_REPLACEMENT_...]
MESHES = 
CULL_MODE = DOUBLESIDED
