;Porsche 981 Cayman GT4 Updated by Jerry Wei 2023/12/16

[DATA]
DISABLE_ANALOGINSTRUMENTSINI = 1 
DISABLE_LIGHTSINI = 1        

[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[INSTRUMENTS]
HAZARDS_G_THRESHOLD = -1  ; set G-force for hazards to turn on automatically on sudden braking
SPEED_FIX = 1             ; use speed of powered wheels for speedometer
SPEED_LAG = 0.85          ; speed lag for SPEED_FIX option
SPEED_LIMIT =             ; if more than zero, used as upper bound for speed for SPEED_FIX option

[STATUS_BATTERY]
; parameters for overly simplified battery voltage estimation for instruments
; battery voltage reacts to RPM
BASE_VOLTAGE = 12.4  ; base battery voltage
MAX_VOLTAGE = 13.6   ; maximum battery voltage
RPM_LAG = 0.98       ; RPM lag

[STATUS_OIL]
; similar thing, overly simplified estimation for instruments
PRESSURE_BASE = 1.0         ; base oil pressure for idling engine
PRESSURE_STEP = 1.0         ; oil pressure increase for each 1000 RPM
PRESSURE_LAG_UP = 0.998     ; oil pressure increase lag
PRESSURE_LAG_DOWN = 0.9985  ; oil pressure decrease lag

TEMPERATURE_MULT = 1.13         ; relation of oil temperature to water temperature
TEMPERATURE_RPM_FACTOR = 0.03  ; extra increase of oil temperature for each 1000 RPM
TEMPERATURE_LAG_UP = 0.995     ; oil temperature increase lag
TEMPERATURE_LAG_DOWN = 0.995   ; oil temperature decrease lag

;///////////////////////////////////////////PBR_MATERIALS//////////////////////////////////////////


[INCLUDE: common/materials_carpaint.ini]
[Material_CarPaint_Metallic]
Materials=EXT_Car_Paint
FlakesK=0.3
ClearCoatThickness=0.12
DOUBLE_FACE_SHADOW_BIASED=1

================================GLASS================================

[INCLUDE: common/materials_glass.ini]
ExteriorGlassPhotoelasticMeshes = EXT_GLASS_HEADLIGHT
ExteriorGlassTintedMeshes = EXT_GLASS_FRONT,EXT_GLASS_LEFT,EXT_GLASS_RIGHT,EXT_GLASS_MED,EXT_GLASS_REAR 
ExteriorGlassMeshes = GEO_INT_GAUGES_GLASS

[EXTRA_FX_0]
MASK_GBUFFER= EXT_GLASS_HEADLIGHT,EXT_GLASS_FOG,EXT_GLASS_FRONT,EXT_GLASS_TAILLIGHT,EXT_GLASS_TAILLIGHT_2,EXT_GLASS_LEFT,EXT_GLASS_RIGHT,EXT_GLASS_MED,EXT_GLASS_REAR,GEO_INT_GAUGES_GLASS,GEO_Light_ARROW_1_b,GEO_Light_ARROW_2_b,GEO_Light_ARROW_3_b     

[Material_Glass]
Meshes= EXT_GLASS_TAILLIGHT_2,GEO_Light_ARROW_1_b,GEO_Light_ARROW_2_b,GEO_Light_ARROW_3_b 
IOR = 2.200                 
FilmIOR = $IOR             
ThicknessMult = 0.1          
ProfileFix = 0.005           
MaskPass = 1                 
MaskPassColor = 50, 50, 50  

[Material_Glass]
Meshes= EXT_GLASS_TAILLIGHT 
IOR = 2.200           
FilmIOR = $IOR     
ThicknessMult = 1   
ProfileFix = 0.05    
MaskPass = 3          
MaskPassColor = 255, 0.5, 0.5   

================================INTERIOR================================

[INCLUDE: common/materials_interior.ini]
[Material_Leather_v2]
Materials=INT_Custom_Leather
DetailScale=100
ApplyTilingFix=1
Brightness=0.5

[Material_Velvet_v2]
Materials=INT_velours_leather
Brightness=0.5

[Material_Metal_v2]
Materials=INT_Custom_Trim,INT_metal_chrome
DetailScale=100
CubemapReflectionBlur=1
OcclusionMult=0.8
Metalness=0
Reflectance = 0.2

[Material_Metal_v2]
Materials=INT_Metal
Metalness=0.2
DetailScale=0
CubemapReflectionBlur=1

[Material_Plastic_v2]
Materials=INT_Plastic,INT_DETAILS_Plastic
Brightness=0.65
ColorSource=DIFFUSE
DetailScale=100
Reflectance = 0.1

[Material_Carpet_v2]
Materials=INT_Carpet_Black
DetailScale=100
ApplyTilingFix=1
Brightness=0.5

[Material_Leather_v2]
Materials=INT_leather_black
Brightness=0.8
DetailScale=100

[Material_InteriorPBR]
Materials= INT_alcnt_SKINNED
HasDetailNormals = 1
Reflectance = 0
BrightnessAdjustment = 0.2 
DetailScale = 100
ApplyTilingFix = 1

[Material_InteriorPBR]
Materials=INT_Carbon
HasDetailNormals = 1
Smoothness = 0.9
Reflectance = 0.2
CubemapReflectionBlur = 0.35
UseClearCoat = 1
ClearCoatSmoothness = 1.0
ClearCoatIntensity = 1.0
DetailNormalBlend = 1
DetailScale = 200

================================EXTERIOR================================

[INCLUDE: common/materials_interior.ini]

[Material_Plastic]
Materials= EXT_Plastic
Reflectance = 0.04
BrightnessAdjustment = 0.2
DetailNormalPBRSecondaryColor = 0, 0, 0, 0.5
DetailNormalBlend = 0.5
DetailNormalTexture = common/pbr_plastic.dds
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 1
DetailScale = 150

[Material_Metal]
Meshes = GEO_R_bumper_SUB3
Metalness = 0.9
BrightnessAdjustment = 0.2
LocalReflectionsSharpness = 1

[Material_InteriorPBR]
Materials= EXT_Caliper
UseClearCoat = 1             ; set to 1 to add clear coat to material
ClearCoatSmoothness = 0.9    ; smoothness of clear coat
ClearCoatIntensity = 1     ; multiplier for clear coat, with 0, it’s pretty much disabled
ClearCoatF0 = 0.04           ; F0 for clear coat, should be 0.04 for most cases
Smoothness = 0.75    ; smoothess before it’s scaled by texture
Metalness = 0.0      ; metalness before it’s scaled by texture
Reflectance = 0.25  ; reflectance before it’s scaled by texture
Brightness = 1

================================LIGHT================================

[Material_Chrome]
Meshes= GEO_Chassis_SUB3,GEO_LIGHT_Headlights_HB,GEO_LIGHT_Headlights_HB2,LIGHT_REAR,LIGHT_REAR_BRAKE_1,LIGHT_REAR_BRAKE_2,LIGHT_REAR_BRAKE_4,GEO_LIGHT_Reverse_Light,GEO_TS_LR,GEO_TS_RR
Metalness = 0.9
Reflectance = 1
BrightnessAdjustment = 0.5
CubemapReflectionBlur = 1

;//////////////////////////////////////////SELFLIGHTING//////////////////////////////////////////

[INCLUDE: common/selflighting.ini]
[SelfLight_Headlights]
POSITION=0, 0.578, 1.68
BOUND_TO = GEO_LIGHT_Headlights
MIRROR=0.68
RANGE=0.4
SPOT=80
DIRECTION=0, 0, 1

[SelfLight_Headlights]
POSITION=0.0, 0.493, 1.71
BOUND_TO = GEO_LIGHT_Headlights_HB
MIRROR=0.68
RANGE=0.4
SPOT=80
DIRECTION=0, 0, 1

;//////////////////////////////////////////REFRACTING_HEADLIGHT//////////////////////////////////////////

[REFRACTING_HEADLIGHT_...]
SURFACE = GEO_LIGHT_Headlights
INSIDE = GEO_LIGHT_Headlights_inner
ABSORPTION = 0.01
NM_SHARE_INT = 1
NM_SHARE_EXT = 1
SIDE_FALLOFF = 1
USE_NORMAL_ALPHA = 1
DIFFUSE_MAP_MULT = 1
AMBIENT_MULT = 0.25
EMISSIVE_MULT = 10

[REFRACTING_HEADLIGHT_...]
SURFACE = GEO_TS_LF
INSIDE = GEO_TS_LF_inner
ABSORPTION = 0.02
AMBIENT_MULT = 0.25
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5,0.5,0,0
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.5,0.5,0,0
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 1
DIRECTION = 0,0,-1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 5
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.8
GLASS_COLOR = 0.25,0.25,0.25
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.0050000055
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 2.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 0,0,0
MIRROR_POS = 0.57653767,0.5115508,1.8090844
NM_SHARE_EXT = 1
NM_SHARE_INT = 0
ORIGIN = 0.59351873,0.5126483,1.888617
RADIUS = 0.102699526
REFLECTIVENESS_DIFFUSE_MULT = 60
REFLECTIVENESS_MULT = 10
REFLECTIVE_GAMMA = 1
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1

[REFRACTING_HEADLIGHT_...]
SURFACE = GEO_TS_RF
INSIDE = GEO_TS_RF_inner
ABSORPTION = 0.02
AMBIENT_MULT = 0.25
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5,0.5,0,0
CUSTOM_BULB_1 = 0.5,0.5,0,0
CUSTOM_BULB_2 = 0.5,0.5,0,0
CUSTOM_BULB_3 = 0.5,0.5,0,0
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 1
DIRECTION = 0,0,-1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 5
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.8
GLASS_COLOR = 0.25,0.25,0.25
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.0050000055
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 2.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 0,0,0
MIRROR_POS = 0.57653767,0.5115508,1.8090844
NM_SHARE_EXT = 1
NM_SHARE_INT = 0
ORIGIN = -0.59351873,0.5126483,1.888617
RADIUS = 0.102699526
REFLECTIVENESS_DIFFUSE_MULT = 60
REFLECTIVENESS_MULT = 10
REFLECTIVE_GAMMA = 1
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1

;//////////////////////////////////////////DIGITAL_INSTRUMENTS//////////////////////////////////////////

[DI_WATER_TEMPERATURE_...]
DIGITAL_ITEM = 3
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
INPUT_MULT = 1.8
INPUT_ADD = 32

[DI_OIL_TEMPERATURE_...]
DIGITAL_ITEM = 4
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
INPUT_MULT = 1.8
INPUT_ADD = 32

[DI_OIL_PRESSURE_...]
DIGITAL_ITEM = 5
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
UPPER_BOUND = 999999
INPUT_MULT = 14.50377

[DI_DRIVEN_TOTAL_...]
DIGITAL_ITEM = 8
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
UPPER_BOUND = 999999
INPUT_MULT = 0.62

[DI_DRIVEN_SESSION_...]
DIGITAL_ITEM = 9
DIGITAL_ITEM_NUMBER_FORMAT = 0.1
UPPER_BOUND = 999999
INPUT_MULT = 0.62

;//////////////////////////////////////////ANALOG_INDICATOR//////////////////////////////////////////

[ANALOG_INDICATOR_...]
INPUT = RPM            
NAME = ARROW_RPM         
SPEED_LAG = 0.2               
G_FACTOR = 0.1, 0, 0            
LUT = (| 0=-6  | 1000=24.5 | 2000=54 | 4000=114 | 7000=204 | 9000=264| )

[ANALOG_INDICATOR_...]
INPUT = SPEED          
NAME = ARROW_SPEED         
SPEED_LAG = 0.2               
G_FACTOR = 0.1, 0, 0            
LUT = (| 0=0 | 120.69=60 | 241.38=119 | 362.07=178.5 | )

[ANALOG_INDICATOR_...]
INPUT = TIME_HOURS  
NAME = ARROW_CLOCK_HOUR

[ANALOG_INDICATOR_...]
INPUT = TIME_MINUTES  
NAME = ARROW_CLOCK_MINUTE

[ANALOG_INDICATOR_...]
INPUT = TIME_SECONDS  
NAME = ARROW_CLOCK_SEC

;//////////////////////////////////////////WIPERS//////////////////////////////////////////

[WIPERS]
FRONT_0= GEO_L_Wiper_SUB0,,GEO_L_Wiper_brush
FRONT_1= GEO_R_Wiper_SUB0,,GEO_R_Wiper_brush 
WIND_THRESHOLDS_KMH = 150, 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

[WIPERS_TRACE_...]
SURFACE = EXT_GLASS_FRONT,GEO_INNER_F_GLASS
WIPERS = GEO_L_Wiper_brush,GEO_R_Wiper_brush

;//////////////////////////////////////////TURNSIGNAL//////////////////////////////////////////

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME= GEO_TS_LF
COLOR=120, 60, 0, 2
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME= GEO_TS_RF
COLOR=120, 60, 0, 2
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME= GEO_TS_LR
COLOR=120, 60, 0, 2
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
AFFECTS_TRACK=1
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME= GEO_TS_RR
COLOR=120, 60, 0, 2
LAG=0.3
REPEAT_FREQENCY_HZ=2.2
CAST_LIGHT=1
AFFECTS_TRACK=1
LOCATION=REAR

;//////////////////////////////////////////HEAD_LIGHTS//////////////////////////////////////////

[LIGHT_HEADLIGHT_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 0.95, 5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.15, 1
EXTERIOR_ONLY=0
FADE_AT=450
FADE_SMOOTH=50
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=70
LOWBEAM_RANGE_MULT=0.8
LOWBEAM_RANGE_ONCOMING_MULT=0.4
MIRROR=0.7
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.75843
OFF_MULT=0
OFF_POSITION=0, 0.601118, 1.98723
OFF_RANGE_MULT=0.125
POPUP_EDGE_EXP=0.3
POPUP_EDGE_OFFSET=0.5
POPUP_ENABLED=1
POPUP_END=0.7
POPUP_SECOND_SPOT_EXP=0.6
POPUP_SECOND_SPOT_INITIAL_VALUE=0.4
POPUP_START=0.05
POSITION=0, 0.6, 2.15
RANGE=240
RANGE_GRADIENT_OFFSET=0
SECOND_SPOT=110
SECOND_SPOT_INTENSITY=1
SECOND_SPOT_RANGE=50
SECOND_SPOT_SHARPNESS=0.45
SECOND_SPOT_SKIP=0.35
SINGLE_FREQUENCY=0
SPECULAR_MULT=2
SPOT=60
SPOT_EDGE=0.03, 0.03, 0.029
SPOT_EDGE_SHARPNESS=45
SPOT_SHARPNESS=0
SPOT_UP=0.05, 1, 0

[EMISSIVE_LIGHT_...];headlight
NAME= GEO_LIGHT_Headlights
COLOR= 255, 255, 255, 5
SIMULATE_HEATING=0.2
LAG=0.1
ACT_AS_HEADLIGHTS=1
CAST_LIGHT=1
AFFECTS_TRACK=1

[EMISSIVE_HIGHBEAM_...]
NAME= GEO_LIGHT_Headlights_HB
COLOR= 255, 255, 255, 1
SIMULATE_HEATING=0.2
LAG=0.1
ACT_AS_HEADLIGHTS=1
CAST_LIGHT=1
AFFECTS_TRACK=1

[EMISSIVE_LIGHT_...]
NAME= GEO_LIGHT_Headlights_DTL
COLOR=50,50,50,1
OFF_COLOR=50,50,50,1
SIMULATE_HEATING=0.2
ACT_AS_HEADLIGHTS=1
CAST_LIGHT=1
AFFECTS_TRACK=1

;//////////////////////////////////////////REVERSE_LIGHTS//////////////////////////////////////////

[LIGHT_REVERSE_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 0.99, 4.5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.776774
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.776774
OFF_MULT=0.1
OFF_POSITION=0, 0.762814, -1.79663
OFF_RANGE_MULT=0.5
POSITION=0, 0.762814, -2.1
RANGE=3
RANGE_GRADIENT_OFFSET=0.5
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=120
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=0
SPOT_SHARPNESS=0.4

[EMISSIVE_REVERSE_...]
NAME= GEO_LIGHT_Reverse_Light
COLOR=50, 50, 50 ,1
LAG=0.3
SIMULATE_HEATING=0.1
CAST_LIGHT=1
AFFECTS_TRACK=1

;//////////////////////////////////////////BREAK_LIGHTS//////////////////////////////////////////

[LIGHT_BRAKE_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=5
COLOR=1, 0.02, 0, 4
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.005, -0.1
EXTERIOR_ONLY=0
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.7
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_COLOR=1, 0.02, 0.01, 1
OFF_FADE_MULT=0.77
OFF_MIRROR=0.7
OFF_MULT=0.1
OFF_POSITION=0, 0.838973, -2.1
OFF_RANGE_MULT=0.833185
POSITION=0, 0.838973, -2.1
RANGE=6
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=0
SPECULAR_MULT=2.5
SPOT=135
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.35

[EMISSIVE_BRAKE_...]
NAME= LIGHT_REAR
COLOR=55, 1, 0, 1
FALLBACK_HEADLIGHTS_COLOR=55, 1, 0, 1
LAG=0.2

[EMISSIVE_BRAKE_...]
NAME= LIGHT_REAR_BRAKE_1,LIGHT_REAR_BRAKE_4
COLOR=255, 1, 0, 2
LAG=0.2

[EMISSIVE_BRAKE_...]
NAME= GEO_LIGHT_3rd_brake
COLOR=255, 10, 0, 10
LAG=0.2

;//////////////////////////////////////////INTERIOR_LIGHTS//////////////////////////////////////////

[LIGHT_EXTRA_...];DASHLIGHT
COLOR=2,2,2,1
OFF_COLOR=1,1,1,1
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=3.0
FADE_SMOOTH=5
MIRROR=0
POSITION=0.338, 0.686, 0.487
DIRECTION=0,0,-0.9
RANGE=0.3
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=0
SPOT=80
SPOT_SHARPNESS=0.3

[LIGHT_EXTRA_...]
AFFECTS_TRACK=0
BIND_TO_EXTRA_C=1
COLOR=1, 1, 1, 3.5
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
POSITION=-0.0, 1.18, -0.249
DIRECTION=0,-2,0.2
RANGE=2.0
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=5
SPOT=120
SPOT_SHARPNESS=0.1

[EMISSIVE_LIGHT_...];gauge base
NAME= INT_GAUGE_AT_LIGHT,GEO_INT_GAUGES 
COLOR=3,3,3
OFF_COLOR=1,1,1
LAG=0.1

[EMISSIVE_LIGHT_...];gauge base
NAME= GEO_Light_ARROW_1_a,GEO_Light_ARROW_2_a,GEO_Light_ARROW_3_a 
COLOR=3,3,3
OFF_COLOR=1,1,1
LAG=0.1

[EXTRA_FX_EMISSIVE_...]
MESHES = GEO_INT_DISPLAYS     
COLOR=1,1,1
OFF_COLOR=2,2,2
RANGE = 0.05

[EMISSIVE_LIGHT_...]
NAME= GEO_DISPLAY_LIGHT
COLOR=0,10,0
LAG=0.1

[EMISSIVE_LIGHT_...] 
NAME= GEO_INT_Mediabox_SUB3,GEO_INT_DECALS_SUB0 
COLOR=3,3,3
LAG=0.1

[EMISSIVE_LIGHT_...] 
NAME= GEO_INT_DECALS_SUB5
COLOR=20,10,2,1
LAG=0.1

[EMISSIVE_TRACTIONCONTROL_...]
NAME= GEO_INT_DECALS_SUB3
OFF_COLOR=0
COLOR=20,10,2,1
LAG=0.3

[EMISSIVE_TRACTIONCONTROL_...]
NAME= GEO_INT_DECALS_SUB4
OFF_COLOR=20,10,2,1
COLOR=0
LAG=0.3

[EMISSIVE_HAZARD_...]
NAME= GEO_INT_DECALS_SUB9  
COLOR=10,1,1
LAG=0.1

;//////////////////////////////////////////LICENSE_LIGHTS//////////////////////////////////////////

[LIGHT_LICENSEPLATE]
MESHES= Plate_US_Rear
OFFSET=-0.0, 0.05, -0.15
RANGE=0.3
RANGE_GRADIENT_OFFSET=0.3
SPOT=150
SPOT_SHARPNESS=0.9
COLOR=1.1, 1, 1, 1
FALLBACK_EMISSIVE=1,1,1,1
; other supported values: TWO_ON_TOP, ONE_ON_TOP
LAYOUT=TWO_ON_TOP
FADE_AT=50
FADE_SMOOTH=4

[EMISSIVE_LIGHT_...];LICENSE_LIGHTS
NAME= GEO_LIGHT_License_Light
COLOR=10, 10, 10 ,5
SIMULATE_HEATING=0.2
LAG=0.1

;//////////////////////////////////////////EXTRA_LIGHTS//////////////////////////////////////////
[EMISSIVE_LIGHT_...]
NAME= GEO_TS_LS 
COLOR=100, 50, 1 ,2
SIMULATE_HEATING=0.2
LAG=0.1

[EMISSIVE_LIGHT_...]
NAME= GEO_TS_RS 
COLOR=100, 50, 1 ,2
SIMULATE_HEATING=0.2
LAG=0.1

; config was prepared automatically. source:
; https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/cars/kunos/ks_porsche_cayman_gt4_std.ini
[ABOUT]
AUTHOR=Rusty, x4fab
NOTES=Added PBR

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

[DEFORMING_HOOD]
NAME=HOOD
OFFSET_Y_MIDDLE=0.04
OFFSET_Y_END=-0.06
OFFSET_Z_END=0.02
BULGING_EXTRA=0.1
BULGING_EXPONENT=3.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.15

[INCLUDE:common/custom_emissive.ini]

[CustomEmissive]
Meshes = GEO_R_bumper_SUB4
@ = CustomEmissive_Rect, Channel = 3
@ = CustomEmissive_BounceBack, Channel = 3, Intensity = 4

[CustomEmissive]
Meshes = GEO_INT_TEXT
Resolution = 1024, 512
@ = CustomEmissive_Rect, Channel = 3, Start = "1, 104", Size = "571, 354"
@ = DashHighlight, Channel = 3
@ = UseAlphaFromTxDiffuses

[CustomEmissive]
Meshes = GEO_Chassis_SUB3
Resolution = 1024, 1024
@ = CustomEmissive_Rect, Channel = 1, Mirror, Start = "543, 984", Size = "435, 30"
@ = TurningLightsRear, Channel = 1, Intensity=3
@ = CustomEmissive_Poly, Channel = 2, Mirror, P1 = "621.1, 134.6", P2 = "472.4, 336", P3 = "527.4, 353.6", P4 = "670.9, 136"
@ = TurningLightsFront, Channel = 2, Intensity=1.5

[CustomEmissiveMulti]
Meshes = INT_GAUGE_AT
Resolution = 2048, 1024
@ = CustomEmissive_UseDiffuseLuminocity, From = 0.01, To = 0.02
@ = AlphaFromTxDiffuse
@ = MultiItem, Role = TURNSIGNAL_LEFT, Start = "1215.1, 215", Size = "110.5, 86.1"
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Start = "1455.7, 208.5", Size = "113.8, 97.5"
@ = MultiItem, Role = HIGHBEAM, Start = "1346.5, 193.5", Size = "80.5, 55.6"
@ = MultiItem, Role = DashWarningABS, Start = "1554.2, 308.6", Size = "93.3, 78.5"
@ = MultiItem, Role = DashWarningTC, Start = "1644.4, 525.9", Size = "74, 99.1"
@ = MultiItem, Role = TRACTIONCONTROL_INACTION, Start = "1622.5, 408.1", Size = "88.6, 77.2"
@ = MultiItem, Role = HANDBRAKE, Start = "1116, 670.6", Size = "99.5, 75.1"
@ = MultiItem, Role = DashWarningEngine, Start = "1069.2, 548.7", Size = "110.2, 83.9"
@ = MultiItem, Role = DashWarningAirbag, Start = "1198.9, 483.3", Size = "108.3, 90.7"
@ = MultiItem, Role = DashWarningSeatbelt, Start = "1083.2, 403.3", Size = "84.5, 95.1"
@ = MultiItem, Role = DashWarningTyrePressure, Start = "505.7, 484.9", Size = "85.8, 76.7"
@ = MultiItem, Role = HAZARD, Start = "353.2, 665.5", Size = "95.1, 46.8"

[BRAKEDISC_FX]
ALPHA_MASK = 0

[INCLUDE: common/materials_interior.ini]
[Material_DigitalScreen]
Materials = INT_DETAILS_Emissive_Ref
ScreenScale = 1024
ScreenAspectRatio = 0.5
MatrixType = TN

[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes = GEO_INT_DISPLAYS
Resolution = 1024, 512
Size = 285, 160
Offset = 738, 327
Scale = 3
RearCameraPosition = 0, 0.447, -2.12

[SHADER_REPLACEMENT_...]
MATERIALS=EXT_RIM
PROP_...=fresnelEXP,5
PROP_...=fresnelC,0.05
PROP_...=fresnelMaxLevel,0.25
PROP_...=ksSpecular,0.1
PROP_...=ksSpecularEXP,10
PROP_...=sunSpecular,12
PROP_...=sunSpecularEXP,200
PROP_...=ksAmbient,0.2
PROP_...=ksDiffuse,0.2

[SHADER_REPLACEMENT_...]
MATERIALS=EXT_Wheel
PROP_...=ksAmbient,0.15

;//////////////////////////////////////////EXHAUST//////////////////////////////////////////

[PARTICLES_FX_EXHAUST_...]
POSITION=0.046, 0.0997, -2.07	; self explanatory
DIRECTION = 0, 0, -1		; self explanatory
COLOR = 0.75,0.8,1 		; RGB blend - 0,0,0 is black, 1,1,1 is white
LIFE = 1, 0.5				; how long particles last in the air before disappearing
SPEED = 0.5, 1 				; how fast smoke particles fly from the exhaust
SPREAD = 1				; initial spread of particles
STARTING_SIZE = 0.01			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.3, 0.3			; smoke intensity
TEMPERATURE_LAG = 1			; engine heating up (1 to disable)
SPEED_THRESHOLD = 5,20		; speed at which the smoke disappears

[PARTICLES_FX_EXHAUST_...]
POSITION=-0.046, 0.0997, -2.07		; self explanatory
DIRECTION = 0, 0, -1		; self explanatory
COLOR = 0.75,0.8,1 		; RGB blend - 0,0,0 is black, 1,1,1 is white
LIFE = 1, 0.5			; how long particles last in the air before disappearing
SPEED = 0.5, 1 				; how fast smoke particles fly from the exhaust
SPREAD = 1				; initial spread of particles
STARTING_SIZE = 0.01			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.3, 0.3			; smoke intensity
TEMPERATURE_LAG = 1			; engine heating up (1 to disable)
SPEED_THRESHOLD = 5,20		; speed at which the smoke disappears

[SHAKING_EXHAUST_...]
MESHES = GEO_Chassis_SUB7
POINT_0 = 0, 0.118, -2.13
POINT_0_RADIUS = 0.8
POINT_0_EXP = 1.5
POINT_0_SCALE = 0.25

;//////////////////////////////////////////ANIMATION//////////////////////////////////////////

[ANIMATION_...]
FILE= car_door_L.ksanim
TIME= 1
BIND_TO_EXTRA_A=1
INPUT_THRESHOLD_INVERSE = 0

[ANIMATION_...]
FILE= car_door_R.ksanim
TIME= 1
BIND_TO_EXTRA_A=1
INPUT_THRESHOLD_INVERSE = 0


-------------- AUDIO --------------

[AUDIO_PITCH]
ENGINE_EXT = 1
ENGINE_INT = 1
GEAR_EXT = 9
GEAR_INT = 9
BODYWORK = 1
WIND = 0.7
DIRT = 1
DOWN_SHIFT = 1
HORN = 1
GEAR_GRIND = 1
BACKFIRE_EXT = 1
BACKFIRE_INT = 1
TRACTION_CONTROL_EXT = 1
TRACTION_CONTROL_INT = 1
TRANSMISSION = 1.0
LIMITER = 1
TURBO = 1
HIT = 0.5
SCRAPE = 1.5
WHEEL = 1
SKID_EXT = 1.2
SKID_INT = 1.1


[AUDIO_VOLUME]
ENGINE_EXT = 26
ENGINE_INT = 30
GEAR_EXT = 1
GEAR_INT = 22.6
BODYWORK = 1
WIND = 1
DIRT = 1
DOWN_SHIFT = 22
HORN = 1
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1
BACKFIRE_INT =22.6
TRACTION_CONTROL_EXT = 1
TRACTION_CONTROL_INT = 1
TRANSMISSION = 1
LIMITER = 1
TURBO = 1