# Sample Texture 2D node The Sample Texture 2D node samples a **Texture 2D** asset and returns a **Vector 4** color value. You can specify the **UV** coordinates for a texture sample and use a [Sampler State node](Sampler-State-Node.md) to define a specific Sampler State. A Sample Texture 2D node can also sample a normal map. For more information, refer to the [Controls](#controls) section, or [Normal map (Bump mapping)](https://docs.unity3d.com/Manual/StandardShaderMaterialParameterNormalMap.html) in the Unity User manual. [!include[nodes-sample-errors](./snippets/sample-nodes/nodes-sample-errors.md)] ![An image that displays the Graph window with a Sample Texture 2D node.](./images/sg-sample-texture-2d-node.png) ## Create Node menu category The Sample Texture 2D node is under the **Input** > **Texture** category in the Create Node menu. ## Compatibility The Sample Texture 2D [!include[nodes-compatibility-all](./snippets/nodes-compatibility-all.md)] [!include[nodes-sample-fragment-lod](./snippets/sample-nodes/nodes-sample-fragment-lod.md)] ## Inputs The Sample Texture 2D [!include[nodes-inputs](./snippets/nodes-inputs.md)] | **Name** | **Type** | **Binding** | **Description** | |--|--|--|--| | **Texture** | Texture 2D | None | The Texture 2D asset to sample.| | **UV** | Vector 2 | UV | The UV coordinates to use to sample the texture. | | **Sampler** | Sampler State | Default Sampler State | The Sampler State and settings to use to sample the texture.| | **LOD** | Float | LOD | The specific mip to use when sampling the Texture.
**Note**: The **LOD** Input port only displays if **Mip Sampling Mode** is **LOD**. For more information, refer to [Additional node settings](#additional-node-settings). | | **Bias** | Float | Bias | When you enable **Use Global Mip Bias**, Unity adds this Bias amount to the Global Mip Bias for a texture's mip calculation. When you disable **Global Mip Bias**, Unity uses this Bias amount instead of the Global Mip Bias.
**Note**: The **Bias** Input port only displays if **Mip Sampling Mode** is **Bias**. For more information, refer to [Additional node settings](#additional-node-settings). | | **DDX** | Float | DDY | The specific DDX value to use to calculate the texture's mip when sampling. For more information on DDX values for mipmaps, refer to [Mipmaps introduction](https://docs.unity3d.com/Documentation/Manual/texture-mipmaps-introduction.html) in the Unity User Manual.
**Note**: The DDX Input port only displays if **Mip Sampling Mode** is **Gradient**. For more information, refer to [Additional node settings](#additional-node-settings). | | **DDY** | Float | DDY | The specific DDY value to use to calculate the texture's mip when sampling. For more information on DDY values for mipmaps, refer to [Mipmaps introduction](https://docs.unity3d.com/Documentation/Manual/texture-mipmaps-introduction.html)> in the Unity User Manual.
**Note**: The **DDY** Input port only displays if **Mip Sampling Mode** is **Gradient**. For more information, refer to [Additional node settings](#additional-node-settings). | ## Controls The Sample Texture 2D [!include[nodes-controls](./snippets/nodes-controls.md)] | **Name** | **Description** | |----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **Type** | Select whether the texture is a Texture asset or a normal map. The options are: