[ABOUT]
AUTHOR = Pyyer
VERSION = 1.0
DATE_RELEASE = 25 March 2022

[INCLUDE]
INCLUDE = common/conditions.ini, common/materials_track.ini, common/custom_emissive.ini

[DEFAULTS]
TRACK_FILE = melbourne22.kn5
TEXTURE_ZIP_TRANSPARENT = ../melbourne_f1_2022/extension/Transparent.dds
TEXTURE_ZIP_BOARD_GRAY = ../melbourne_f1_2022/extension/BoardGray.dds
TEXTURE_ZIP_BRIDGE_GRAY = ../melbourne_f1_2022/extension/BridgeGray.dds
TEXTURE_ZIP_WALL_GREEN = ../melbourne_f1_2022/extension/WallGreen.dds
TEXTURE_ZIP_SPECIAL_WALL_GREEN = ../melbourne_f1_2022/extension/SpecialWallGreen.dds
TEXTURE_ZIP_ASPHALT = ../melbourne_f1_2022/extension/Asphalt.dds
TEXTURE_ZIP_PIT_BUILDING = ../melbourne_f1_2022/extension/PitBuilding.dds

Boards = rolex board, F1_exp, Pirelli_BIG, Pzero_BIG, PAT_oldUBS, PAT_display_melb, PAT_dislay_2, PAT_pZero, pat_pirelli_1_SUB0
Walls = PAT_melb_mur, PAT_rolex, PAT_rolex_mur, PAT_verde_mur, Melb_V, PAT_einek_basso, PAT_pirelli_mur, PAT_melb_mur.000, mel_spon_lrg_aq_01, Muretto_giallo, mel_sponsor_ref_r_02, Muro_neverDP, Muro_Rolex, #Material-02
SpecialWalls = Muro_e_rete-Rolex, Muro_e_rete_Pirelli, mel_green_white_wall_a
GroundSponsors = Color_ed,Prato_rolexP, Prato_Heinek, Sponsor_prato_3, GRASS_SPONSOR
GantrySponsors = rolex_flag_SUB1, rolex_flag01_SUB1, rolex_flag02_SUB1, rolex_flag03_SUB1, pat_flag_SUB1, pat_flag01_SUB1, pat_flag03_SUB1, pat_flag04_SUB1
GantrySupports = rolex_flag_SUB0, rolex_flag01_SUB0, rolex_flag02_SUB0, rolex_flag03_SUB0, pat_flag_SUB0, pat_flag01_SUB0, pat_flag03_SUB0, pat_flag04_SUB0
LongBoards = Blocco_Fly
AsphaltSponsors = Striscia_PIT
PitBuilding = PAT_dhl_BOX
OriginalRolexClock = rolex_clock_SUB0?, rolex_clock_SUB1?
MeshesBridges = australia_gri, autralia_start, objsponboard12, pat_melb_ponte_SUB1, PAT_ponte, pirelli_ponte, Ponte_Fly, ponte_fly_3, ponte_rolex_1_SUB0, ponte_rolex_1_SUB1, ponte_rolex_2, ponte_rolex_3, rolex_gri, rolex_start, rolex_start_oo
Markers = objscenery31_sub0, indic_02, indic_fly_1, Indic_Fly_2, Indic_Fly_2, Indic_Fly_4, indic_pzero_1, indic_rolex_1, indic_rolex_2, indic_Rolex_3, pat_sponsor_sart_2, pat_sponsor_start, retro_mar_fly, retro_mar_pzero, retro_mar_rolex,ultimo_r
HideFrom22Track = CWALL_ADVERT, ADVERT, WALL_ADBLANK, TWALL_ADVERT, frame_advert?, advert_77, RDRACEOLD_PITSTRIPE_WET, starterworker_000?, BRAKEMARKERS, garage_int?, pitstands?, Asph_sporco, 1KERB_anticuts_02, 1KERB_anticuts_04, twall_03, twall_04, advert_53
StarlightSytem2022Track = ?startlight?, cautionlight, pitglowout
DRSMarkersToHide = SIGNDRS, SIGNBACK, FenceMarkerDRS.Z2L, FenceMarkerDRS.Z2R
ThingsToHide = $Boards, $GantrySponsors, $GantrySupports, $LongBoards, $PitBuilding, $AsphaltSponsors, $OriginalRolexClock, $Markers, $HideFrom22Track, $DRSMarkersToHide, $StarlightSytem2022Track
;-------------------------------------------------------------

[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Replace walls textures
MATERIALS = $Walls
RESOURCE_0 = txDiffuse
RESOURCE_FILE_0 = $TEXTURE_ZIP_WALL_GREEN

;-------------------------------------------------------------

;[SHADER_REPLACEMENT_...]
;ACTIVE = 1
;DESCRIPTION = Replace PitBuilding textures
;MATERIALS = $PitBuilding
;RESOURCE_0 = txDiffuse
;RESOURCE_FILE_0 = $TEXTURE_ZIP_PIT_BUILDING

;-------------------------------------------------------------

;[SHADER_REPLACEMENT_...]
;ACTIVE = 1
;DESCRIPTION = Replace asphalt textures
;MATERIALS = $AsphaltSponsors
;RESOURCE_0 = txDiffuse
;RESOURCE_FILE_0 = $TEXTURE_ZIP_ASPHALT

;-------------------------------------------------------------

[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Replace boards textures
SHADER = ksPerPixel
MATERIALS = $Boards
RESOURCE_0 = txDiffuse
RESOURCE_FILE_0 = $TEXTURE_ZIP_BOARD_GRAY

;-------------------------------------------------------------

;[SHADER_REPLACEMENT_...]
;ACTIVE = 1
;DESCRIPTION = Replace bridges textures
;MESHES = $MeshesBridges
;RESOURCE_0 = txDiffuse
;RESOURCE_FILE_0 = $TEXTURE_ZIP_BRIDGE_GRAY
;
;-------------------------------------------------------------

[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Replace special walls textures
MATERIALS = $SpecialWalls
RESOURCE_0 = txDiffuse
RESOURCE_FILE_0 = $TEXTURE_ZIP_SPECIAL_WALL_GREEN

;-------------------------------------------------------------

[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Replace ground sponsors textures
MATERIALS = $GroundSponsors
SHADER = ksMultilayer_fresnel_nm

RESOURCE_0 = txDiffuse
RESOURCE_TEXTURE_0 = TERRENO_A.dds

RESOURCE_1 = txMask
RESOURCE_TEXTURE_1 = top1_mask.dds

RESOURCE_2 = txDetailR
RESOURCE_TEXTURE_2 = GRASS_DIFFB.DDS

RESOURCE_3 = txDetailG
RESOURCE_TEXTURE_3 = GRASS_DIFFB.DDS

RESOURCE_4 = txDetailB
RESOURCE_TEXTURE_4 = GRASS_DIFFD.DDS

RESOURCE_5 = txDetailA
RESOURCE_TEXTURE_5 = grass_full.dds

RESOURCE_6 = txDetailNM
RESOURCE_TEXTURE_6 = WATERBUMP2.DDS

PROP_... = ksAmbient, 0.34
PROP_... = ksDiffuse, 0.34
PROP_... = ksSpecular, 0
PROP_... = ksSpecularEXP, 16
PROP_... = ksAlphaRef, 0.0
PROP_... = detailNMMult, 1 1
PROP_... = fresnelC, 0.0
PROP_... = fresnelEXP, 0
PROP_... = fresnelMaxLevel, 0.0
PROP_... = magicMult, 1.1
PROP_... = multB, 0.2
PROP_... = multG, 0.2
PROP_... = multR, 0.2
PROP_... = tarmacSpecularMultiplier, 0.0
;-------------------------------------------------------------

[MODEL_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Hide objects
FILE = $TRACK_FILE
HIDE = $ThingsToHide, $MeshesBridges

[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Replace objects textures
MESHES = $ThingsToHide, $MeshesBridges
SHADER = ksPerPixelAT
BLEND_MODE = ALPHA_TEST
RESOURCE_0 = txDiffuse
RESOURCE_FILE_0 = $TEXTURE_ZIP_TRANSPARENT

[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Replace objects textures
MATERIALS = $ThingsToHide
SHADER = ksPerPixelAT
BLEND_MODE = ALPHA_TEST
RESOURCE_0 = txDiffuse
RESOURCE_FILE_0 = $TEXTURE_ZIP_TRANSPARENT

[MESH_ADJUSTMENT_...]
ACTIVE = 1
MESHES = $ThingsToHide, $MeshesBridges
IS_RENDERABLE = 0

[MESH_ADJUSTMENT_...]
ACTIVE = 1
MATERIALS = $ThingsToHide
IS_RENDERABLE = 0


[SHADER_REPLACEMENT_...]
ACTIVE = 1
DESCRIPTION = Correct building transparency
MATERIALS = MEL_POWERHOUSE_BUILDING_A_01, MEL_PIT_BUILDING_A_01?, MEL_GRANDSTAND_LARGE_A, MEL_GRANDSTAND_CANVAS_A, MEL_PAVILION_BUILDING_A_01, MEL_PIT_BUILDING_A_02?
IS_TRANSPARENT = 0