; Honda S2000 Varis Extremor by Daiki Naruse

[INCLUDE: common/no_popup_lights.ini]

[EXTRA_FX]
MASK_GBUFFER = EXT_GlassLights, EXT_Glass
SKIP_GBUFFER = INT_Transparent, INT_Emissive

[WIPERS_TRACE_...]
SURFACE= EXT_Glass, INT_Window
WIPERS = Wiper_Blade_L, Wiper_Blade_R

[WIPERS]
WIND_THRESHOLDS_KMH = 60, 200  
WIND_AMPLITUDE_MULT = 1     
WIND_FREQUENCY_MULT = 1 
WIND_OFFSET = 0.03  

[BASIC]
IS_LOW_BEAM_AVAILABLE = 1

[DATA]
DISABLE_LIGHTSINI = 0

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

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

[BOUNCED_INTERIOR_LIGHT]
ACTIVE=1
DIRECTION=0, 1, -2
MULT=1, 1, 1, 1
OFFSET=0, -1, 3
RANGE=3.2
RANGE_GRADIENT_OFFSET=0.9
SPOT=20
SPOT_SHARPNESS=0.9

; custom emissive stuff

[INCLUDE: common/custom_emissive.ini]

[EXTRA_FX_EMISSIVE_...]
MESHES = 41, 44, 21_0, Object011, 	INT_GaugesEmissive, Circle, INT_IND_TURN              			; list of meshes
; MATERIALS = test           									; list of materials
; DIGITAL_INSTRUMENTS = ? 									; filters for digital instruments (for most of them, names of sections in “digital_instruments.ini”), only for cars
RANGE = 0.08              									; range in meters (by default 0.08 for cars and 5 for tracks)
; COLOR = 1                									; optional brightness multiplier (could be an RGBA value)
DIRECTED = 1             									; set for 0 for point light and 1 for directed light, or to something in-between (by default guessed based on mesh shape)

; Optional advanced tweaks for more complex cases
EMISSIVE_TWEAK = 1       									; extra tonemapping for emissive color to balance things out (set to 0 to disable, set above 1 to further reduce effect or large emissive value)
MIP_BIAS = 1.5            									; MIP bias for texture (increase for smoother light)
IGNORE_TEXTURE_COLOR = 0 								; set to 1 to use COLOR and emissive color only

[EXTRA_FX_EMISSIVE_...]
MESHES = INT_Emissive, 						              			; list of meshes
; MATERIALS = test           									; list of materials
; DIGITAL_INSTRUMENTS = ? 									; filters for digital instruments (for most of them, names of sections in “digital_instruments.ini”), only for cars
RANGE = 0.1              									; range in meters (by default 0.08 for cars and 5 for tracks)
; COLOR = 1                									; optional brightness multiplier (could be an RGBA value)
DIRECTED = 0             									; set for 0 for point light and 1 for directed light, or to something in-between (by default guessed based on mesh shape)

; Optional advanced tweaks for more complex cases
EMISSIVE_TWEAK = 1       									; extra tonemapping for emissive color to balance things out (set to 0 to disable, set above 1 to further reduce effect or large emissive value)
MIP_BIAS = 1.5            									; MIP bias for texture (increase for smoother light)
IGNORE_TEXTURE_COLOR = 0 								; set to 1 to use COLOR and emissive color only


[EXTRA_FX_EMISSIVE_...]
MESHES = EXT_TLGlow2, EXT_BlinkersGlow_R, EXT_ReverseGlow, EXT_BlinkersGlow		              			; list of meshes
; MATERIALS = test           									; list of materials
; DIGITAL_INSTRUMENTS = ? 									; filters for digital instruments (for most of them, names of sections in “digital_instruments.ini”), only for cars
RANGE = 0.2              									; range in meters (by default 0.08 for cars and 5 for tracks)
; COLOR = 1                									; optional brightness multiplier (could be an RGBA value)
DIRECTED = 1             									; set for 0 for point light and 1 for directed light, or to something in-between (by default guessed based on mesh shape)

; Optional advanced tweaks for more complex cases
EMISSIVE_TWEAK = 1       									; extra tonemapping for emissive color to balance things out (set to 0 to disable, set above 1 to further reduce effect or large emissive value)
MIP_BIAS = 1.5            									; MIP bias for texture (increase for smoother light)
IGNORE_TEXTURE_COLOR = 0 

