# 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, see 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. |
Name | Type | Description | |
---|---|---|---|
Type | Dropdown | Select whether the texture is a Texture asset or a normal map. | |
Default | The texture is a Texture asset. | ||
Normal | The texture is a normal map. | ||
Space | Dropdown | When the node's Type is Normal to use a texture as a normal map, choose the Space for the normal map. | |
Tangent | Use a Tangent normal map whenever the mesh for a geometry needs to deform or change, such as when animating a character. With Tangent Space, the normal map's normals are relative to the existing vertex normals of any geometry rendered with your Shader Graph. Your Shader Graph only adjusts the vertex normals and not override them. | ||
Object | Use an Object normal map whenever the mesh for a geometry is static and doesn't deform. With Object Space, the normal map's normals are explicit and override the normals of any geometry rendered with your Shader Graph. Because a static mesh's normals never change, an Object normal map also maintains consistent lighting across different levels of detail (LODs). For more information about normal maps, see Normal map (Bump mapping) in the User manual. |