[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = EXT_Carpaint_Inst

[Material_CarPaint_Solid]
FresnelMax = 0.7
FresnelC = 0.1
BrightnessAdjustment = 0.9
ClearCoatThickness = 0.3
ColoredSpecular = 0.5
AmbientSpecular = 0.5
AmbientSpecularEXP = 2.5
ApplyTilingFix = 0

[INCLUDE: common/materials_interior.ini]
[Material_Velvet]
Materials =
BrightnessAdjustment=0.15
OcclusionMap = 0.2


;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = EXT_Windows
ThicknessMult = 2.0
EXTRA_MASK_PASS = 1.0
EXTRA_MASK_PASS_OPACITY = 0.1
FilmIOR=3.0

[Material_InteriorPBRDetail]
Materials = EXT_Banner
Metalness=0.
Smoothness = 1
Reflectance = 0.4
CubemapReflectionBlur = 0.
BrightnessAdjustment = 0.5
OcclusionMap=1
DetailNormalBlend = 0
DetailScale = 1
DetailTexture = banner.dds

[Material_Plastic]
Materials = EXT_BLACK_WINDOW1
Smoothness = 1
Reflectance = 0.15
BrightnessAdjustment = 0.1
DetailScale = 100
OcclusionMult = 1
DetailTexture = plastic_dark.dds


[Material_InteriorPBRDetail]
Materials = EXT_Emissive_Light_Rear
Metalness=0.1
Smoothness = 0.6
Reflectance = 0.3
CubemapReflectionBlur = 0.5
BrightnessAdjustment = 0.8
OcclusionMap=1
DetailNormalBlend = 1
DetailScale = 1
DetailTexture = EXT_Lights_Colour.dds

[Material_Glass]
Materials = EXT_Glass_Emissive_Front,EXT_Glass_Emissive_Rear
FilmIOR=3
ThicknessMult = 1
MaskPass = 0.5            ; mask pass opacity
MaskPassColor = 0, 0, 0  ; mask pass color adjustment



[BRAKEDISC_FX]
ACTIVE = 1            ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0       ; use ceramic look
CARVED = 1	           ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 25  ; increase to make more lines
GLOW_OFFSET = 0.1	; 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
DEBUG = 0
DISC_INTERNAL_RADIUS = 0.19
DISC_RADIUS = 0.29 
LUMINOCITY_MASK = 0.1, 0.3
RIM_HEIGHT = 0.15
WEAR_FORCE=0.5


--------------------------------------------------------
--                EXTERIOR LIGHT TWEAKS                --
---------------------------------------------------------

[BOUNCED_HEADLIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.7
GRADIENT_OFFSET=0.1
MULT=1, 1, 1, 1
OFFSET=2

[INCLUDE: common/selflighting.ini]
[SelfLight_Headlights]
MIRROR=0.7
DIRECTION=-0.01, 0.1, 0.1
POSITION=0, 0.5, 2.1  
DIFFUSE_CONCENTRATION=0.8
BIND_TO_HEADLIGHTS=1
SPOT_SHARPNESS=0
SPOT=50
COLOR=60
SPECULAR_MULT=0
RANGE=0.9
[SelfLight_Headlights]
COLOR=30
BIND_TO_HEADLIGHTS=1
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=200
FADE_SMOOTH=5
MIRROR=0.8
POSITION=0, 0.5, 2.18
DIRECTION=1,1,1
RANGE=0.5;1.25
SPECULAR_MULT=0
SPOT=240
SPOT_SHARPNESS=0.5
[SelfLight_Headlights]
COLOR=80
BOUND_TO=
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=200
FADE_SMOOTH=5
MIRROR=0.46
POSITION=0, 0.28, 2.5
DIRECTION=0, 0, 0.5
RANGE=0.7
SPECULAR_MULT=0
SPOT=120
SPOT_SHARPNESS=0.5
[SelfLight_Headlights]
COLOR=80
BOUND_TO=headlights
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=200
FADE_SMOOTH=5
MIRROR=0.75
POSITION=0, 0.15, 2.35
DIRECTION=0.1, 0, 0.5
RANGE=0.6
SPECULAR_MULT=0.5
SPOT=140
SPOT_SHARPNESS=0.5

[LIGHT_EXTRA_2]  ;Rear BRAKE Light
BOUND_TO=taillights
COLOR=100,40,20,1
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=200
FADE_SMOOTH=5
MIRROR=0.8
POSITION=0,0.73,-1.6
DIRECTION=0,0,-1
RANGE=0.40;1.25
RANGE_GRADIENT_OFFSET=0.01
SPECULAR_MULT=3
SPOT=200
SPOT_SHARPNESS=0.25

[LIGHTING]
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=0.0
INTERIOR_FAKE_SHADOW_OPACITY=0.9
INTERIOR_FAKE_SHADOW_HEIGHT=0.4
INTERIOR_FAKE_SHADOW_FADE=0.5
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.1


[LIGHT_EXTRA_1]    ;interiorLight
BIND_TO_EXTRA_B=1    ; if "1" on/off with "Alt+NUMPAD_8"
COLOR=72,61,139,0.018
DIFFUSE_CONCENTRATION=0
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=50
FADE_SMOOTH=5
MIRROR=0
POSITION=-0.1,0.90,-0.01
DIRECTION=0,-10,0
RANGE=1
RANGE_GRADIENT_OFFSET=0.01
SPECULAR_MULT=1
SPOT=250
SPOT_SHARPNESS=0.5
position=rechts/links, hoch/runter, vorne/hinten


[TYRES_FX_FRONT]
COOKTORRANCE_FRESNEL_REFLECTANCE=0.2
COOKTORRANCE_IOR=0.1
COOKTORRANCE_LAMBERT_FACTOR=5
COOKTORRANCE_ROUGHNESS=0.5
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=1000
DIRT_DIRT_DEBUG=0
DIRT_FADE=100
DIRT_GRASS_DEBUG=0
DIRT_WIDTH_K=1
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=16
VISIBLE_IN_INTERIOR_CAM=0

[TYRES_FX_REAR]
COOKTORRANCE_FRESNEL_REFLECTANCE=0.2
COOKTORRANCE_IOR=0.1
COOKTORRANCE_LAMBERT_FACTOR=5
COOKTORRANCE_ROUGHNESS=0.5
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=1000
DIRT_DIRT_DEBUG=0
DIRT_FADE=100
DIRT_GRASS_DEBUG=0
DIRT_WIDTH_K=1
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=16
VISIBLE_IN_INTERIOR_CAM=0


[LIGHTING] ; improved glow for taillights 
EMISSIVE_BRAKELIGHTS_MULT=0.8
EMISSIVE_HEADLIGHTS_MULT=0.9
EMISSIVE_MULT=1

[BOUNCED_INTERIOR_LIGHT]
BIND_TO=
MULT=0.5
SPOT=24

[BOUNCED_HEADLIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.7
GRADIENT_OFFSET=0.1
MULT=1, 1, 1, 1
OFFSET=2

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
COLOR=1, 0, 0, 5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=0
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.468203
OFF_COLOR=1, 0.0911936, 0.0265662, 1.05
OFF_FADE_MULT=1.674586
OFF_MIRROR=0.549986
OFF_MULT=0.1
OFF_POSITION=0, 0.54357, -2.56
OFF_RANGE_MULT=0.767561
POSITION=0, 0.547034, -2.43
RANGE=3
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=1
SPOT=135.5
SPOT_EDGE=0.582, 0.582, 0.582
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.3475

----------------------------------------------------
                 EXHAUST AND WOBBLE               
----------------------------------------------------
[WIPERS]
WIND_THRESHOLDS_KMH = 60, 250  ; speed for wipers to start vibrating and for maximum vibration
WIND_AMPLITUDE_MULT = 1        ; multiplier for amplitude
WIND_FREQUENCY_MULT = 1        ; multiplier for frequency
WIND_OFFSET = 0.03             ; base animation progress to vibrate around

[WIPERS_TRACE_...]
SURFACE = _EXT_WINDOW, ginetta_g55_gt4_exterior008, ginetta_g55_gt4_interior008
WIPERS = polySurface426

[INCLUDE_...]
INCLUDE=common/gt3_exhaust_glow.ini
VAR_0=ExhaustPoint, 0.0,0.40,-1.8
VAR_1=ExhaustLightPoint, 0.0,0.40,-2.0
VAR_3=ExhaustMeshes_PerPixel, EXT_Mechanics2
VAR_7=ExhaustRadiusThicknessInv,0.01
VAR_6=ExhaustRadiusInner, 3
VAR_8=ExhaustAreaScale,80, 85, 80
VAR_9=ExhaustNormalsK, 0.9
VAR_10=ExhaustLightRange,0.2
VAR_2=ExhaustGlowTint, 0.15
VAR_11=ExhaustTemperatureMin, 75
VAR_12=ExhaustTemperatureMax, 88

[PARTICLES_FX_EXHAUST]
COLOR=0.7, 0.75, 0.9, 0.5
GAS_LAG=0.9
GROW=1, 1
INTENSITY=0.05, 0.1
INTENSITY_MULT=1
LIFE=1.6, 2
POSITION_OFFSET=0, 0, 0
SPAWN_OFFSET=0.02, 0.02
SPEED=0.4, 0.8
SPEED_THRESHOLD=5, 20
SPREAD=1, 1
STARTING_SIZE=0.03, 0.03
TEMPERATURE_LAG=0.9995
TEMPERATURE_THRESHOLD=40, 60



[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=signal_lf
COLOR=25, 12, 0,8
LAG=0.5
SIMULATE_HEATING=3.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=signal_lr
COLOR=25, 12, 0,8
LAG=0.5
SIMULATE_HEATING=3.0
LOCATION=REAR


[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=signal_rf
COLOR=25, 12, 0,8
LAG=0.5
SIMULATE_HEATING=3.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=signal_rr
COLOR=25, 12, 0,8
LAG=0.5
SIMULATE_HEATING=3.0
LOCATION=REAR

[Material_DigitalScreen]
Meshes =DISPLAY_DATA,
ScreenScale = 280
MatrixType = IPS
UseTextureCoordinates = 1
ScreenAspectRatio = 0.25
Emissive = 2


[LIGHT_TURNSIGNAL_RIGHT_1]
AFFECTS_TRACK	=	1
COLOR	=	12, 5, 0, 1.2
POSITION=-0.7,0.367,2.13
DIRECTION	=	-0.5, 0, 1
OFF_MULT	=	0.1
RANGE	=	2.535
SPOT	=	130

[LIGHT_TURNSIGNAL_LEFT_1]
AFFECTS_TRACK	=	1
COLOR	=	12, 5, 0, 1.2
POSITION=0.7,0.367,-2.13
DIRECTION	=	0.5, 0, -1
OFF_MULT	=	0.1
RANGE	=	2.535
SPOT	=	150
FADE_AT=100
FADE_SMOOTH=5

[LIGHT_TURNSIGNAL_RIGHT_1]
AFFECTS_TRACK	=	1
COLOR	=	12, 5, 0, 1.2
POSITION=-0.7,0.367,-2.13
DIRECTION	=	-0.5, 0, -1
OFF_MULT	=	0.1
RANGE	=	2.535
SPOT	=	150

[Material_CarPaint_Solid]
Materials = EXT_RIM
FresnelMax = 0.5
FresnelC = 0.12
BrightnessAdjustment = 0.9
ClearCoatThickness = 0.5
ColoredSpecular = 0.5
AmbientSpecular = 0.5
AmbientSpecularEXP = 2.5
ApplyTilingFix = 0
DetailTexture = EXT_Rim_Colour.dds
DetailScale = 1
OcclusionMult = 1

[Material_CarPaint_Solid]
Materials = EXT_CARBON1
FresnelMax = 0.5
FresnelC = 0.12
BrightnessAdjustment = 0.9
ClearCoatThickness = 0.5
ColoredSpecular = 0.5
AmbientSpecular = 0.5
AmbientSpecularEXP = 2.5
ApplyTilingFix = 0
DetailTexture = merc_carbon.dds
DetailScale = 400
OcclusionMult = 1


[Material_Metal_v2]
Materials = EXT_Mechanics
Metalness=0.4
Smoothness = 0.5
Reflectance = 0.1
CubemapReflectionBlur = 0
BrightnessAdjustment = 0.4
DetailScale = 1
OcclusionMult = 1
DetailTexture = EXT_Mechanics_Colour.dds


[Material_Metal_v2]
Materials = EXHAUST1
Metalness= 0.75
Smoothness = 0.5
Reflectance = 0.2
CubemapReflectionBlur = 0.9
BrightnessAdjustment = 0.6
DetailScale = 1
OcclusionMult = 1
DetailTexture = EXT_Mechanics_Colour.dds

[SHADER_REPLACEMENT_0]
MATERIALS = _lumi_front
SHADER = ksPerPixelMultiMap_emissive
FILL_MISSING_TEXTURES = 1
PROP_... = emSkipDiffuseMap, 1
PROP_... = ksEmissive, 200, 200, 200

[LED_PANEL_0]
MESHES = _LUMI_FRONT      ; target mesh
TEXTURE_SLOT = txEmissive       ; target texture slot
RESOLUTION = 1024, 512          ; resolution of newly generated texture
MASKS_PACK = lumirank_font.zip  ; name of a pack with LED masks
DIGIT_0 = 33, 50, 256, 410      ; X, Y, width and height of a first digit
DIGIT_1 = 386, 50, 256, 410     ; X, Y, width and height of a second digit
DIGIT_2 = 738, 50, 256, 410     ; X, Y, width and height of a third digit
                                ; you can set as many digits as you need
BASE_COLOR = '#1adf00', 0.5    ; base color (when it’s not flashing)
FLASHING_COLOR = '#1eff00', 1  ; color for flashing
FLASHING_APPLY_MASK = 1        ; should mask be applied to flashing

FLASHING_PERIOD = 3.5        ; N24 flashing: period in seconds
FLASHING_TIME = 1.2          ; for how long it would flash in seconds
FLASHING_FREQUENCY = 6       ; flashing frequency in Hz
FLASHING_ACTIVE_SHARE = 0.7  ; how much time during flashing it spends in active stage

ROLE_0 = POSITION     ; first role
ROLE_1 = DRIVER_NAME
ROLE_2 = TEXT
ROLE_2_TEXT = GT4

ROLE_DURATION = 3     ; how much time in seconds each role lasts






 




