[INCLUDE: common/selflighting.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: refractions.ini]
[INCLUDE: pbr.ini]
[INCLUDE: analog.ini]

[AUDIO_VOLUME]
ENGINE_EXT = 0.15
ENGINE_INT = 0.2
GEAR_EXT = 0
GEAR_INT = 0
WHEEL=0.4
WIND=0.4
TRANSMISSION = 0

[DATA]
DISABLE_LIGHTSINI = 1

[BASIC]
IS_LOW_BEAM_AVAILABLE=1

[LIGHT_LICENSEPLATE]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
MESHES=EXT_RearPlate
OFFSET=0.01, 0.05, -0.01
RANGE=0.36
RANGE_GRADIENT_OFFSET=0.5
SPOT=180
SPOT_SHARPNESS=0.3
COLOR=5,4.9,3.4,2
FALLBACK_EMISSIVE=5,4.9,3.0,0.1
LAYOUT=TWO_ON_TOP
FADE_AT=250

[SelfLight_Headlights]
POSITION = 0, 0.5, 1.71
MIRROR = 0.56
DIRECTION = -0.5, -0.6, 1
BOUND_TO = headlight_bulb
COLOR = 1.7, 1.5, 1, 500
SPOT = 100
SPOT_SHARPNESS = 0.4
RANGE = 0.5

[SelfLight_Headlights]
POSITION = -0.7, 0.47, 1.66
DIRECTION = -0.4, 0.2, 1
BOUND_TO = headlight_bulb_blinkR
COLOR = 1.7, 1.5, 1, 1000
SPOT = 100
SPOT_SHARPNESS = 0.6
RANGE = 0.45

[SelfLight_Headlights]
POSITION = 0.7, 0.47, 1.66
DIRECTION = 0.4, 0.2, 1
BOUND_TO = headlight_bulb_blinkL
COLOR = 1.7, 1.5, 1, 1000
SPOT = 100
SPOT_SHARPNESS = 0.6
RANGE = 0.45

[CustomEmissiveMulti]
Meshes = cluster_lights         ; target mesh
Resolution = 512, 512      ; texture resolution for coordinates to work
@ = DashHighlight           ; bind dashboard highlight to emissive channel #0

@ = MultiItem, Role = TURNSIGNAL_LEFT, Color = "4, 4, 2, 2", Start = "8, 172", Size = "130, 87"
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Color = "4, 4, 2, 2", Start = "16, 345", Size = "120, 79"
@ = MultiItem, Role = ABS_INACTION,  Start = "350, 344", Size = "131, 86"
@ = MultiItem, Role = HANDBRAKE,  Start = "353, 92", Size = "142, 83"
@ = MultiItem, Role = HIGHBEAM,Color = "1, 1, 2, 1.5",  Start = "10, 84", Size = "136, 85"
@ = MultiItem, Role = DashWarningSeatbelt,  Start = "339, 174", Size = "154, 91"
@ = MultiItem, Input = FUEL, InputThreshold = 4, InputInverse,  Color = "20, 10, 0, 0.2", Start = "342, 427", Size = "160, 85"
@ = MultiItem, Input = STALLED,  Color = "10, 10, 10, 0.2", Start = "3, 426", Size = "144, 86"

[EMISSIVE_LIGHT_...]
NAME=gaugeBLITZ_light, TurboDecals,needle_turbo, needle_oil_press, needle_oil_temp, gaugeBLITZ_lightR
COLOR=2,2,2,0.7
BIND_TO_HEADLIGHTS=1

[EMISSIVE_LIGHT_...]
NAME=INT_gauges, INT_symbols_misc, INT_symbols_AC
COLOR=255,179,179,0.05
BIND_TO_HEADLIGHTS=1

[EMISSIVE_LIGHT_0]
NAME= headlight_bulb, vray_headlights, headlight_bulb_parking
COLOR=2.4,1.7,0.7,3000
ACT_AS_HEADLIGHTS=1
CAST_LIGHT = 1
LOCATION = FRONT
BIND_TO_HEADLIGHTS=1


