[BASIC]
IS_LOW_BEAM_AVAILABLE=1

[INCLUDE: common/selflighting.ini]
[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_glass.ini]

;PBR
[Material_CarPaint_Metal]
Materials = EXT_RIM
UseMetallicReflections = 0.6
FresnelMax = 0.15
FresnelC = 0.06
FlakesK = 0.2
ClearCoatThickness = 0.2
ColoredSpecular = 0.3
AmbientSpecular = 0.2
BrightnessAdjustment = 0.75
SpecularBase = 0.35, 5
SpecularMult = 2.0
ClearCoatIntensity = 2.0

[Material_Glass]
Materials = EXT_Glass_Emissive_Front
IOR = 1.5            ; index of refraction for glass, usualy, 1.5
FilmIOR = 2.5       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1.0  ; thicker glass passes less light through
ProfileFix = 0.06    ; adds thickness to glass for glazing angles
BrightnessAdjustment = 1

[Material_Glass]
Materials = EXT_Glass_Emissive_Front_Endu
IOR = 1.5            ; index of refraction for glass, usualy, 1.5
FilmIOR = 2.5       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1.0  ; thicker glass passes less light through
ProfileFix = 0.08    ; adds thickness to glass for glazing angles

[Material_Glass]
Materials = EXT_Glass_Emissive_Rear
IOR = 2            ; index of refraction for glass, usualy, 1.5
FilmIOR = 2       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1.0  ; thicker glass passes less light through
ProfileFix = 0.04    ; adds thickness to glass for glazing angles
FresnelC = 0.02
BrightnessAdjustment = 1

[Material_Glass]
Materials = EXT_Windows
IOR = 2            ; index of refraction for glass, usualy, 1.5
FilmIOR = 3.2       ; redefine IOR for external film layer to increase reflections
ThicknessMult = 1.0  ; thicker glass passes less light through
ProfileFix = 0.04    ; adds thickness to glass for glazing angles
BrightnessAdjustment = 1

[Material_CarPaint_Metal]
Materials = EXT_Wingmetal
UseMetallicReflections = 1.5
FresnelMax = 1
FresnelC = 0.25
FlakesK = 1
ClearCoatThickness = 0.1
ColoredSpecular = 0.3
AmbientSpecular = 0.2
BrightnessAdjustment = 0.8

[Material_CarPaint_Metal]
Materials = EXT_Metal
UseMetallicReflections = 1
FresnelMax = 0.6
FresnelC = 0.15
FlakesK = 1
ClearCoatThickness = 0.2
ColoredSpecular = 0.2
AmbientSpecular = 0.1
BrightnessAdjustment = 0.4

[Material_Carbon]
Materials = EXT_Lighthouse
HasDetailNormals = 1
Smoothness = 1.2
Reflectance = 0.4
CubemapReflectionBlur = 0.45
UseClearCoat = 1
ClearCoatSmoothness = 1.0
ClearCoatIntensity = 1.0
DetailTexture = common/carbon.png
DetailNormalTexture = common/carbon_nm.png
DetailNormalBlend = 1
DetailScale = 1020

[Material_InteriorPBRDetail]
Materials = INT_Carbon, INT_Occlusion_Carbon
Reflectance = 0.15
DetailScale = 300
Smoothness = 0.2

[Material_InteriorPBRDetail]
Materials = INT_Cage
Reflectance = 0.05
BrightnessAdjustment = 0.8
DetailNormalBlend = 0.2

[SHADER_REPLACEMENT_1]
MATERIALS = EXT_Metal
PROP_1 = ksSpecular, 2

[SHADER_REPLACEMENT_2]
MATERIALS = EXT_RIM
PROP_1 = ksSpecularEXP, 130
PROP_2 = ksSpecular, 20

;ANIMATION

[ANIMATION_...]
INPUT=SPEEDLIMITER
FILE=MOTEC_PIT.ksanim
TIME=0.001
INPUT_AS_PROGRESS=0
LOOP_WHILE_ACTIVE=0
LOOP_KEEP_UNTIL_DONE=0
TICK_TOCK_MODE=0
TOGGLE_VISIBILITY_INVERSE = 1

[ANIMATION_...]
INPUT=EXTRA_A
FILE=MOTEC_P2.ksanim
TIME=0.001
INPUT_AS_PROGRESS=0
LOOP_WHILE_ACTIVE=0
LOOP_KEEP_UNTIL_DONE=0
TICK_TOCK_MODE=0
TOGGLE_VISIBILITY_INVERSE = 1