[CustomEmissive]
Meshes=EXT_BlinkersGlow
@=CustomEmissive_Color, Channel=3, Mirror, Color="1, 0.5, 0", Threshold="0.5, 5"
@=TurningLightsFront, Channel = 3, Intensity = 1.5, Lag = 0.3

[CustomEmissive]
Meshes=EXT_BlinkersGlow_R
@=CustomEmissive_Color, Channel=3, Mirror, Color="1, 0.5, 0", Threshold="0.5, 5"
@=TurningLightsRear, Channel = 3, Intensity = 1.5, Lag = 0.3

[CustomEmissiveMulti]
Meshes=INT_IND_TURN
Resolution=512,512
PROP_...=emAlphaFromDiffuse,1
@ = DashHighlight
@ = MultiItem, Role = TURNSIGNAL_LEFT,  Color="0,50,0", Start = "194.6, 256.4", Size = "23.8, 27.9"
@ = MultiItem, Role = TURNSIGNAL_RIGHT,  Color="0,50,0", Start = "195.1, 229.7", Size = "22.5, 25.5"

[EMISSIVE_...]   
NAME=Highbeam
COLOR=700,700,800
LAG=0.3
LOCATION=FRONT
BIND_TO = HIGHBEAM

[EMISSIVE_...]
NAME=EXT_TLGlow1
COLOR=150,0,0
LOCATION=REAR
BIND_TO=BRAKE
LAG=0.3

[EMISSIVE_...]
NAME=EXT_TLGlow2
COLOR=50,0,0
LOCATION=REAR
BIND_TO=LIGHT
LAG=0.2

[EMISSIVE_...]
NAME=EXT_HLGlow1
COLOR=700,700,800
LOCATION=FRONT
BIND_TO=LIGHT
LAG=0.2

[EMISSIVE_...]
NAME=EXT_ReverseGlow
LAG=0.2
BIND_TO=REVERSE
COLOR=20,20,30

; Car paint section.

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial=WCCARBODY

[Material_CarPaint_Metallic]
ClearCoatThickness=0.02
FlakesK=0.25

[Material_CarPaint_Metallic]
Materials = 03 - Default	; Rim color adjustment.
FresnelMax = 0.05
FresnelEXP = 3
FresnelC = 0.05
BrightnessAdjustment = 0.7 ; compensates for ambient specular
BaseSpecularColor = 0.5, 0.5, 0.5
SpecularBase = 5, 80
SpecularSun = 0.1, 50
SunMultiplier = 1
ClearCoatThickness = 0.05

; PBR stuff.

