[ABOUT]
AUTHOR=Rusty
NOTES= Added PBR, Refractions

[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[EXTRA_FX]
MASK_GBUFFER = 
FORCE_OPAQUE = polymsh_extracted38, polymsh_detached63

[INSTRUMENTS]
RPM_VINTAGE=0

[DEFORMING_HOOD]
NAME=MOTORHOOD
OFFSET_Y_MIDDLE=0.07
OFFSET_Y_END=0.01
OFFSET_Z_END=0.04
BULGING_EXTRA=0.2
BULGING_EXPONENT=1.5
NOISE_Y_AMPLITUDE=0.2
NOISE_Z_AMPLITUDE=0.8
NOISE_Y_FREQENCY=10.0
NOISE_Z_FREQENCY=4.0
NOISE_OFFSET=2
Z_FACTOR=2.5
Z_BIAS=0.45

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial=EXT_Carpaint
CarPaintVersionAware = 4

[Material_CarPaint_Solid]

[INCLUDE: common/materials_glass.ini]

[Material_Glass]
Materials = EXT_Glass
FilmIOR = 2.4
ThicknessMult = 1
BrightnessAdjustment = 1.5

[Material_Glass]
Materials = EXT_Light_Glass
FilmIOR = 3.5
BrightnessAdjustment = 5
ThicknessMult = 0.000005
MaskPass = 10
IS_TRANSPARENT = 0
PROP_... = extUseNormalMap, 1
PROP_... = extColoredReflection, 1
PROP_... = extExtraSharpLocalReflections, -0.001

[INCLUDE: common/custom_emissive.ini]
DashHighlightColor = 1.5, 1.0, 0.4

[CustomEmissive]
Meshes = GEO_GAUGES
Resolution = 1024, 512
AreasSubtractive = 1
PolysMasksAsMultiplier = 1
@ = CustomEmissive_AreaMask, Start = "2, 3", Size = "273, 271", CornerRadius = 1, Exponent = 0.3
@ = CustomEmissive_AreaMask, Start = "281, 4", Size = "246, 246", CornerRadius = 1, Exponent = 0.3
@ = CustomEmissive_AreaMask, Start = "534, 7", Size = "232, 231", CornerRadius = 1, Exponent = 0.3
@ = CustomEmissive_AreaMask, Start = "769, 8", Size = "230, 228", CornerRadius = 1, Exponent = 0.3
@ = CustomEmissive_Poly, Channel = 0, P1 = "0, 0", P2 = "0, 512", P3 = "1024, 512", P4 = "1024, 0"
@ = CustomEmissive_Poly, Channel = 1, P1 = "111.5, 38.2", P2 = "111.5, 51.3", P3 = "88.5, 45.3", P4 = "111, 38.3"
@ = CustomEmissive_Poly, Channel = 2, P1 = "161.3, 38", P2 = "161.3, 51.6", P3 = "184.4, 45.5", P4 = "161.7, 37.8"
@ = DashHighlight, Channel = 0
@ = DashIndicator, Input = TURNSIGNAL_LEFT, Channel = 1
@ = DashIndicator, Input = TURNSIGNAL_RIGHT, Channel = 2

[CustomEmissive]
Meshes = '{ lod:A & (GEO_glass_rear_SUB0, polymsh_detached50), lod:B & GEO_glass_rear1_SUB0, lod:C & GEO_chassis_SUB7 }'
CompatibleWithPBRGlass = 1
Resolution = 512, 512
@ = CustomEmissive_Rect, Opacity = 0.03, Channel = 1, Start = "360, 396", Size = "60, 113", CornerRadius = "0.1, 0.1", Exponent = 3
@ = CustomEmissive_Rect, Opacity = 0.03, Channel = 2, Start = "257, 1", Size = "254, 102", Mirror
@ = CustomEmissive_Rect, Opacity = 0.03, Channel = 3, Start = "6, 396", Size = "355, 113", CornerRadius = "0.02, 0.1", Exponent = 3, Mirror
@ = ReverseLights, Channel = 1
@ = TurningLightsFront, Channel = 2
@ = TurningLightsRear, Channel = 3

[SHADER_REPLACEMENT_...]
MATERIALS = REAR_LIGHT_1
PROP_... = extBounceBack, 20

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Details_Chrome
PROP_... = extColoredBaseReflection, 1
PROP_... = extColoredReflection, 1
PROP_... = extExtraSharpLocalReflections, -0.001

[SHAKING_EXHAUST_...]
MESHES = polymsh_extracted57_SUB0

POINT_0 = -0.36, 0.3, -2.15
POINT_0_RADIUS = 0.5
POINT_0_EXP = 1.5
POINT_0_SCALE = 0.33

POINT_1 = 0.36, 0.3, -2.15
POINT_1_RADIUS = 0.5
POINT_1_EXP = 1.5
POINT_1_SCALE = 0.33

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Mechanics
PROP_... = fresnelMaxLevel, 1
PROP_... = fresnelC, 1
PROP_... = ksAmbient, 0.1
PROP_... = extExtraSharpLocalReflections, -0.001
DOUBLE_FACE_SHADOW_BIASED = 1

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Plastic_Black, MIRROR_IN
DOUBLE_FACE_SHADOW_BIASED = 1

[SHADER_REPLACEMENT_...]
MATERIALS = EXT_Rim_Base_blur, EXT_Details_METAL_AT_NM
PROP_... = extExtraSharpLocalReflections, -0.001

[SHADOWED_WHEELS]
ANGLE = 15
WIDTH = 0.08
OFFSET = 0.1

[INCLUDE: common/materials_interior.ini]
[Material_Carpet_v2]
Materials=INT_OCC_Carpet_BASE
Brightness=0.5

[Material_Leather_v2]
Materials=INT_OCC_Skin_GREY
DetailScale=40
ApplyTilingFix=1
Brightness=1
OcclusionMult=1.2

[Material_Metal_v2]
Materials=INT_Decal_Metal
DetailScale=0
[Material_Plastic]
Materials=INT_OCC_Plastic_DarkGREY

[Material_Leather]
Materials=INT_OCC_Skin_Steer_glossy
Brightness=0.5

[Material_Metal_v2]
Materials=INT_OCC_Metal_Dark
DetailScale=10
Metalness=0.4
OcclusionMult=0.5

[Material_Metal_v2]
Materials=INT_OCC_Metal_Black_RollBar
Metalness=0.4
OcclusionMult=0.5
DetailScale=0

[Material_Velvet_v2]
Materials=INT_OCC_Alcantara_HANDBRAKE

[Material_Plastic]
Materials=INT_OCC_Carpet_Plastic_WIRE

[REFRACTING_HEADLIGHT_...]
SURFACE = EXT_Light_Gllass
INSIDE = Light_Front
ABSORPTION = 0.06
BASE_EMISSIVE_K = 0.0
CUSTOM_BULB_0 = 0.5, 0.444, 0.125, 0.135
DIFFUSE_MAP_MULT = 0.7
DIRECTION = 0, 0, -1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 5
GLASS_COLOR = 0.08, 0.05, 0.0
MIRROR_DIR = 1, 0, 0
MIRROR_POS = 0, 0.629975, 1.78731
ORIGIN = 0.614734, 0.629975, 1.83585
RADIUS = 0.102
SIDE_FALLOFF = 1
USE_CUSTOM_BULBS = 1
SYNC_EMISSIVE_AUTO = 1

[Material_WindscreenBanner]
Materials = INT_Glass_Sponsor
WindscreenMesh = GEOWindscreen
CastShadowsThreshold = 0.99

[ODOMETER_TRIP]
NAME=GEO_GAUGES
FONT=odometer_font
BLEND_MODE=0
POSITION=366.3, 155.5
SIZE=76, 19
DIGIT_WIDTH=11
COUNT=4
BACKGROUND=0.12, 0.12, 0.12
LAST_DIGIT_COLOR=1, 0.2, 0.2
LAST_DIGIT_BACKGROUND=1,1,1
COLOR=1, 1, 1
JITTER=0
MOVEMENT_INTERVAL=1

[ODOMETER_MAIN]
NAME=GEO_GAUGES
FONT=odometer_font
BLEND_MODE=0
POSITION=356.3, 76.55
SIZE=95, 18.8
DIGIT_WIDTH=11
COUNT=5
BACKGROUND=0.12, 0.12, 0.12
COLOR=1, 1, 1
JITTER=0
MOVEMENT_INTERVAL=5

[ANALOG_INDICATOR_...]
INPUT = OIL_PRESSURE
OBJECT_NAME=ARROW_DRUCKPRESS
UPPER_BOUND = 10
LOWER_BOUND = 0
SPEED_LAG = 0.9
LUT = (| 0=85| 4=30| 10=-30 |)

[EMISSIVE_EXTRA_D_0]
BIND_TO_EXTRA_D=1
BIND_TO_HEADLIGHTS=0
NAME = frame002,Plate_LODA1    
COLOR=0,0,0.1,1         ; glowing color if condition is met
OFF_COLOR = 0,0,0         ; glowing color otherwise, default value is 0
LAG = 0.1                  ; with zero, turns on and off immediately
SIMULATE_HEATING = 0      ; adds heating effect, going through orange tint while turning on and off
LOCATION =FRONT             ; light location used for damage and light guessing, default value depends on type
ACT_AS_HEADLIGHTS = 0       ; if set to 1, emissiveness is raised when camera is caught in car’s headlights
TOGGLE_VISIBILITY=1    
TOGGLE_VISIBILITY_INVERSE=1

[ANIMATION_...]
INPUT = EXTRA_B
FILE = WINDOWL.ksanim  ; file name of new animation in “animations” folder
TIME = 2.4         ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
AFFECTS_INTERIOR_SHAPE = 1 

[ANIMATION_...]
INPUT = EXTRA_A
FILE = Wing.ksanim  ; file name of new animation in “animations” folder
TIME = 2.4         ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
AFFECTS_INTERIOR_SHAPE = 1 

[ANIMATION_...]
INPUT = EXTRA_C
FILE = PLATESANIM.ksanim  ; file name of new animation in “animations” folder
TIME = 0.5         ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
AFFECTS_INTERIOR_SHAPE = 1 

PLATESANIM.ksanim

[ANIMATION_...]
INPUT = TURNSIGNAL_LEFT            ; bind to reverse gear
FILE = TURNSIGNALRIGHTANIM.ksanim      ; file name of new animation in “animations” folder
TIME = 0.2                 ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0       ; if set to 0, animation would go to 0% if not triggered, and 
                            ; to 100% otherwise; if set to 1, animation would play in 
                            ; a loop if triggered and stop otherwise
LOOP_KEEP_UNTIL_DONE = 1    ; only for “LOOP_WHILE_ACTIVE”: set to 1 to make animation 
                            ; go to 0% if stopped (like wipers would do, for example)
TICK_TOCK_MODE = 0          ; only for “LOOP_WHILE_ACTIVE”: loop as 0% → 100% → 0% instead 
                            ; of jumping from 100% to 0%
AFFECTS_INTERIOR_SHAPE = 0  ; force to update interior reflections mask if animation is 
                            ; playing (slower)
							
[ANIMATION_...]
INPUT = TURNSIGNAL_RIGHT            ; bind to reverse gear
FILE = TURNSIGNALLEFTANIM.ksanim     ; file name of new animation in “animations” folder
TIME = 0.2                  ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0       ; if set to 0, animation would go to 0% if not triggered, and 
                            ; to 100% otherwise; if set to 1, animation would play in 
                            ; a loop if triggered and stop otherwise
LOOP_KEEP_UNTIL_DONE = 1    ; only for “LOOP_WHILE_ACTIVE”: set to 1 to make animation 
                            ; go to 0% if stopped (like wipers would do, for example)
TICK_TOCK_MODE = 0          ; only for “LOOP_WHILE_ACTIVE”: loop as 0% → 100% → 0% instead 
                            ; of jumping from 100% to 0%
AFFECTS_INTERIOR_SHAPE = 0  ; force to update interior reflections mask if animation is 
                            ; playing (slower)
							
[ANIMATION_...]
INPUT = WIPERS_MODE            ; bind to reverse gear
FILE = WIPERSANIM.ksanim     ; file name of new animation in “animations” folder
TIME = 1                  ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0       ; if set to 0, animation would go to 0% if not triggered, and 
                            ; to 100% otherwise; if set to 1, animation would play in 
                            ; a loop if triggered and stop otherwise
LOOP_KEEP_UNTIL_DONE = 1    ; only for “LOOP_WHILE_ACTIVE”: set to 1 to make animation 
                            ; go to 0% if stopped (like wipers would do, for example)
TICK_TOCK_MODE = 0          ; only for “LOOP_WHILE_ACTIVE”: loop as 0% → 100% → 0% instead 
                            ; of jumping from 100% to 0%
AFFECTS_INTERIOR_SHAPE = 0  ; force to update interior reflections mask if animation is 
                            ; playing (slower)

[INCLUDE: common/custom_emissive.ini]
[CustomEmissiveMulti]
Meshes = GEO_DIALS_Alfa_Nolight
Resolution = 1024, 1024
@ = CustomEmissive_UseDiffuseLuminocity, From = 0.01, 0.02
@ = AlphaFromTxDiffuse
@ = MultiItem, Role = DashWarningSeatbelt,Start = "628, 202", Size = "34, 45"
@ = MultiItem, Role = DashWarningTyrePressure, Start = "220, 117", Size = "54, 51", Color="15,8,0"
@ = MultiItem, Role = TRACTIONCONTROL, Start = "874, 245", Size = "42, 55", InputInverse=1, Color="15,8,0"
@ = MultiItem, Role = TRACTIONCONTROL_INACTION, Start = "870, 197", Size = "42, 44", Color="15,8,0"
@ = MultiItem, Role = DashWarningEngine, Start = "610, 248", Size = "59, 46", Color="15,8,0"
@ = MultiItem, Role = HIGHBEAM, Start = "748, 114", Size = "39, 27", Color="-1, -1, 3"
@ = MultiItem, Role = TURNSIGNAL_LEFT, Start = "689, 124", Size = "42, 32"
@ = MultiItem, Role = DashWarningAirbag, Start = "672, 232", Size = "50, 47", Color="18,0,0"
@ = MultiItem, Role = HANDBRAKE, Start = "638, 302", Size = "59, 46"
@ = MultiItem, Role = ABS,  Start = "843, 154", Size = "47, 37", InputInverse=1, Color="15,8,0"
@ = MultiItem, Role = GEAR_N, Start = "842, 352", Size = "22, 22", Color="50,5,-5"
@ = MultiItem, Role = GEAR_R, Start = "842, 332", Size = "22, 23", Color="50,5,-5"
@ = MultiItem, Role = GEAR_D, Start = "842, 372", Size = "22, 23", Color="50,-5,-5"
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Start = "803, 123.9", Size = "42, 32"
@ = MultiItem, Role = HANDBRAKE, Start = "842, 314", Size = "22, 20", Color="50,5,-5"

[EMISSIVE_LIGHT_...]
NAME = Object002,GEO_DIALS_Alfa
COLOR = 5,5,6,3
LAG = 0.4
LOCATION = FRONT