MOTEC_PIT

;BRAKEFX
[BRAKEDISC_FX_FRONT]
ACTIVE=1
ALPHA_MASK=0.1, 0.2
CARVED=1
CARVED_FREQUENCY = 30
CERAMIC=1
CUTS=0
CUTS_ASPECT_RATIO=1.4
CUTS_FREQUENCY=4
CUTS_POINT_0=0.9, 0.15
CUTS_POINT_1=0.1, 0.85
CUTS_THICKNESS=0.05
CUTS_Y_EXP=1
DEBUG=0
DISC_INTERNAL_RADIUS=0.0378424
DISC_RADIUS=0.162392
GLOW_MULT=1
GLOW_OFFSET=0.7
LUMINOCITY_MASK=0.01, 0.02
NORMAL_MASK=2, 1
OVERRIDE_DIFFUSE_MAP=0
OVERRIDE_NORMAL_MAP=0
REFLECTION_F0=0.41, 0.32
REFLECTION_SHARPNESS=10, 10
RIM_HEIGHT=0.189
RIM_RADIUS=0.2413
ROUGHNESS=0.2, 0.9
SPECULAR=0.5, 1
WEAR_MULT=1


[BRAKEDISC_FX_REAR]
ACTIVE=1
ALPHA_MASK=0.1, 0.2
CARVED=1
CARVED_FREQUENCY = 30
CERAMIC=1
CUTS=0
CUTS_ASPECT_RATIO=1.4
CUTS_FREQUENCY=4
CUTS_POINT_0=0.9, 0.15
CUTS_POINT_1=0.1, 0.85
CUTS_THICKNESS=0.05
CUTS_Y_EXP=1
DEBUG=0
DISC_INTERNAL_RADIUS=0.0378605
DISC_RADIUS=0.152157
GLOW_MULT=1
GLOW_OFFSET=0.7
LUMINOCITY_MASK=0.01, 0.02
NORMAL_MASK=2, 1
OVERRIDE_DIFFUSE_MAP=0
OVERRIDE_NORMAL_MAP=0
REFLECTION_F0=0.41, 0.32
REFLECTION_SHARPNESS=10, 10
RIM_HEIGHT=0.195
RIM_RADIUS=0.2413
ROUGHNESS=0.2, 0.9
SPECULAR=0.5, 1
WEAR_MULT=1

;EMISSIVES

[EMISSIVE_EXTRA_B_1]
NAME=EXT_Emissive_Rainlight
BLINKING_PATTERN= (|0=0|0.5=0|1=0|1.5=0.5|2=1|2.5=1|3=0.5|3.5=0|4=0)
BLINKING_DURATION=1
COLOR=45,0,0
OFF_COLOR=0,0,0
SIMULATE_HEATING=0
LAG=0
AFFECTS_TRACK=0
CAST_LIGHT=0

[EMISSIVE_...]
INPUT=BRAKE
NAME=EXT_Emissive_Brake_ON
TOGGLE_VISIBILITY = 1
OFF_COLOR=0
COLOR=255,75,0,0.5
LAG=0

[EMISSIVE_...]
NAME=EXT_Emissive_Rearlights
INPUT=LIGHT
COLOR=10,0,0,3.5
OFF_COLOR=0,0,0
LAG=0
SIMULATE_HEATING=0

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=EXT_Turnsignal_RR
COLOR=25,20,0,2
OFF_COLOR=0,0,0
LAG=0.7
SIMULATE_HEATING=0

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=EXT_Turnsignal_RF
COLOR=40,20,0,8
OFF_COLOR=0,0,0
LAG=0.7
SIMULATE_HEATING=0
INPUT=TURNSIGNAL_LEFT
TOGGLE_VISIBILITY=1

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=EXT_Turnsignal_LF
COLOR=40,20,0,8
OFF_COLOR=0,0,0
LAG=0.7
SIMULATE_HEATING=0
INPUT=TURNSIGNAL_LEFT
TOGGLE_VISIBILITY=1

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME=EXT_Turnsignal_LR
COLOR=25,20,0,2
OFF_COLOR=0,0,0
LAG=0.7
SIMULATE_HEATING=0

