### SystemReq_Infobox Template Usage Source: https://shaderlabs.org/wiki/Template%3ASystemReq_Combined This is an example of how to use the SystemReq_Infobox template. Fill in the parameters to specify system requirements. ```wikitext {{SystemReq_Infobox |BoxTitle= |CPU0= |AllocatedMemory0= |GraphicsCard0= |Resolution0= |OperatingSystem0= }} ``` -------------------------------- ### Shaderpacks: Version Information Source: https://shaderlabs.org/wiki/Special%3ASearch/%241 Example of specifying minimum and maximum Minecraft versions for a shaderpack. ```properties min_mc_version=1.18 |max_mc_version=1.18 ``` -------------------------------- ### Rendering Pipeline: Setup and Begin Directives Source: https://shaderlabs.org/wiki/Special%3ASearch/%241 Shows directives for setting up and beginning rendering stages in a shader pipeline. ```glsl setup<1-99> begin<1-99> ``` -------------------------------- ### SystemReq_Infobox Template Usage Source: https://shaderlabs.org/wiki/Template%3ASystemReq_Infobox This is an example of how to use the SystemReq_Infobox template. Fill in the parameters to customize the displayed system requirements. ```wikitext {{SystemReq_Infobox |BoxTitle= |CPU= |AllocatedMemory= |GraphicsCard= |Resolution= |OperatingSystem= }} ``` -------------------------------- ### Example Block IDs Source: https://shaderlabs.org/wiki/Mod_Block_IDs These are example block IDs for various mods. They are used to identify specific blocks within the game. ```plaintext zawa:eucalyptus_bottom zawa:karvy_bottom botania:doubleflower1:half=lower botania:doubleflower2:half=lower ``` -------------------------------- ### Recursive macro definition example Source: https://shaderlabs.org/wiki/Compiler_Behavior_Notes Recursive macros are not allowed on Intel drivers. This example shows a disallowed recursive macro definition. ```glsl #define smoothstep(x, low, high) smoothstep(low, high, x) ``` -------------------------------- ### SystemReqBox Template Usage Source: https://shaderlabs.org/wiki/Template%3ASystemReqBox This snippet shows the basic structure for using the SystemReqBox template. Fill in the parameters to customize the displayed system requirements. ```wikitext {{SystemReqBox |BoxTitle= |CPU= |AllocatedMemory= |GraphicsCard= |Resolution= |OperatingSystem= }} ``` -------------------------------- ### Empty external declaration example Source: https://shaderlabs.org/wiki/Compiler_Behavior_Notes Empty external declarations, such as a semicolon after a function definition, are not allowed on macOS. ```glsl void main() { ... }; ``` -------------------------------- ### Create a Generic Shaderpack Entry Source: https://shaderlabs.org/wiki/Module%3AShaderpackListEntry/doc Use this to create a shaderpack entry when the shaderpack is not hosted on a platform like Modrinth. All required arguments must be provided. ```lua {{#invoke:ShaderpackListEntry|Generic |arg1 = value1 |arg2 = value2 }} ``` ```lua {{#invoke:ShaderpackListEntry|Generic |name=Example |style=[https://www.example.com/ Realistic] |performance_impact_level=1 |version=0.4.2 |last_update=1990-01-01 |links=[https://www.example.com/ Website] |drivers=nvidia amd intel apple tux m1 |shader_loaders=iris of canvas vanilla focal |author=[https://www.example.com Joe] |min_mc_version=1.14.4 |max_mc_version=1.20.1 }} ``` -------------------------------- ### Implement custom addition function using macro Source: https://shaderlabs.org/wiki/Compiler_Behavior_Notes Manually implement functions like addition using macros when constants using built-in functions are not supported, as seen with AMD and Intel drivers. ```glsl #define add(x, y) (x + y) ``` -------------------------------- ### Create Modrinth Shaderpack Entry Source: https://shaderlabs.org/wiki/Module%3AShaderpackListEntry Use this for shaderpacks available on Modrinth. Some arguments can override API values. ```lua {{#invoke:ShaderpackListEntry|Modrinth |arg1 = value1 |arg2 = value2 }} ``` -------------------------------- ### Oak Leaves IDs Source: https://shaderlabs.org/wiki/Mod_Block_IDs Lists various types of oak leaves from different mods. Ensure the mod providing the leaves is installed. ```plaintext minecraft:oak_leaves minecraft:spruce_leaves minecraft:birch_leaves minecraft:jungle_leaves minecraft:acacia_leaves minecraft:dark_oak_leaves minecraft:mangrove_leaves minecraft:cherry_leaves biomesoplenty:origin_leaves biomesoplenty:flowering_oak_leaves biomesoplenty:rainbow_birch_leaves biomesoplenty:yellow_autumn_leaves biomesoplenty:orange_autumn_leaves biomesoplenty:maple_leaves biomesoplenty:fir_leaves biomesoplenty:redwood_leaves biomesoplenty:mahogany_leaves biomesoplenty:palm_leaves biomesoplenty:willow_leaves biomesoplenty:dead_leaves biomesoplenty:magic_leaves biomesoplenty:umbran_leaves biomesoplenty:hellbark_leaves biomesoplenty:pink_cherry_leaves biomesoplenty:white_cherry_leaves biomesoplenty:jacaranda_leaves quark:blue_blossom_leaves quark:lavender_blossom_leaves quark:orange_blossom_leaves quark:pink_blossom_leaves quark:yellow_blossom_leaves quark:ancient_leaves atmospheric:rosewood_leaves atmospheric:morado_leaves atmospheric:flowering_morado_leaves atmospheric:yucca_leaves atmospheric:kousa_leaves atmospheric:aspen_leaves atmospheric:grimwood_leaves atmospheric:green_aspen_leaves atmospheric:laurel_leaves atmospheric:dry_laurel_leaves atmospheric:currant_leaves atmospheric:yucca_bundle autumnity:red_maple_leaves autumnity:orange_maple_leaves autumnity:yellow_maple_leaves autumnity:maple_leaves environmental:willow_leaves environmental:cherry_leaves environmental:pink_wisteria_leaves environmental:blue_wisteria_leaves environmental:purple_wisteria_leaves environmental:white_wisteria_leaves environmental:pink_hanging_wisteria_leaves environmental:blue_hanging_wisteria_leaves environmental:purple_hanging_wisteria_leaves environmental:white_hanging_wisteria_leaves environmental:hanging_willow_leaves environmental:pine_leaves environmental:hibiscus_leaves upgrade_aquatic:river_leaves byg:aspen_leaves byg:araucaria_leaves byg:baobab_leaves byg:blooming_witch_hazel_leaves byg:blue_enchanted_leaves byg:blue_spruce_leaves byg:brown_birch_leaves byg:brown_oak_leaves byg:brown_zelkova_leaves byg:cika_leaves byg:cypress_leaves byg:ebony_leaves byg:fir_leaves byg:flowering_orchard_leaves byg:flowering_nightshade_leaves byg:flowering_palo_verde_leaves byg:green_apple_skyris_leaves byg:green_enchanted_leaves byg:holly_berry_leaves byg:holly_leaves byg:indigo_jacaranda_leaves byg:jacaranda_leaves byg:joshua_leaves byg:mahogany_leaves byg:mangrove_leaves byg:maple_leaves byg:orange_birch_leaves byg:orange_oak_leaves byg:orange_spruce_leaves byg:orchard_leaves byg:palo_verde_leaves byg:pine_leaves byg:pink_cherry_leaves byg:rainbow_eucalyptus_leaves byg:red_birch_leaves byg:red_maple_leaves byg:red_oak_leaves byg:red_spruce_leaves byg:redwood_leaves byg:ripe_joshua_leaves byg:ripe_orchard_leaves byg:silver_maple_leaves byg:skyris_leaves byg:white_cherry_leaves byg:willow_leaves byg:witch_hazel_leaves byg:yellow_birch_leaves byg:yellow_spruce_leaves byg:zelkova_leaves ecotones:hazel_leaves sakurarosea:alt_sakura_leaves sakurarosea:sakura_leaves sakurarosea:white_sakura_leaves terrestria:cypress_leaves terrestria:dark_japanese_maple_leaves terrestria:hemlock_leaves terrestria:japanese_maple_leaves terrestria:japanese_maple_shrub_leaves terrestria:jungle_palm_leaves terrestria:rainbow_eucalyptus_leaves terrestria:redwood_leaves terrestria:rubber_leaves terrestria:sakura_leaves terrestria:willow_leaves terrestria:yucca_palm_leaves traverse:brown_autumnal_leaves traverse:fir_leaves traverse:orange_autumnal_leaves traverse:red_autumnal_leaves traverse:yellow_autumnal_leaves vanillaenhanced:redwood_leaves wild_explorer:autumn_oak_leaves wild_explorer:autumn_birch_leaves wild_explorer:pink_cherry_oak_leaves wild_explorer:white_cherry_oak_leaves wild_explorer:palm_leaves dynamictrees:oak_leaves dynamictrees:birch_leaves dynamictrees:spruce_leaves dynamictrees:jungle_leaves dynamictrees:acacia_leaves dynamictrees:dark_oak_leaves desolation:charred_branches desolation:ash_bramble goodending:cypress_leaves goodending:dense_birch_leaves goodending:dense_dark_oak_leaves ```