[EMISSIVE_BRAKE_0]
NAME=tailights_glass_red
CHANNEL=0
FALLBACK_HEADLIGHTS_COLOR=255,100,0,0.3
LAG=0.6
COLOR=255,100,0,2.5
CAST_LIGHT = 1

[EMISSIVE_LIGHT_1]
NAME=tailights_glass_red
CHANNEL=1
LAG=0.6
COLOR=255,100,0,0.3
LOCATION = REAR
CAST_LIGHT = 1

[EMISSIVE_REVERSE_0]
NAME= taillight_reverse_glass
COLOR=2,2,1.7,1
LAG=0.8
SIMULATE_HEATING=0.2
LOCATION=REAR
BIND_TO_HEADLIGHTS=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5
CHANNEL = 0

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME= taillight_indicator_glass
COLOR=14,4,0,0.4
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=REAR
FADE_AT=550
CAST_LIGHT=1
CHANNEL=4

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME= taillight_indicator_glass
COLOR=14,4,0,0.4
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=REAR
FADE_AT=550
CAST_LIGHT=1
CHANNEL=3


[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME= headlight_bulb_blinkR
COLOR=10,4,0,50
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME= headlight_bulb_blinkL
COLOR=10,4,0,50
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME= blinker_side_glass
COLOR=10,4,0,0.6
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=RIGHT
FADE_AT=550
CAST_LIGHT=1
CHANNEL=4

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME= blinker_side_glass
COLOR=10,4,0,0.6
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=LEFT
FADE_AT=550
CAST_LIGHT=1
CHANNEL=3

[EMISSIVE_TURNSIGNAL_RIGHT_3]
NAME= vray_blinkR
COLOR=4.2,1.3,0.3,2500
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_LEFT_3]
NAME= vray_blinkL
COLOR=4.2,1.3,0.3,2500
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1

[EMISSIVE_HAZARD_0]
NAME=INT_hazard_button
COLOR=65,10,0,1
LAG=0.2
LOCATION=NONE

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0, 0, 3
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.539732
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.539732
OFF_MULT=0.1
OFF_POSITION=0, 0.663183, -1.9255
OFF_RANGE_MULT=0.5
POSITION=0, 0.663183, -2.1
PREFER_FRONT=-1
RANGE=4
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=140
SPOT_EDGE=0.296, 0.296, 0.296
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.38

[LIGHT_EXTRA_0]
BIND_TO_HEADLIGHTS=1
COLOR=255,179,159,0.1
DIFFUSE_CONCENTRATION=0.4
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=90
FADE_SMOOTH=50
MIRROR=0, 0, 0
POSITION=-0.315, 0.65, 0.69
DIRECTION=-0, 0, -1
RANGE=0.2
RANGE_GRADIENT_OFFSET=0.00
SPECULAR_MULT=0
SPOT=200
SPOT_SHARPNESS=0.2

[EXHAUST_FLAMES]
ANTILAG=0
ANTILAG_DELAY=0.02
ANTILAG_INTENSITY=1
ANTILAG_INTERVAL_MAX=0.0
ANTILAG_INTERVAL_MIN=0.00
ANTILAG_TURBO_THRESHOLD=0.0
DAMAGE=0
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1
DISCHARGE_CHARGE_TIME=0
DISCHARGE_DELAY=0.02
DISCHARGE_DURATION=0.5
DISCHARGE_INTENSITY=0.15
DISCHARGE_PROBABILITY=0.35
DISCHARGE_RPM_THRESHOLD_MAX=9000
DISCHARGE_RPM_THRESHOLD_MIN=4000
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=0.4
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=0
LIMITER_DELAY=0.01
LIMITER_INTENSITY=0.5
LIMITER_RPM_THRESHOLD=8000

[SHADER_REPLACEMENT_...]
MATERIALS = ?
DOUBLE_FACE_SHADOW_BIASED = 1

[SHADER_REPLACEMENT_...]
MATERIALS = windows
PROP_... = ksAlphaRef, 1

[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 = 50  ; 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

; Patch would try and guess size of brake disc and its inside area from its mesh, but if it fails:
DISC_RADIUS = 0.141           ; radius of a brake disc
DISC_INTERNAL_RADIUS = 0.091  ; radius of an inside part of a brake disc

DEBUG = 0