[EMISSIVE_...]
NAME=EXT_Daylight_LF, EXT_Daylight_RF
COLOR= 10,10,10,20
OFF_COLOR=10,10,10,20
INPUT=LIGHT

[EMISSIVE_....]
NAME=EXT_Turnsignal_RF
INPUT=TURNSIGNAL_RIGHT
TOGGLE_VISIBILITY=1
COLOR=0.1,0.1,0.1
OFF_COLOR=0.1,0.1,0.1

[EMISSIVE_....]
NAME=EXT_Turnsignal_LF
INPUT=TURNSIGNAL_LEFT
TOGGLE_VISIBILITY=1
COLOR=40,20,0,8
OFF_COLOR=0.1,0.1,0.1

[EMISSIVE_HIGHBEAM_1]
NAME=EXT_Highbeam
COLOR=120,120,120
SIMULATE_HEATING=0.5
LAG=0.8

[EMISSIVE_...] 
INPUT=SPEEDLIMITER
NAME=LED_PITLIMITER
COLOR=5,5,60,1
OFF_COLOR=0,0,0
BLINKING_PATTERN= (|0=0|0.5=0|1=0|1.5=0.5|2=1|2.5=1|3=0.5|3.5=0|4=0)
BLINKING_DURATION=0.5
TOGGLE_VISIBILITY = 1
TOGGLE_VISIBILITY_INVERSE = 0

[EMISSIVE_199]
NAME=LED_RPM_LIMITER_1
INPUT=RPM
INPUT_THRESHOLD=8000
TOGGLE_VISIBILITY = 1
COLOR=5,5,60,1

[EMISSIVE_200]
NAME=INT_Decals_Emissive, INT_Steer_Decals_Emissive
INPUT=LIGHT
COLOR=3,3,3,0.5

[EMISSIVE_201]
NAME=LED_Blue
INPUT=LIGHT
COLOR=15,20,255,2

[EMISSIVE_HIGHBEAM_2]
NAME=LED_Highbeam
COLOR=0,0,20
OFF_COLOR=0,0,0

[EMISSIVE_EXTRA_B_2]
NAME=LED_Rain
COLOR=0,0,30
OFF_COLOR=0,0,0
AFFECTS_TRACK=0
CAST_LIGHT=0

[EMISSIVE_202]
NAME= LED_Main
COLOR=10,0,0,3
OFF_COLOR=0,0,0
INPUT=RPM
INPUT_THRESHOLD=1

[EMISSIVE_203]
INPUT = PERF_METER_DIFF
INPUT_MULT = 0.25
NAME = LED_RLDELTA_L
INPUT_THRESHOLD = 0.05
INPUT_THRESHOLD_INVERSE=0
COLOR = 0,60,0                                       
OFF_COLOR = 0,0,0

[EMISSIVE_204]
INPUT = PERF_METER_DIFF
INPUT_MULT = 0.25
NAME = LED_RLDELTA_R
INPUT_THRESHOLD = -0.05
INPUT_THRESHOLD_INVERSE=1
COLOR = 60,0,0                                       
OFF_COLOR = 0,0,0


;Selflight

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Rearlights
POSITION=0, 0.76, -2.06
COLOR=100,0,0
MIRROR=0.69
SPOT = 50

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Brake_ON
COLOR=100,75,0,2
POSITION=0, 0.78, -2.12
MIRROR=0.62
SPOT=30

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Brake_ON
COLOR=100,75,0,2
POSITION=0, 0.78, -2.12
MIRROR=0.57
SPOT=30

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Brake_ON
COLOR=100,75,0,2
POSITION=0, 0.79, -2.12
MIRROR=0.53
SPOT=30

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Brake_ON
COLOR=100,75,0,2
POSITION=0, 0.79, -2.12
MIRROR=0.495
SPOT=30

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Brake_ON
COLOR=100,75,0,2
POSITION=0, 0.795, -2.12
MIRROR=0.465
SPOT=30

[SelfLight_Headlights]
BOUND_TO=EXT_Emissive_Brake_ON
COLOR=100,75,0,2
POSITION=0, 0.80, -2.12
MIRROR=0.435
SPOT=30

[SelfLight_Headlights]
BOUND_TO=EXT_Lowbeam
POSITION=0, 0.5, 1.50
MIRROR=0.7
DIRECTION=-0.1,0,1
SPOT=30
COLOR=100,100,100,10