[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials=WCWINDOW, BlackGlass, glass.001, glass
FilmIOR=2

[Material_Glass]
Materials=S2000_LIGHTS_GLASS
FilmIOR=1.5
ExtraLightAdjusment=1.5

[INCLUDE: common/materials_interior.ini]

[Material_Leather]
Materials=S2000_INTERIOR_LEATHER_BLACK, S2000_INTERIOR_LEATHER_COLOR_1_BLACK
BrightnessAdjustment = 0.5
DetailTextureBlur = 5
DetailNormalBlend = 0.25
DetailScale = 100
Reflectance = 0.05
LocalReflectionsSharpness = 0.05
ApplyTilingFix = 1

[Material_Plastic_v2]
Materials=S2000_INTERIOR_PLASTIC_BLACK, int_plastik, S2000_INTERIOR_PLASTIC_GREY, amuse_indicator, black_indicator
DetailScale = 100
BrightnessAdjustment = 0.5
Reflectance = 0.35
LocalReflectionsSharpness = 0.05
DetailNormalBlend = 0.2
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 0.1

[Material_Plastic]
Materials=sw_wheel_center_strip, analog_gauge, arrow_turbo_oil
BrightnessAdjustment = 1.2

[Material_Leather]
Materials = redint, S2000_INTERIOR_CARPET_BLACK
Brightness = 0.7
DetailScale = 70
DetailNormalBlend = 1.5

[Material_Leather]
Materials = sw_leather
BrightnessAdjustment = 0.1
DetailNormalBlend = 0.5
DetailScale = 30
LocalReflectionsForce = 0.5
ApplyTilingFix = 1

[Material_Velvet_v2]
Materials = int_alcntr
BrightnessAdjustment = 0.1
DetailNormalBlend = 0.85
DetailScale = 100
LocalReflectionsForce = 0.25
ApplyTilingFix = 1

[Material_Carpet_v2]
Materials=S2000_INTERIOR_CARPET_JUCED_BLACK
BrightnessAdjustment = 0.1
DetailScale = 100
Smoothness = 0.5
OcclusionMap = -0.01, 1
ApplyTilingFix=1

[Material_Metal_v2]
Materials=S2000_INTERIOR_CHROME
CubemapReflectionBlur=3.5
Brightness=0.5

[Material_Metal_v2]
Materials=INT_DECALS_Chrome

[Material_Metal_v2]
Materials=metal_2.001
Reflectance = 3
LocalReflectionsSharpness = 0.05
CubemapReflectionBlur=1
Brightness=2

[Material_Metal_v2]
Materials=EXT_Chrome.001, S2000_CHROME, CHROME, plate_bolts, plate_seal
CubemapReflectionBlur=1
DetailScale = 50
Reflectance = 0.1
LocalReflectionsSharpness = 0.05
ApplyTilingFix=1

[Material_Metal_v2]
Materials=banka_metal
DetailScale = 0
Metalness = 1
Reflectance = 0.65
LocalReflectionsSharpness = 0.5

[Material_Metal_v2]
Materials=banka_chrome
BrightnessAdjustment = 0.85
DetailScale = 80
Metalness = 1
Reflectance = 1
LocalReflectionsSharpness = 1

[DI_DRIVEN_TOTAL_...]
DIGITAL_ITEM=1
DIGITAL_ITEM_NUMBER_FORMAT=06.0
UPPER_BOUND=999999

[DI_DRIVEN_SESSION_...]
DIGITAL_ITEM=2
DIGITAL_ITEM_NUMBER_FORMAT=05.1
UPPER_BOUND=999.9

[ANALOG_INDICATOR_...]
INPUT = RPM
INPUT_MAX = 9300
NAME = INT_RPM
ZERO = 1
LUT=(0000=0|1000=7|9000=102)

[INCLUDE: common/selflighting.ini]

[SelfLight_Headlights]
POSITION=0, 0.42, 1.68
SPOT=90
DIRECTION==0.2,0,1
RANGE_GRADIENT_OFFSET=0
RANGE=0.3
MIRROR=0.57
COLOR=0.5,0.5,0.6,100
BOUND_TO = EXT_HLGlow1

[SelfLight_Headlights]
POSITION=0, 0.41, 1.67
MIRROR=0.45
DIRECTION=0.5,-0.2,1
RANGE=0.3
SPOT=120
COLOR=0.5,0.5,0.6,800
BOUND_TO = Highbeam

[LIGHT_HEADLIGHT_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1.3, 1.5, 10
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.1, 1
EXTERIOR_ONLY=0
FADE_AT=500
FADE_SMOOTH=50
INTERIOR_ONLY=0
LAG=0.5
LOWBEAM_RANGE_MAX=200
LOWBEAM_RANGE_MULT=1
LOWBEAM_RANGE_ONCOMING_MULT=0.4
MIRROR=0.57
MIRROR_DIRECTION=0
POPUP_ENABLED=0
POSITION=0, 0.42, 1.8
RANGE=150
RANGE_GRADIENT_OFFSET=0
SINGLE_FREQUENCY=0
SPECULAR_MULT=0.3
SPOT=60
SPOT_EDGE=0.02088, 0.01992, 0.018
SPOT_EDGE_SHARPNESS=50
SPOT_SHARPNESS=0
SPOT_UP=0.0499376, 0.998752, 0

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
COLOR=1, 0, 0, 15
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=60
FADE_SMOOTH=50
INTERIOR_ONLY=0
MIRROR=0.468203
OFF_COLOR=1, 0.0911936, 0.0265662, 1.35
OFF_FADE_MULT=0.674586
OFF_MIRROR=0.549986
OFF_MULT=0.1
OFF_POSITION=0, 0.54357, -1.98224
OFF_RANGE_MULT=0.767561
POSITION=0, 0.65, -1.87652
RANGE=3
RANGE_GRADIENT_OFFSET=0.4
SPECULAR_MULT=1
SPOT=150
SPOT_EDGE=0.582, 0.582, 0.582
SPOT_EDGE_SHARPNESS=1
SPOT_SHARPNESS=0.2

[LIGHT_REVERSE_0]
COLOR=0.5, 0.7, 1, 4
MIRROR=0.425
SPOT=100

[LIGHT_TURNSIGNAL_LEFT_0]
DIRECTION=0.5, 0, 0.76
OFF_POSITION=0.68, 0.45, 1.68
POSITION=0.68, 0.45, 1.68
EXTERIOR_ONLY=0

[LIGHT_TURNSIGNAL_RIGHT_0]
DIRECTION=-0.5, 0, 0.76
OFF_POSITION=-0.68, 0.45, 1.68
POSITION=-0.68, 0.45, 1.68
EXTERIOR_ONLY=0

[LIGHT_LICENSEPLATE]
MESHES=R_plate_SUB0, R_plate
OFFSET=0.015, 0.03, 0
RANGE=1.5
RANGE_GRADIENT_OFFSET=0.0
SPOT=100
SPOT_SHARPNESS=0.0
COLOR=5,5,7,3
FALLBACK_EMISSIVE=1,1,1,2
LAYOUT=TWO_ON_TOP
AFFECTS_TRACK=1

; =========Brake Disc FX=========

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

; =========SMART MIRROR Settings=========

[REAL_MIRROR_0]
ASPECT_MULT=1.0
FLIP=0
FOV=25.0
IS_MONITOR=0
ROTATION=1,1

[REAL_MIRROR_1]
ASPECT_MULT=1.0
FLIP=0
FOV=25.0
IS_MONITOR=0
ROTATION=0.0,0.0

[REAL_MIRROR_2]
ASPECT_MULT=1.0
FLIP=0
FOV=25.0
IS_MONITOR=0
ROTATION=-1,0.02

; =========Defi guages=========

[ANALOG_INDICATOR_...]
INPUT = OIL_PRESSURE 			; pressure: here, angles are set with LUT, as in original
NAME = ARROW_OIL_PRESSURE
INPUT_MAX = 10.0
MIN_VALUE = 0
LUT = (| 0=300 | 10=500 |)

[ANALOG_INDICATOR_...]
INPUT = OIL_TEMPERATURE 			; temperature: here, angles are set with LUT, as in original
NAME = ARROW_OIL_TEMP
INPUT_MAX = 150.0
LUT = (| 0=170 | 60=197 | 70=224 | 80=251 | 90=278 | 100=295 | 110=322 | 120=349 | 130=376 | 140=403 | 150=430 |)

; =========RACELOGIC lap time display by Tony Cooke=========

[ANALOG_INDICATOR_...]
INPUT = PERF_METER_DIFF
INPUT_MULT = 0.25
NAME = CSP_B
SCALE_START = -1, 1, 1
SCALE_END = 1
RANGE = 0
SPEED_LAG = 0
LOWER_BOUND = -1
UPPER_BOUND = 1

; =========CSP exhaust flame=========

[EXHAUST_FLAMES]
ANTILAG=0
ANTILAG_DELAY=0.1
ANTILAG_INTENSITY=1.5
ANTILAG_INTERVAL_MAX=0.2
ANTILAG_INTERVAL_MIN=0.01
ANTILAG_TURBO_THRESHOLD=0.3
DAMAGE=0
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1
DISCHARGE_CHARGE_TIME=0
DISCHARGE_DELAY=0.5
DISCHARGE_DURATION=0.3
DISCHARGE_PROBABILITY=1
DISCHARGE_INTENSITY=0.5
DISCHARGE_RPM_THRESHOLD_MAX=9500
DISCHARGE_RPM_THRESHOLD_MIN=3000
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=70
FLAT_SHIFT=0
FLAT_SHIFT_COOLDOWN=0.5
FLAT_SHIFT_DURATION=0.01
FLAT_SHIFT_GAS_THRESHOLD=50
FLAT_SHIFT_INTENSITY=0.25
FLAT_SHIFT_PROBABILITY=1
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=1
LIMITER_DELAY=0
LIMITER_INTENSITY=0.5
LIMITER_RPM_THRESHOLD=8800