[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[BRAKEDISC_FX_FRONT]
ACTIVE = 1
OVERRIDE_NORMAL_MAP = 0
DISC_RADIUS = 0.16
DISC_INTERNAL_RADIUS = 0.105

[BRAKEDISC_FX_REAR]
ACTIVE = 1
OVERRIDE_NORMAL_MAP = 0
OVERRIDE_DIFFUSE_MAP = 0
DISC_RADIUS = 0.135
DISC_INTERNAL_RADIUS = 0.09

[AUDIO_VOLUME]
ENGINE_EXT = 1.0
ENGINE_INT = 1.3
GEAR_EXT = 1.0
GEAR_INT = 1.0
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1.0
BACKFIRE_INT = 1.0
TRANSMISSION = 0.9
LIMITER = 1.0
TURBO = 1.1

[DEFORMING_HOOD]
NAME=hood_SUB1					; name of parenting node containing all meshes to deform
OFFSET_Y_MIDDLE=0.06    		; how high would it offset in the center at full damage
OFFSET_Y_END=0.01       		; how high would it offset at the far end at full damage
OFFSET_Z_END=0.01       		; how far would it offset at the far end
BULGING_EXTRA=0.0       		; increase to make shape go less triangly and more trapezoid-like
BULGING_EXPONENT=2.0    		; affects the curve of slopes around raised center
NOISE_Y_AMPLITUDE=-0.16 		; some simple vertical noise at the center
NOISE_Z_AMPLITUDE=0.2   		; and horizontal noise at the far end
NOISE_Y_FREQENCY=7.0    		; which adds
NOISE_Z_FREQENCY=7.0    		; some randomization
Z_FACTOR=2.5            		; how center is being found
Z_BIAS=0.0 


[WIPERS]
WIND_THRESHOLDS_KMH = 60, 220  ; speed for wipers to start vibrating and for maximum vibration
WIND_OFFSET = 0.02	           ; base animation progress to vibrate around
WIND_AMPLITUDE_MULT = 1        ; multiplier for amplitude
WIND_FREQUENCY_MULT = 1        ; multiplier for frequency


[PARTICLES_FX_EXHAUST_0]
POSITION = 0.498,0.275,-1.944

[PARTICLES_FX_EXHAUST_1]
POSITION = -0.498,0.275,-1.944

[PARTICLES_FX_EXHAUST_0, PARTICLES_FX_EXHAUST_1]
DIRECTION = 0.000, 0.000, -1.000

[SMART_MIRROR]
DISALLOW_MAPPING_NORMALIZATION = 1

[REAL_MIRROR_0]
ROTATION=0.09, -0.01

[REAL_MIRROR_1]
ROTATION=0.01,-0.03

[INCLUDE: common/materials_carpaint.ini]
DisableDev = 1
CarPaintMaterial = PAINT
CarPaintVersionAware = 2

[Material_CarPaint_Solid]
Skins = ?
BrightnessAdjustment = 1.0
FresnelMax = 1.0
FresnelC = 0.1

[INCLUDE: common/materials_glass.ini]

; window
[Material_Glass]
Materials = GLASS
FilmIOR = 2.0
ThicknessMult = 1.5
MaskPass = 1             
MaskPassColor = 0, 255, 200

; Turn signals

[EMISSIVE_REVERSE_0]
NAME=reverse_light
COLOR=25, 25, 25, 20
LAG=0.8
SIMULATE_HEATING=0.3

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=turnlight_lf
COLOR=25, 12, 0, 120
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=turnlight_lr
COLOR=25, 12, 0, 130
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME=LED_0
COLOR=0, 20, 0, 120
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=NONE

[EMISSIVE_TURNSIGNAL_LEFT_3]
NAME=turnlight_mirror_l
COLOR=25, 12, 0, 110
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=NONE

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=turnlight_rf
COLOR=25, 12, 0, 120
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=turnlight_rr
COLOR=25, 12, 0, 130
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=LED_4
COLOR=0, 20, 0, 120
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=NONE

[EMISSIVE_TURNSIGNAL_RIGHT_3]
NAME=turnlight_mirror_r
COLOR=25, 12, 0, 110
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=NONE

[EMISSIVE_HIGHBEAM_...]
MESHES = LED_2
COLOR = 0, 0, 1, 50 
OFF_COLOR = 0
LAG = 0.1
SIMULATE_HEATING = 1.0
LOCATION = FRONT

[EMISSIVE_HIGHBEAM_...]
MESHES = LIGHT_HIGHBEAM
COLOR = 100, 110, 100, 10 
OFF_COLOR = 0
LAG = 0.1
SIMULATE_HEATING = 1.0
LOCATION = FRONT

; Fog lights

[EMISSIVE_EXTRA_C_...]
NAME= fog_light
COLOR=5, 0, 0, 100
LAG=0.2
SIMULATE_HEATING=0
LOCATION=REAR

[EMISSIVE_EXTRA_C_...]
NAME= LED_7
COLOR=5, 0, 0, 10
LAG=0.2
SIMULATE_HEATING=0
LOCATION=REAR

; Interior materials

[INCLUDE: common/materials_interior.ini]

[Material_Carpet_v2]
Materials = SW_ALCANTARA, SEAT
BrightnessAdjustment = 0.25
DetailScale = 3
ApplyTilingFix = 1

[Material_Aluminium_v2]
Materials = METAL
DetailScale = 1.2
ApplyTilingFix = 1
Metalness = 0.15
CubemapReflectionBlur = 0.45

[Material_Metal]
Materials = INTERIOR_1
Metalness = 0.05
BrightnessAdjustment = 0.3
LocalReflectionsSharpness = 1

[Material_Plastic_v2]
Materials = COCKPIT_PLASTIC
DetailScale = 250
BrightnessAdjustment = 0.22
Reflectance = 0.3
Smoothness = 0.6
DetailNormalPBRSecondaryColor = 0.392, 0.415, 0.407, 1
CubemapReflectionBlur = 1
DetailNormalIntensity = 0.95
ApplyTilingFix = 1

[Material_Plastic_v2]
Materials = COCKPIT_RUBBER
DetailScale = 500
BrightnessAdjustment = 0.315
Reflectance = 0.25
Smoothness = 0.5
DetailNormalPBRSecondaryColor = 0.23, 0.23, 0.23, 5
CubemapReflectionBlur = 1
DetailNormalIntensity = 0.85

;[SHADER_REPLACEMENT_...]
;MESHES=BANNER_EXT, BANNER_INT
;IS_TRANSPARENT=1
;BLEND_MODE=ALPHA_BLEND

; DELTA main

[SHADER_REPLACEMENT_...]
MESHES = DELTA
PROP_0 = ksAmbient, 0
PROP_1 = ksDiffuse, 0
CULL_MODE = DOUBLESIDED

[EMISSIVE_...]
INPUT = PERF_METER_DIFF
INPUT_MULT = 0.25
NAME = DELTA
INPUT_THRESHOLD = 0
COLOR = 0, 4, 0                                       
OFF_COLOR = 4, 0, 0

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

[AUDIO_PITCH]
ENGINE_EXT = 0.95
ENGINE_INT = 0.95

; Dashboard magic

[ANIMATION_...]
BIND_TO_EXTRA_A = 1
FILE = display.ksanim
TIME = 0.01
INPUT_AS_PROGRESS = 0      
LOOP_WHILE_ACTIVE = 0
LOOP_KEEP_UNTIL_DONE = 1
TICK_TOCK_MODE = 0
AFFECTS_INTERIOR_SHAPE = 0

[ANALOG_INDICATOR_...]
INPUT = OIL_PRESSURE
NAME = graphic_0_bar
SCALE_START = 0, 1, 1
SCALE_END = 1
RANGE = 0
SPEED_LAG = 0
LOWER_BOUND = 1
UPPER_BOUND = 8

[EMISSIVE_...]
TOGGLE_VISIBILITY=1
INPUT = OIL_PRESSURE
NAME = graphic_0, graphic_0_bar
INPUT_THRESHOLD = 2.0
INPUT_THRESHOLD_INVERSE=1
COLOR = 5,0,0
OFF_COLOR=5,5,5

[ANALOG_INDICATOR_...]
INPUT = WATER_TEMPERATURE
NAME = graphic_1_bar
INPUT_DEBUG = 70
SCALE_START = 0, 1, 1
SCALE_END = 1
RANGE = 0
SPEED_LAG = 0
LOWER_BOUND = 10
UPPER_BOUND = 100

[EMISSIVE_...]
TOGGLE_VISIBILITY=1
INPUT = WATER_TEMPERATURE
NAME = graphic_1, graphic_1_bar
INPUT_THRESHOLD = 60.0
INPUT_THRESHOLD_INVERSE=1
COLOR = 5,0,0
OFF_COLOR=5,5,5

[ANALOG_INDICATOR_...]
INPUT = BATTERY
NAME = graphic_2_bar
SCALE_START = 0, 1, 1
SCALE_END = 1
RANGE = 0
SPEED_LAG = 0
LOWER_BOUND = 1
UPPER_BOUND = 14

[EMISSIVE_...]
TOGGLE_VISIBILITY=1
INPUT = BATTERY
NAME = graphic_2, graphic_2_bar
INPUT_THRESHOLD = 12.0
INPUT_THRESHOLD_INVERSE=0
COLOR = 5,5,5
OFF_COLOR=15,0,0

[ANALOG_INDICATOR_...]
INPUT = OIL_TEMPERATURE
INPUT_MULT = 0.8
NAME = graphic_3_bar
SCALE_START = 0, 1, 1
SCALE_END = 1
RANGE = 0
SPEED_LAG = 0
LOWER_BOUND = 10
UPPER_BOUND = 100

[EMISSIVE_...]
TOGGLE_VISIBILITY=1
INPUT = OIL_TEMPERATURE
INPUT_MULT = 0.8
NAME = graphic_3, graphic_3_bar
INPUT_THRESHOLD = 50.0
INPUT_THRESHOLD_INVERSE=1
COLOR = 15,0,0
OFF_COLOR=5,5,5

[SHADER_REPLACEMENT_...]
MESHES = graphic_?, graphic_?_bar
PROP_0 = ksAmbient, 0
PROP_1 = ksDiffuse, 0
CULL_MODE = DOUBLESIDED

; dashboard emmisives
[INCLUDE: common/custom_emissive.ini]

[CustomEmissiveMulti]
Meshes = DISPLAY_CPIT
Resolution = 1024, 512
UseEmissive0AsFallback = 0
@ = DashHighlight
@ = CustomEmissive_UseDiffuseLuminocity, From = 0.05, 0.12
@ = MultiItem, Role = DashWarningTemperature, Color = 1, Start = "116.5, 448.8", Size = "38.4, 32.2"
@ = MultiItem, Role = OIL_TEMPERATURE, InputThreshold = 2.0, InputInverse, Start = "161.7, 449.4", Size = "28.8, 29.9"
@ = MultiItem, Role = STALLED, Start = "196.7, 449.4", Size = "27.1, 30.5"
@ = MultiItem, Role = DashWarningEngine, Start = "227, 445", Size = "35, 39"
@ = MultiItem, Role = DashWarningCollision, Start = "230.6, 447.1", Size = "26.5, 33.3"

[CustomEmissiveMulti]
Meshes = DISPLAY_CPIT_P2
Resolution = 1024, 512
UseEmissive0AsFallback = 0
@ = DashHighlight
@ = CustomEmissive_UseDiffuseLuminocity, From = 0.05, 0.12
@ = MultiItem, Role = DashWarningTemperature, Color = 1, Start = "116.5, 448.8", Size = "38.4, 32.2"
@ = MultiItem, Role = OIL_TEMPERATURE, InputThreshold = 2.0, InputInverse, Start = "161.7, 449.4", Size = "28.8, 29.9"
@ = MultiItem, Role = STALLED, Start = "196.7, 449.4", Size = "27.1, 30.5"
@ = MultiItem, Role = DashWarningEngine, Start = "227, 445", Size = "35, 39"
@ = MultiItem, Role = DashWarningCollision, Start = "230.6, 447.1", Size = "26.5, 33.3"

[DI_OIL_PRESSURE_...]
DIGITAL_ITEM = 9
DIGITAL_ITEM_NUMBER_FORMAT = 1.1
UPPER_BOUND = 8

[DI_BATTERY_...]
DIGITAL_ITEM = 11
DIGITAL_ITEM_NUMBER_FORMAT = 2.1
UPPER_BOUND = 14

[DI_OIL_TEMPERATURE_...]
DIGITAL_ITEM = 12
DIGITAL_ITEM_NUMBER_FORMAT = 2.0
LOWER_BOUND =20
UPPER_BOUND = 100
INPUT_MULT = 0.8

; RACELOGIC

[ANIMATION_...]
BIND_TO_EXTRA_B = 1
FILE = racelogic.ksanim
TIME = 0.01
INPUT_AS_PROGRESS = 1
PROGRESS = 0.25

[SHADER_REPLACEMENT_...]
MESHES = DELTA_2
PROP_0 = ksAmbient, 0
PROP_1 = ksDiffuse, 0
CULL_MODE = DOUBLESIDED

[EMISSIVE_...]
INPUT = PERF_METER_DIFF
INPUT_MULT = 0.25
NAME = DELTA_2
INPUT_THRESHOLD = 0
COLOR = 3, 3, 3                                       
OFF_COLOR = 3, 3, 3

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

[EMISSIVE_...]
INPUT = PERF_METER_DIFF
INPUT_MULT = 0.175
NAME = geo_racelogic_LED?
INPUT_THRESHOLD = 0
COLOR = 20, 0, 0                                       
OFF_COLOR = 0, 20, 0

[EMISSIVE_SPEEDLIMITER_...]
NAME=LED_3, LED_7
COLOR=20, 0, 0, 5
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=NONE
BLINKING_PATTERN = (|0=0|0.499=0.0|0.5=1|1=1|)
BLINKING_DURATION = 0.6