//MISC

[INCLUDE:lights.ini]
[INCLUDE: common/selflighting.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: common/displays.ini]

[DATA] 
DISABLE_LIGHTSINI=1
DISABLE_ANALOGINSTRUMENTSINI=1

[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1

[AUDIO_VOLUME]
TURBO = 1.0

[BASIC]
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=20
HAZARD_LIGHTS_ENGINE_LIFE_THRESHOLD=0.001
HEADLIGHTS_ARE_HEADLIGHTS=1
HORN_AS_SIREN=0
IS_LOW_BEAM_AVAILABLE=1
LIGHT_DAMAGE_SPEED_MAX=120
LIGHT_DAMAGE_SPEED_MIN=80
STOP_LODS_ADJUSTMENT=0
TURNING_LIGHTS_REPEAT=1

[REFLECTIONS_FX]
MASK_GBUFFER = material:ext_window_fade, 

[SHADER_REPLACEMENT_...]
MESHES = ext_body_gascap
DEPTH_MODE = LESSEQUAL

[DEFAULTS]
DisableDev = 1

[ODOMETER_TRIP]
DIGITAL_ITEM=1

[LIGHTING]
EMISSIVE_MULT=2
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=0.4
INTERIOR_FAKE_UPPER_SHADOW_FADE=-0.1
INTERIOR_FAKE_SHADOW_OPACITY=0.43
INTERIOR_FAKE_SHADOW_HEIGHT=-0.1
INTERIOR_FAKE_SHADOW_FADE=0.1

[BOUNCED_INTERIOR_LIGHT]
ACTIVE=1

[BOUNCED_HEADLIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.4
GRADIENT_OFFSET=0.8
MULT=1, 1, 1, 1
OFFSET=7

//EXHAUST

[EXHAUST_FLAMES]
ANTILAG_DELAY=0.2
ANTILAG_INTENSITY=1
ANTILAG_INTERVAL_MAX=0.1
ANTILAG_INTERVAL_MIN=0.05
ANTILAG_TURBO_THRESHOLD=0.1
DAMAGE=1
DAMAGE_DURATION=0.05
DAMAGE_INTENSITY=1
DAMAGE_PROBABILITY=1
DISCHARGE=1
DISCHARGE_CHARGE_TIME=2
DISCHARGE_DELAY=1
DISCHARGE_DURATION=1
DISCHARGE_INTENSITY=0.14475
DISCHARGE_PROBABILITY=0.265
DISCHARGE_RPM_THRESHOLD_MAX=5000
DISCHARGE_RPM_THRESHOLD_MIN=4000
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=80
FLAT_SHIFT_COOLDOWN=0.23
FLAT_SHIFT_DURATION=0.05
FLAT_SHIFT_GAS_THRESHOLD=0.3
FLAT_SHIFT_INTENSITY=0.1
FLAT_SHIFT_PROBABILITY=1
FLAT_SHIFT_RPM_THRESHOLD=4000
LIMITER=0
LIMITER_DELAY=0.3
LIMITER_INTENSITY=1
LIMITER_RPM_THRESHOLD=0

[PARTICLES_FX_EXHAUST_FLAMES]
COLOR_MULT=1, 1, 1, 1
INTENSITY_MULT=1
SIZE_MULT=1
TEMPERATURE_MULT=1

[PARTICLES_FX_EXHAUST_...]
POSITION=-0.509, 0.26, -2.05
DIRECTION=0,0,-1
COLOR = 0.75,0.8,1 			; RGB blend - 0,0,0 is black, 1,1,1 is white
LIFE = 1, 2 				; how long particles last in the air before disappearing
SPEED = 0.5, 1 				; how fast smoke particles fly from the exhaust
SPREAD = 0.25				; initial spread of particles
STARTING_SIZE = 0.03			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.3, 0.5			; smoke intensity
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 25, 40 		; speed at which the smoke disappears

;exhaust

[SHAKING_EXHAUST_...]
MESHES = ext_exhaust, ext_exhaust_black
POINT_0 = -0.509, 0.263, -1.5
POINT_0_RADIUS = 1
POINT_0_EXP = 1
POINT_0_SCALE = 0.12, 0.6, 0.06

//WIPERS

[WIPERS_TRACE_...]
SURFACE=ext_windows
WIPERS= ext_wiper02, ext_wiper09

// BRAKES

[BRAKEDISC_FX_FRONT]
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 = 10  ; increase to make more lines
GLOW_OFFSET = 0.9	; 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.106
DISC_RADIUS = 0.162
ALPHA_MASK = 0.1, 0.5




[BRAKEDISC_FX_REAR]
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 = 10  ; increase to make more lines
;GLOW_OFFSET = 0.5	; 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.115
DISC_RADIUS = 0.162
ALPHA_MASK = 0.1, 0.5



// CLUSTER

;320kmh
[ANALOG_INDICATOR_...]
BIND_TO=SPEED
NAME=ARROW_SPEED
INPUT_LAG=0.5
LUT=(0=3.5|10=8|20=16|40=32.5|60=48.7|80=60|100=81|120=97.25|140=114|160=130.25|180=146.5|320=260.5)

;10k rpm
[ANALOG_INDICATOR_...]
BIND_TO=RPM
NAME=ARROW_RPM
ZERO=0.000
MIN_VALUE=0
LUT=(0=2|500=15.5|1000=29|5000=136.25|9000=242|10000=268.5)

[ANALOG_INDICATOR_...]
BIND_TO=FUEL
NAME=ARROW_FUEL
ZERO=0
MIN_VALUE=0
LUT=(0=0|76=68)

[ANALOG_INDICATOR_...]
BIND_TO=TURBO
NAME=ARROW_TURBO
USE_BAR=1
LUT=(0.0=0|1.0=60)

[ANALOG_INDICATOR_...]
BIND_TO=WATER_TEMPERATURE
NAME=ARROW_TEMP
ZERO=0
MIN_VALUE=50
LUT=(0=0|50=6|120=66)

// GLASS

[INCLUDE: common/materials_glass.ini]
ExteriorGlassMaterials=ext_fogcover_glass

[Material_Glass]
Meshes=int_glass
ExtraLightsAdjustment = 0.2  ; intensity of extra lights

[Material_Glass]
Materials=ext_f_reflectors, ext_reflector
BrightnessAdjustment = 2
ThicknessMult = 2
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 2

// PBR


[INCLUDE: common/materials_interior.ini]

;;int

[Material_Leather]
Materials = int_leatherdash
Brightness = 1.25
Reflectance = 0.1
;Smoothness = 0.1
DetailScale = 400
ApplyTilingFix=1
DetailNormalBlend = 0.5
DetailNormalPBRSmoothnessGamma =0.5
CubemapReflectionBlur = 1

[Material_Leather]
Materials = int_leather_smooth
Brightness = 1.25
Reflectance = 0.15
Smoothness = 0.5
DetailScale = 200
ApplyTilingFix=1
DetailNormalBlend = 0.25
DetailNormalPBRSmoothnessGamma =0.5
CubemapReflectionBlur = 1

[Material_Plastic_v2]
Materials = int_plastic_rough,
Brightness = 1.4
DetailScale = 30
DetailTextureBlur = 0
DetailNormalBlend = 0.65
Reflectance = 0.05
Smoothness = 0.1

[Material_Plastic_v2]
Materials = int_seat_plastic_bump
Brightness = 2
DetailScale = 20
DetailTextureBlur = 1
DetailNormalBlend = 1
Reflectance = 0
Smoothness = 0.85

[Material_Plastic_v2]
Materials = int_plastic_smooth, int_seat_belt_buckle, int_plastic_smooth2
Brightness = 2.2
DetailScale = 0
DetailTextureBlur = 1
Smoothness = 0
Metalness = 0.35
CubemapReflectionBlur=1
DetailNormalPBRSmoothnessGamma = 0.1

;[Material_Leather]
;Materials = int_steer_leather
;ColorSource = DIFFUSE
;Brightness = 0.7
;DetailTextureBlur = 1
;DetailNormalBlend = 0.3
;DetailScale = 40
;ApplyTilingFix=1
;Reflectance = 0.1
;Smoothness = 0.35

[Material_Aluminium_v2]
Materials = int_chrome

[Material_Aluminium]
Materials = int_metal, int_pedals_alu

;;ext
[SHADER_REPLACEMENT_...]
MATERIALS=int_plastic_dots
BLEND_MODE = ALPHA_TEST

[SHADER_REPLACEMENT_...]
MATERIALS=int_speaker
ACTIVE = 1
PROP_0 = ksAmbient, 0.3
PROP_1 = ksDiffuse, 0.1

[SHADER_REPLACEMENT_...]
MATERIALS=int_efini_ac_dial, int_ac_dials
ACTIVE = 1
PROP_... = ksAmbient, 0.3
PROP_... = ksDiffuse, 0.3
PROP_... = ksSpecular, 0.3
PROP_... = ksSpecularEXP, 80

[SHADER_REPLACEMENT_...]
MATERIALS=ext_reflector
ACTIVE = 0
PROP_... = ksAmbient, 1
PROP_... = ksDiffuse, 0.5

;[ANIMATION_0]
;FILE=lights.ksanim
;TIME=0.5
;BIND_TO_EXTRA_B=1
;TICK_TOCK_MODE=0
;LOOP_KEEP_UNTIL_DONE=1
;LOOP_WHILE_ACTIVE=0


;Masaki PBR
[Material_Aluminium_v2]
Materials = int_gauge_chrome, int_seat_chrome, int_steer_bolts, int_steer_metal
ApplyTilingFix=1

[Material_Plastic]
Materials = int_gauge_black_plastic, int_needle_grey, int_needle_white, int_needle_red, int_seat_plastic, int_rollcage_plastic
Brightness = 2
DetailScale = 0
Smoothness = 0
Reflectance = 0.35
CubemapReflectionBlur=1

[Material_Plastic]
Materials = int_glovebox_rough
Brightness = 1.5
Smoothness = 0.5
Reflectance = 0.35
CubemapReflectionBlur=1
DetailScale = 150
ApplyTilingFix=0

[Material_Velvet_v2]
Materials = int_rollcage_padded
DetailNormalTexture = common/pbr_carpet.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
UseClothShading = 1
Reflectance = 1
DetailScale = 40
ClothSheenColor = 1, 1, 1
BrightnessAdjustment = 0.2
ApplyTilingFix=1

[Material_Fabric]
Materials = int_seat
Brightness = 1.5
Smoothness = 0
Reflectance = 0.02
ApplyTilingFix=0

[Material_Plastic]
Materials = int_steer_plastic
Brightness = 0.7
Smoothness = 0.5
Reflectance = 0.1
CubemapReflectionBlur=1
DetailScale = 40
ApplyTilingFix=1

[Material_Leather_v2]
Materials = int_steer_leather
;ColorSource = DIFFUSE
Brightness = 0.4
DetailScale = 20
ApplyTilingFix=1
Reflectance = 0.05
;Smoothness = 0.0
DetailNormalTexture = common/pbr_leather_bumpy.dds
DetailNormalIntensity = 3
DetailNormalPBRSecondaryColor = 1, 1, 1, 0.08

[Material_Carbon]
Materials = int_seat_carbon
Brightness = 1
HasDetailNormals = 1
Smoothness = 0.9
Reflectance = 0.2
CubemapReflectionBlur = 0.35
UseClearCoat = 1
ClearCoatSmoothness = 1.0
ClearCoatIntensity = 1.0

[Material_Plastic]
Materials = int_extra_gauge_light_ring
Brightness = 0.75
Smoothness = 0.0
Reflectance = 0.5
DetailNormalBlend = 0

[SHADER_REPLACEMENT_...]
ACTIVE = 1
MESHES = ext_body_gascap
CAST_SHADOWS = 1

[SHADER_REPLACEMENT_...]
MATERIALS=ext_tire_tread, ext_tire_wall
ACTIVE = 1
PROP_... = ksAmbient, 0.6
PROP_... = ksDiffuse, 0.6
PROP_... = ksSpecular, 0.01
PROP_... = ksSpecularEXP, 30
PROP_... = fresnelEXP, 9

;Extra Gauges
[ANALOG_INDICATOR_...]
BIND_TO=EXHAUST_TEMPERATURE
NAME=omori_ex_temp
ZERO=0
MIN_VALUE=200
LUT=(0=0|200=0|1200=240|1300=264|1400=284)

[ANALOG_INDICATOR_...]
BIND_TO=TURBO_BOOST
NAME=omori_turbo
USE_BAR=1
MIN_VALUE=-0.75
LUT=(-0.75=-112.5|0.0=0|1.6=180)

[ANALOG_INDICATOR_...]
BIND_TO=RPM
NAME=omori_rpm
ZERO=0.000
MIN_VALUE=0
LUT=(0=0|3000=90|6000=180|9000=270|10000=300)

[ANALOG_INDICATOR_...]
BIND_TO=OIL_PRESSURE
NAME=aem_air_fuel
ZERO=0.000
MIN_VALUE=0
LUT=(1=133|5=117|10=103)

[ANALOG_INDICATOR_...]
BIND_TO=OIL_PRESSURE
NAME=omori_oil_press
ZERO=0.000
MIN_VALUE=0
LUT=(0=0|1=21|2=50.5|6=164|10=277.5)

[ANALOG_INDICATOR_...]
BIND_TO=EXHAUST_TEMPERATURE
NAME=hks_ex_temp
ZERO=0
MIN_VALUE=300
LUT=(0=0|300=0|400=26|800=128|1200=230.5|1250=243)

;defi gauges

[ANALOG_INDICATOR_...]
BIND_TO=WATER_TEMPERATURE
NAME=defi_temp
ZERO=0.000
MIN_VALUE=0
LUT=(0=0|30=0|70=90|110=180|150=270)

[ANALOG_INDICATOR_...]
BIND_TO=OIL_PRESSURE
NAME=defi_press
ZERO=0.000
MIN_VALUE=0
LUT=(0=0|10=270)

[ANALOG_INDICATOR_...]
BIND_TO=TURBO_BOOST
NAME=defi_turbo
ZERO=-1
MIN_VALUE=-1
LUT=(-1=0|0=90|1=180|2=270)

[SCRIPTABLE_DISPLAY_...]
ACTIVE = 1
MESHES = int_rebic3_at
RESOLUTION = 1024,1024
DISPLAY_POS = 0,0
DISPLAY_SIZE = 0,0
SKIP_FRAMES = 0
SCRIPT = boost.lua