---
title: "PxrTangentField"
canonical: "https://rmanwiki-27.pixar.com/space/REN27/542224996/PxrTangentField"
format: markdown
---
![image](media://ff588b02-df72-46cb-96c2-c91097c99c02)

Defines a tangent field typically used to control anisotropic direction.

- *InputRotation* takes a single grayscale channel where black means 0 degrees and white means 360 degrees.
- *InputVector* takes a 2-channel map where the red channels is x and green is y. The blue channel is ignored.

The vector method often gives better results by minimizing texture filtering artifacts. If such artifacts are too visible, use the *nearest* texture filter.

> ℹ️ The nearest filter disables entirely mip-mapping, so you should only use it with a low-resolution map to avoid slowing down the renderer and consuming too much texture memory.

### Input Parameters

#### Input Rotation

A single float value to rotate the shading tangent. This input will take precedence over inputVector.

#### Input Vector

The red and green channels will be read as x and y coordinates of a 2d vector. If inputRotation is connected, this input will be ignored.

#### Rotation Offset

A global rotation offset in degrees.

#### Rotation Range

Scales the rotation range. 1.0 equates 0 to 360 degrees.

#### Centered Vectors

Centers the gradient values of the vector map. Ignored when inputRotation is used.

### Output Parameters

#### resultXYZ

The final tangent vector that should be connected to the Bxdf's Shading Tangent input.

### Sample textures

Sample textures have a resolution of 256x256 pixels and should tile perfectly (use the appropriate `txmake` wrap mode, e.g. `txmake -mode periodic`).

 

| **Texture** | **Description** |
| --- | --- |
| ![image](media://37c30501-f434-4df3-8e44-edda0051ef56) | Rotation map to create an anisotropic brushed metal pattern. |
| ![image](media://598ed63b-9550-4190-98a2-131195f40d1a) | Vector map to create an anisotropic brushed metal pattern. |
| ![image](media://33b81ac6-d82c-4411-96ef-d378f221c8d8) | Vector map to create an anisotropic fiber mesh pattern. |
| ![image](media://65aea92d-37ce-468a-a418-7a580bb7f961) | Vector map to create an anisotropic carbon fiber mesh pattern. |