Unreal Materials: Access texture via raw integer coordinates.
The snippet can be accessed without any authentication.
Authored by
Jan Delember
Generally, Unreal uses float UVs to access any texture. Sometimes it's needed to get the exact texture value at a specific pixel via integer coordinates. A custom node in combination with a Param Tex Object can be used to achieve this.
Inputs to the custom node:
- Integer coordinates xyz (if not hardcoded)
- TextureObjectParameter node
Output: CMOT Float 4
Shader.glsl 50 B
Please register or sign in to comment