Skip to content
Snippets Groups Projects

Unreal Materials: Access texture via raw integer coordinates.

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    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

    Edited
    Shader.glsl 50 B
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment