; config was prepared automatically. source:
; https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/cars/kunos/ks_toyota_supra_mkiv_tuned.ini
; Other stuff
[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[EXTRA_FX]
SKIP_GBUFFER = SUPRA_GLASS_INT_FRONT, SUPRA_GLASS_INT_RIGHT, SUPRA_GLASS_INT_LEFT, SUPRA_GLASS_EXT_SIDE001, SUPRA_GLASS_INT_REAR

[BRAKEDISC_FX]
ACTIVE = 1
AMBIENT_MULT=0.6
REFLECTION_MULT=10
RIM_INTERNAL_RADIUS=0.06
SIMPLIFY_NORMALS_K=0.9
DISC_INTERNAL_RADIUS_SHARPNESS=250

[BRAKEDISC_FX_FRONT]
DISC_INTERNAL_RADIUS=0.13

[BRAKEDISC_FX_REAR]
DISC_INTERNAL_RADIUS=0.13

[SHADOWED_WHEELS]
ANGLE=16
WIDTH=0.16
OPACITY=1.0
EXTRA_AMBIENT_BRIGHTNESS=0.1

[SHADOWED_TYRES]
ANGLE=25
EXTRA_AMBIENT_BRIGHTNESS=0.15
OFFSET=0.03
WIDTH=0.10
OPACITY=1.0

[REFLECTIONS_FX]
MASK_CUBEMAP_TWEAK = 0.7
MASK_CUBEMAP_SKIP = SUPRA_GLASS_INT_FRONT, SUPRA_GLASS_INT_RIGHT, SUPRA_GLASS_INT_LEFT, SUPRA_GLASS_EXT_SIDE001, SUPRA_GLASS_INT_REAR


--------------  PBR  ---------------
[INCLUDE: common/materials_interior.ini]

[Material_Plastic_v2]
Materials = supra_exterior_plastic
BrightnessAdjustment = 0
ApplyTilingFix = 1
Reflectance = 0.0175
DetailScale = 0
DetailNormalPBRSecondaryColor = 0.3, 0.3, 0.3, 1
OcclusionMap = 0.2, 1

[Material_Velvet_v2]
Materials = INT_STEER_ALCAN, INT_BUCKET_ALCAN
BrightnessAdjustment = 0.07
ApplyTilingFix = 1

[Material_Plastic_v2]
Materials = INT_SPACER_PLASTIC
DetailScale = 0
BrightnessAdjustment = 0.15
Reflectance = 0.0125
Smoothness = 0.5
CubemapReflectionBlur = 1
DetailNormalIntensity = 0.75

[Material_Aluminium_v2]
Materials = EXT_EXHAUST

[Material_MetalOld_v2]
Materials = EXT_TOWING_HOOK, EXT_LOCKERS, WHEEL_NUTS
Metalness = 0.4
Reflectance = 0.0
Brightness = 0.6
DetailNormalPBRSmoothnessGamma = 1
LocalReflectionsSharpness = 0

[Material_Metal_v2]
Materials = supra_exterior_metal
Metalness = 0.7
Reflectance = 1.0
Brightness = 0.7
DetailNormalPBRSmoothnessGamma = 1
LocalReflectionsSharpness = 1

[Material_Metal_v2]
Materials = INT_GAUGE_METAL
Metalness = 0.2
Reflectance = 0.5
Brightness = 0.4
DetailNormalPBRSmoothnessGamma = 1
LocalReflectionsSharpness = 0

[Material_LeatherSpotty_v2]
Materials = supra_interior_leather, supra_interior_leather_seats
DetailScale = 40
BrightnessAdjustment = 0.2

[Material_Plastic_v2]
Materials = supra_interior_dash
DetailScale = 0
BrightnessAdjustment = 0.2
Reflectance = 0.0125
Smoothness = 0.5
CubemapReflectionBlur = 1
DetailNormalIntensity = 0.75

[Material_Plastic_v2]
Materials = supra_interior_plastic_detail
DetailScale = 0
BrightnessAdjustment = 0.23
Reflectance = 0.0125
Smoothness = 0.5
CubemapReflectionBlur = 1
DetailNormalIntensity = 0.75

[Material_Fabric_v2]
Materials = supra_interior_carpet
DetailScale = 40
BrightnessAdjustment = 0.2

[Material_Fabric_v2]
Materials = supra_interior_covers
DetailScale = 40
BrightnessAdjustment = 0.15
--------------    ---------------

; Turning lights
[INCLUDE: common/custom_emissive.ini]
DashHighlightColor = 1.4, 0.8, 0.8
HeatingMult = 0.5

[CustomEmissive]
Meshes = SUPRA_INT_DETAIL_002
@ = AlphaFromTxDiffuse

MirrorOffset = -0.35
@ = CustomEmissive_Rect, Channel = 3, Mirror, Resolution = 1024, Start = "180, 352", Size = "60, 45"
@ = DashTurningLights, Channel = 3

[CustomEmissive]
Meshes = SUPRA_LIGHTS_FRONT_BUMPER, LOD_B_SUPRA_LIGHTS_FRONT_BUMPER, LOD_C_SUPRA_LIGHTS_FRONT_BUMPER
@ = CustomEmissive_Color, Channel = 3, Mirror, Color = "1, 0.5, 0"
@ = TurningLightsFrontCorner, Channel = 3 ; shortcut for lights split into front and side

MirrorOffset = -0.35
@ = CustomEmissive_Rect, Channel = 3, Mirror, Resolution = 1024, Start = "180, 352", Size = "60, 45"
@ = DashTurningLights, Channel = 3

[]
@ = DashIndicator, Meshes = SUPRA_INT_LIGHT, Input = HIGHBEAM, DashHighlight

; License plate light
[LIGHT_LICENSEPLATE]
ACTIVE = 1
MESHES = Plate_A:Plate_LODA, LOD_B_PLATE, LOD_C_PLATE
OFFSET = 0, 0.02, -0.04
RANGE = 0.4
LAYOUT = ONE_ON_TOP

; Odometers
[ODOMETER_MAIN]
NAME = SUPRA_MAIN_DASH
FONT = arial_big
FONT_SCALE = 0.8
POSITION = 314, 136
SIZE = 150, 27
DIGIT_WIDTH = 20
COUNT = 6
BACKGROUND = 0.12
MOVEMENT_INTERVAL = 5

[ODOMETER_TRIP]
NAME = SUPRA_MAIN_DASH
FONT = arial_big
FONT_SCALE = 0.8
POSITION = 329, 267
SIZE = 118, 27
DIGIT_WIDTH = 20
COUNT = 4
LAST_DIGIT_BACKGROUND_LOCATION = 0, 0
BACKGROUND = 0.12

Self-lighting:
[INCLUDE: common/selflighting.ini]

[SelfLight_Headlights]
MIRROR = 0.42
DIRECTION = 0, 0, 1
POSITION = 0, 0.62, 1.92
DIFFUSE_CONCENTRATION = 1
BOUND_TO = SUPRA_FRONT_LIGHT_BULBS
SPOT_SHARPNESS = 0.9
SPOT = 120
COLOR = 80
SPECULAR_MULT = 0
RANGE = 0.35

[SelfLight_Headlights]
MIRROR = 0.54
DIRECTION = 0, 0, 1
POSITION = 0, 0.61, 1.92
DIFFUSE_CONCENTRATION = 1
BOUND_TO = SUPRA_FRONT_LIGHT_BULBS
SPOT_SHARPNESS = 0.9
SPOT = 100
COLOR = 80
SPECULAR_MULT = 0
RANGE = 0.25

[]
Meshes = SUPRA_LIGHTS_GLASS_FRONT_BUMPER
@ = TurningLights, Channel = 3, NotCastingLight
1

[INCLUDE: common/materials_glass.ini]

[Material_Glass]
Materials = supra_glass
FilmIOR = 2

--------------  EXHAUST  ---------------

[PARTICLES_FX_EXHAUST_0]
POSITION = 0.54, 0.31, -2.25

[PARTICLES_FX_EXHAUST_0]
DIRECTION = 20, -15.0, -75
; SPAWN_OFFSET = 0.02
SPREAD = 1
; COLOR = 0.7, 0.8, 1, 1
GROW = 0.5
LIFE = 2, 4
SPEED = 0.8, 1.8
INTENSITY = 0.2, 0.4
TEMPERATURE_THRESHOLD = 1

--------------  CHROME  ---------------

[SHADER_REPLACEMENT_...]
MATERIALS = supra_exterior_metal
PROP_0 = ksAmbient, 0.4
PROP_1 = ksDiffuse, 0.4
PROP_2 = fresnelMaxLevel, 1
PROP_3 = fresnelC, 0.8
PROP_4 = fresnelEXP, 5
PROP_5 = isAdditive, 0
PROP_6 = extExtraSharpLocalReflections, 1

--------------  LIGHTS  ---------------

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=left_tailblinker_alpha
COLOR=120,25,0 1
LAG=0.8
SIMULATE_HEATING=0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=right_tailblinker_alpha
COLOR=120,25,0 1
LAG=0.8
SIMULATE_HEATING=0
LOCATION=REAR

[EMISSIVE_REVERSE_0]
NAME=reverse_alpha
COLOR=50,50,50, 1
LAG=0.5
SIMULATE_HEATING=0
LOCATION=REAR


--------------  GAUGE  ---------------

[ANALOG_INDICATOR_...]
INPUT = OIL_TEMP
NAME = ARROW_OIL_TEMP
ZERO = -42
STEP = 2.73

--------------  GAUGE EMISSIVE  ---------------

[EMISSIVE_HANDBRAKE_0]
NAME=int_gauge_symbol_handbrake
COLOR=50, 0, 0 1
LAG=0.5
SIMULATE_HEATING=0.0
LOCATION=NONE
INPUT_THRESHOLD_INVERSE=0

[EMISSIVE_BATTERY_0]
NAME=int_gauge_symbol_battery
COLOR=50, 0, 0 1
LAG=0.5
SIMULATE_HEATING=0.0
LOCATION=NONE
INPUT_THRESHOLD_INVERSE=1

[EMISSIVE_OPENDOORS_0]
NAME=int_gauge_symbol_doors
COLOR=50, 0, 0 1
LAG=0.5
SIMULATE_HEATING=0.0
LOCATION=NONE
INPUT_THRESHOLD_INVERSE=0

[EMISSIVE_SEATBELT_0]
NAME=int_gauge_symbol_belts
COLOR=50, 0, 0 1
LAG=0.5
SIMULATE_HEATING=0.0
LOCATION=NONE
INPUT_THRESHOLD_INVERSE=1

--------------  GLASS  ---------------

[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = supra_glass, supra_glass
FilmIOR = 1.7

--------------  SOUND  ---------------
[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1

--------------  ANIMATIONS  ---------------

[ANIMATION_1]
INPUT = HANDBRAKE             ; bind to reverse gear
FILE = handbrake.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

[ANIMATION_2]
INPUT = TURNSIGNAL_LEFT             ; bind to reverse gear
FILE = blinker_left.ksanim   ; file name of new animation in “animations” folder
TIME = 0.1                ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_3]
INPUT = TURNSIGNAL_RIGHT             ; bind to reverse gear
FILE = blinker_right.ksanim   ; file name of new animation in “animations” folder
TIME = 0.1                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_4]
INPUT = HAZARD            ; bind to reverse gear
FILE = hazard_button.ksanim   ; file name of new animation in “animations” folder
TIME = 0.25                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_5]
INPUT = EXTRA_A           ; bind to reverse gear
FILE = glass_right.ksanim   ; file name of new animation in “animations” folder
TIME = 2                ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_6]
INPUT = EXTRA_B           ; bind to reverse gear
FILE = glass_left.ksanim   ; file name of new animation in “animations” folder
TIME = 2                  ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_7]
INPUT = LIGHT          ; bind to reverse gear
FILE = headlights_circle.ksanim   ; file name of new animation in “animations” folder
TIME = 0.1                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_8]
INPUT = HORN          ; bind to reverse gear
FILE = horn_button.ksanim   ; file name of new animation in “animations” folder
TIME = 0.1                ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_9]
INPUT = GAS        ; bind to reverse gear
FILE = throttle_pedal.ksanim   ; file name of new animation in “animations” folder
TIME = 0.3                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_10]
INPUT = BRAKE         ; bind to reverse gear
FILE = brake_pedal.ksanim   ; file name of new animation in “animations” folder
TIME = 0.3                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_11]
INPUT = CLUTCH          ; bind to reverse gear
FILE = clutch_pedal.ksanim   ; file name of new animation in “animations” folder
TIME = 0.3                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0
INPUT_THRESHOLD_INVERSE=1

[MESH_ADJUSTMENT_...]
MESHES = SUPRA_GLASS_EXT_DEFROST
IS_TRANSPARENT = 1