Perspective-aware Range
Converts the pixel range of a texture into an UV-space range taking into account the camera transformation.
Use this between your raw pixel ranges and your sampling for correct results when rendering SDFs on planes not guaranteed to be aligned to the camera.
Inputs
Name | Type | Description |
---|---|---|
Field | Texture 2D | The distance field texture to be sampled. |
UV | Vector 2 | Position of the texture to sample. |
Pixel Range | Float | The pixel range of the texture. |
Outputs
Name | Type | Description |
---|---|---|
Range | Float | The perspective-corrected range. |