Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/snippets/sample-nodes/nodes-sample-mip-bias-sampl...
2024-05-06 11:45:45 -07:00

2.0 KiB

title
nodes-sample-mip-bias-sample-mode-table.md
Name Type Options Description
Use Global Mip Bias Toggle Enabled, Disabled Enable Use Global Mip Bias to use the Global Mip Bias from the render pipeline. The bias adjusts the percentage of texture information taken from one mip over another. For more information on mip bias, see Mips and mipmaps.
Mip Sampling Mode Dropdown Standard, LOD, Gradient, Bias Choose the sampling mode that the Sample Texture 2D Array node should use for calculating the mip level of the texture:
  • Standard: The mip is calculated and selected automatically for the texture.
  • LOD: Set an explicit mip for the texture. The texture will always use this mip, regardless of the DDX or DDY calculations between pixels. Setting the Mip Sampling Mode to LOD also allows you to connect the node to a Block node in the Vertex Context. For more information on Block nodes and Contexts, see Master Stack.
  • Gradient: Set the DDX and DDY values to use for the texture's mip calculation, instead of using the values calculated from the texture's UV coordinates. For more information on DDX and DDY values, see Mips and mipmaps.
  • Bias: Set a bias to adjust the calculated mip for a texture up or down. Negative values bias the mip to a higher resolution. Positive values bias the mip to a lower resolution. This bias value can be added to the value of the Global Mip Bias, or used instead of the Global Mip Bias. For more information on mip bias, see Mips and mipmaps.