[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[SHADER_REPLACEMENT_1]
DESCRIPTION = gauge cluster, needles
MATERIALS = INT_Gauges
SHADER=ksPerPixelMultiMap_emissive
;RESOURCE_0 = txDiffuse
RESOURCE_1 = txNormal
RESOURCE_2 = txMaps
RESOURCE_3 = txDetail
RESOURCE_4 = txEmissive
;RESOURCE_FILE_0 = gauges.png
RESOURCE_FILE_1 = blank_normal.dds
RESOURCE_FILE_2 = blank_map.dds
RESOURCE_FILE_3 = blank_normal.dds
RESOURCE_FILE_4 = gauge_illum.png
;SKINS = aspen_white

[INCLUDE: common/materials_glass.ini]
ExteriorGlassMaterials = Glass, Glass_Black
FilmIOR=1.5
ProfileFix=0.006
ThicknessMult = 1
Desaturate=0

[INCLUDE : common/materials_carpaint.ini]
[TEMPLATE: Material_WRX_Metallic EXTENDS Material_CarPaint_Metallic]
SpecularSun = 1, 1200
FresnelMax = 0.7
FresnelC = 0.04

[EMISSIVE_EXTRA_A_0]
BIND_TO_EXTRA_A=1
BIND_TO_HEADLIGHTS=0
NAME=Headlight_Fog
COLOR=100, 90, 40
LAG=0.5
SIMULATE_HEATING=0
LOCATION=FRONT
CLUSTER_THRESHOLD=0.5

[LIGHT_EXTRA_4]
BIND_TO_EXTRA_A=1
COLOR=1, 0.9, 0.4, 3
DIFFUSE_CONCENTRATION=0.75
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=120
FADE_SMOOTH=50
MIRROR=0.62
POSITION=0,0.35,2.15
DIRECTION=0,-0.75,1
RANGE=27
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=3
SPOT=130
SPOT_SHARPNESS=0.25


[LIGHT_EXTRA_A_1]
CAST_LIGHT=1
COLOR=2.5,2.5,2.48

[EMISSIVE_REVERSE_0]
NAME=Taillight_Reverseglo
COLOR=75,75,75
LAG=0.2
SIMULATE_HEATING=0.3

[LIGHT_REVERSE_0]
CAST_LIGHT=1
COLOR=1.2,1.2,1.15
OFF_COLOR=0,0,0

;not really working ATM
[INCLUDE: common/custom_emissive.ini]
HeatingMult = 0.5

[CustomEmissive]
Meshes= Light_Frontmarker
@ = CustomEmissive_CoverAll, Channel = 3, Mirror
@ = AlphaFromTxDiffuse
@ = TurningLightsFrontCorner, Channel = 3, HeadlightsIntensity = 1

[CustomEmissive]
Meshes = Taillight_Turnglo
@ = CustomEmissive_CoverAll, Channel = 3, Mirror
@ = TurningLightsRear, Channel = 3

[CustomEmissive]
Meshes = Headlight_Turn
@ = CustomEmissive_CoverAll, Channel = 3, Mirror
@ = AlphaFromTxDiffuse
@ = TurningLightsFront, Channel = 3

[ODOMETER_MAIN]
DIGITAL_ITEM=0
DIGITAL_ITEM_NUMBER_FORMAT=06.0
UPPER_BOUND=999999

[ODOMETER_TRIP]
DIGITAL_ITEM=1
DIGITAL_ITEM_NUMBER_FORMAT=3.1
UPPER_BOUND=999.9

[DI_COMPASS_...]
DIGITAL_ITEM=3

[DI_TIME_...] ; track number
DIGITAL_ITEM=4
DIGITAL_ITEM_NUMBER_FORMAT=02.0
INPUT_MOD=11
INPUT_MULT=0.003310162197947699437
INPUT_ROUND=1.0
INPUT_ROUND_MODE=CEIL

[DI_TIME_...] ; track time
DIGITAL_ITEM=5
INPUT_MOD=302.1 ; note this is just 1/input_mult from above
DIGITAL_ITEM_NUMBER_FORMAT = TIME, '%M:%S' 


[REFRACTING_HEADLIGHT_0]
SURFACE = Headlight_Refractor
INSIDE = Headlight_Mainbeam
RELATIVE_TO = PARENTS_PARENT
SYNC_EMISSIVE_AUTO=1
ABSORPTION = 0.026
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 0.02
BOUNCED_BACK_MULT = 0.25
BULB_BLUR_K = 3.2
BULB_REFLECTION_K = 0.1
CUSTOM_BULB_0 = 0.44, 0.47, 0.09, 0
CUSTOM_BULB_1 = 0.55, 0.521, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 1
CUSTOM_BULB_3 = 0.5, 0.5, 0, 1
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.0638626, 0.995591, 0.0746023
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.99
EXTRA_SIDE_THICKNESS = 49
F0 = 0.29
GLASS_COLOR = 1, 0.936354, 0.650117, 0.25
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.0025
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 795
IOR = 1
IOR_FLYOUT_FLAT = 0
LOD_BIAS = 0.5
MIRROR_DIR = 1.0006, 3.63737e-05, -1.39698e-09
MIRROR_POS = 0, 0, 0
NM_SHARE_EXT = 0
NM_SHARE_INT = 0
ORIGIN = 0.562561, -2.02594, 0.624671
RADIUS = 0.1088
RAYTRACE_STEP_INCREASE = 1.13
RAYTRACE_STEP_START = 0.06
REFLECTIVENESS_DIFFUSE_MULT = 11.3
REFLECTIVENESS_MULT = 6.1
REFLECTIVE_GAMMA = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 0

[REFRACTING_HEADLIGHT_1]
SURFACE = Headlight_Fog_Glass
INSIDE = Headlight_Fog
SYNC_EMISSIVE_AUTO=1
RELATIVE_TO = PARENTS_PARENT
ABSORPTION = 0.026
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 0.02
BOUNCED_BACK_MULT = 0.28
BULB_BLUR_K = 3
BULB_REFLECTION_K = -0.07
CUSTOM_BULB_0 = 0.49, 0.49, 0.05, 0
CUSTOM_BULB_1 = 0.55, 0.521, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 1
CUSTOM_BULB_3 = 0.5, 0.5, 0, 1
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.0639587, 0.99587, 0.0746157
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.99
EXTRA_SIDE_THICKNESS = 45
F0 = 0.23
GLASS_COLOR = 1, 0.936354, 0.650117, 0.25
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.0025
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 795
IOR = 1.6
IOR_FLYOUT_FLAT = 0
LOD_BIAS = 0.5
MIRROR_DIR = 1.00092, -3.08901e-05, -1.47568e-06
MIRROR_POS = 0, 0, 0
NM_SHARE_EXT = 0
NM_SHARE_INT = 0
ORIGIN = 0.610855, -2.02832, 0.38458
RADIUS = 0.1088
RAYTRACE_STEP_INCREASE = 1.13
RAYTRACE_STEP_START = 0.03
REFLECTIVENESS_DIFFUSE_MULT = 4.3
REFLECTIVENESS_MULT = 5.8
REFLECTIVE_GAMMA = 0.3
SIDE_FALLOFF = 2.16
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 0

[REFRACTING_HEADLIGHT_2]
SURFACE = Taillight_Turn
INSIDE = Taillight_SUB0, Taillight_Turnglo
SYNC_EMISSIVE_AUTO=0
SYNC_EMISSIVE_0 = Taillight_Turnglo
SYNC_EMISSIVE_0_MULT = 3
SYNC_EMISSIVE_0_CHANNEL_IN = 3,4
SYNC_EMISSIVE_0_CHANNEL_OUT = 3,4
RELATIVE_TO = PARENTS_PARENT
ABSORPTION = 0.026
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 0.07
BOUNCED_BACK_MULT = 0.28
BULB_BLUR_K = 2.5
BULB_REFLECTION_K = -0.1
CUSTOM_BULB_0 = 0.49, 0.49, 0.05, 0
CUSTOM_BULB_1 = 0.49, 0.49, 0.05, 0
CUSTOM_BULB_2 = 0.49, 0.49, 0.05, 0
CUSTOM_BULB_3 = 0.49, 0.49, 0.05, 0
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 0
DIRECTION = -0, -1, -0.0
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.99
EXTRA_SIDE_THICKNESS = 61
F0 = 0.23
GLASS_COLOR = 1, 0.936354, 0.650117, 0.25
GLASS_EMISSIVE_MULT = 0.2
GLASS_EXTRA_THICKNESS = 0.0041
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 795
IOR = 1.6
IOR_FLYOUT_FLAT = 0
LOD_BIAS = 0.3
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1, 0, 0
MIRROR_POS = 0, 0, 0
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.61
ORIGIN = 0.616213, 2.04, 0.784876
RADIUS = 0.1247
RAYTRACE_STEP_INCREASE = 1.15
RAYTRACE_STEP_START = 0
REFLECTIVENESS_DIFFUSE_MULT = 9.2
REFLECTIVENESS_MULT = 3.2
REFLECTIVE_GAMMA = 0.2
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.89
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0

[REFRACTING_HEADLIGHT_3]
SURFACE = Taillight_Reverse
INSIDE = Taillight_SUB0, Taillight_Reverseglo
SYNC_EMISSIVE_AUTO=1
RELATIVE_TO = PARENTS_PARENT
ABSORPTION = 0.026
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 0.07
BOUNCED_BACK_MULT = 0.28
BULB_BLUR_K = 2.5
BULB_REFLECTION_K = -0.1
CUSTOM_BULB_0 = 0.49, 0.49, 0.05, 0
CUSTOM_BULB_1 = 0.55, 0.521, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 1
CUSTOM_BULB_3 = 0.5, 0.5, 0, 1
DIFFUSE_MAP_FILTER_MULT = 0
DIFFUSE_MAP_MULT = 0
DIRECTION = -6.88434e-06, -1.00049, 5.59911e-06
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.19
EXTRA_SIDE_THICKNESS = 61
F0 = 0.23
GLASS_COLOR = 1, 0.936354, 0.650117, 0.25
GLASS_EMISSIVE_MULT = 0.2
GLASS_EXTRA_THICKNESS = 0.0041
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 795
IOR = 1.6
IOR_FLYOUT_FLAT = 0
LOD_BIAS = 0.3
MIRROR_DIR = 1.00061, 4.59328e-06, 2.26381e-06
MIRROR_POS = 0, 0, 0
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.61
ORIGIN = 0.595398, 2.05359, 0.784374
RADIUS = 0.1247
RAYTRACE_STEP_INCREASE = 1.15
RAYTRACE_STEP_START = 0
REFLECTIVENESS_DIFFUSE_MULT = 9.2
REFLECTIVENESS_MULT = 3.2
REFLECTIVE_GAMMA = 0.2
SIDE_FALLOFF = 0.89
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0

[REFRACTING_HEADLIGHT_4]
SURFACE = Taillight_Other
INSIDE = Taillight_SUB0, Taillight_SUB1, Taillight_Brakeglo
SYNC_EMISSIVE_AUTO=1
RELATIVE_TO = PARENTS_PARENT
ABSORPTION = 0.003
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 0
BOUNCED_BACK_MULT = 0.89
BULB_BLUR_K = 3.1
BULB_REFLECTION_K = -0.1
CUSTOM_BULB_0 = 0.49, 0.49, 0.05, 0
CUSTOM_BULB_1 = 0.55, 0.521, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 1
CUSTOM_BULB_3 = 0.5, 0.5, 0, 1
DIFFUSE_MAP_FILTER_MULT = 3.59
DIFFUSE_MAP_MULT = 1
DIRECTION = -2.39438e-05, -1, 1.75032e-05
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.19
EXTRA_SIDE_THICKNESS = 0
F0 = 0.27
GLASS_COLOR = 1, 0, 0.0759783
GLASS_EMISSIVE_MULT = 0.21
GLASS_EXTRA_THICKNESS = 0.00390001
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 795
IOR = 1.6
IOR_FLYOUT_FLAT = 0
LOD_BIAS = 0.3
MIRROR_DIR = 1.00228, 9.76771e-06, 8.48505e-06
MIRROR_POS = 0, 0, 0
NM_SHARE_EXT = 0
NM_SHARE_INT = 1
ORIGIN = 0.60141, 2.07294, 0.799355
RADIUS = 0.1704
RAYTRACE_STEP_INCREASE = 1.07
RAYTRACE_STEP_START = 0.02
REFLECTIVENESS_DIFFUSE_MULT = 7.3
REFLECTIVENESS_MULT = 2.6
REFLECTIVE_GAMMA = 0.2
SIDE_FALLOFF = 0.66
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 0

[LIGHT_EXTRA_0]
BIND_TO_HEADLIGHTS=1
COLOR=5,75,5,0.25
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=4.5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.312,0.920,0.750
DIRECTION=0,0,-1
RANGE=0.48
RANGE_GRADIENT_OFFSET=0.1
SPECULAR_MULT=0
SPOT=60
SPOT_SHARPNESS=0.3

;signal tests (needs separated left/right objects. working otherwise.)

;[EMISSIVE_TURNSIGNAL_LEFT_0]
;NAME = Light_Frontmarker
;COLOR = 120,70,10, 1
;LAG = 0.7
;BLINK_FREQENCY_HZ = 1.4  
;SIMULATE_HEATING = 0
;LOCATION = FRONT
;CAST_LIGHT = 1

;[EMISSIVE_TURNSIGNAL_LEFT_1]
;NAME = Headlight_Turn
;COLOR = 120,70,10, 1
;LAG = 0.7
;BLINK_FREQENCY_HZ = 1.4  
;SIMULATE_HEATING = 0
;LOCATION = FRONT
;CAST_LIGHT = 1

;[EMISSIVE_TURNSIGNAL_LEFT_2]
;NAME = Taillight_Turnglo ; Taillight_Turnglo is bulb only, Taillight_Turn is glass
;CHANNEL = 3
;COLOR = 120,70,10, 1
;LAG = 0.7;BLINK_FREQENCY_HZ = 1.4  
;SIMULATE_HEATING = 0
;LOCATION = REAR
;CAST_LIGHT = 1