[SelfLight_Headlights]
BOUND_TO=EXT_Lowbeam
POSITION=0, 0.46, 1.63
MIRROR=0.58
DIRECTION=-0.1,0,1
SPOT=30
COLOR=100,100,100,10

[SelfLight_Headlights]
BOUND_TO=EXT_Highbeam
DIRECTION=-0.3,0,1
COLOR=200,200,200,10
POSITION=-0, 0.38, 2.19
MIRROR=0.15
SPOT=145

[SelfLight_Headlights]
BOUND_TO=EXT_Highbeam
DIRECTION=0,0,1
COLOR=200,200,200,10
POSITION=-0.0018, 0.41, 2.1
SPOT=145

[SelfLight_Headlights]
BOUND_TO=EXT_Highbeam
DIRECTION=0.7,0,1
COLOR=200,200,200,10
POSITION=0, 0.30, 2.05
MIRROR=0.6
SPOT=120

;EXHAUST_WOBBLY
[INCLUDE_...]
[INCLUDE: common/gt3_exhaust_glow.ini]
ExhaustPoint = 0.28, 2.15, 0.51
ExhaustLightPoint = 0.28, 2.16, 0.51
ExhaustMeshes_MultiMap = EXT_Exhaust
ExhaustAreaScale = 0.8, 0, 0.5
ExhaustLightRange = 3.8

[WOBBLY_BIT_...]
NAME = EXT_Exhaust  ; name of the node to move
CONNECTED_TO = 0, 0.830, -0.13   ; point to which node is attached to, and around which it will rotate
MAX_RANGE = 0.02                ; max range node can move from its original position
DAMPENING_LAG = 0.93            ; think of it as usual AC lag value, trying to zero node’s speed
G_GAIN = 2                      ; how much G-forces affect node’s speed
GRAVITY_GAIN = 3                ; how much gravity affects node’s speed
OFFSET_GAIN = 2000              ; how strong is returning force
STIFF_AXIS = 0, 1, 1            ; optional higher stiffness axis to reduce movement along it
STIFF_AXIS_STIFFNESS = 0.9      ; now stiff is optional stiffness axis
G_FILTER = 1                    ; temporal filter for G-forces
DEFAULT_GRAVITY_INCLUDED_ALREADY = 1 ; either `0` or `1`; set it to `1` if you don’t want gravity to skew your stuff when car is in neutral position
FORCE_OFFSET=0, 0, 0

[WOBBLY_BIT_...]
NAME = lamborghini_huracan_gt3_net  ; name of the node to move
CONNECTED_TO = 0, 0.830, -0.13   ; point to which node is attached to, and around which it will rotate
MAX_RANGE = 0.02                ; max range node can move from its original position
DAMPENING_LAG = 0.90            ; think of it as usual AC lag value, trying to zero node’s speed
G_GAIN = 2.3                      ; how much G-forces affect node’s speed
GRAVITY_GAIN = 3                ; how much gravity affects node’s speed
OFFSET_GAIN = 2000              ; how strong is returning force
STIFF_AXIS = 0, 1, 1            ; optional higher stiffness axis to reduce movement along it
STIFF_AXIS_STIFFNESS = 0.9      ; now stiff is optional stiffness axis
G_FILTER = 1                    ; temporal filter for G-forces
DEFAULT_GRAVITY_INCLUDED_ALREADY = 1 ; either `0` or `1`; set it to `1` if you don’t want gravity to skew your stuff when car is in neutral position
FORCE_OFFSET=0, 0, 0

;DI INSTRUMENTS

[DI_TYRE_TEMPERATURE_...]
DIGITAL_ITEM=16
DIGITAL_ITEM_NUMBER_FORMAT=0.1
INPUT_SELECTOR=0

[DI_TYRE_TEMPERATURE_...]
DIGITAL_ITEM=17
DIGITAL_ITEM_NUMBER_FORMAT=0.1
INPUT_SELECTOR=1

[DI_TYRE_TEMPERATURE_...]
DIGITAL_ITEM=18
DIGITAL_ITEM_NUMBER_FORMAT=0.1
INPUT_SELECTOR=2

[DI_TYRE_TEMPERATURE_...]
DIGITAL_ITEM=19
DIGITAL_ITEM_NUMBER_FORMAT=0.1
INPUT_SELECTOR=3
