Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Why Custom Render Texture not Showing on Material?

Discussion in 'Shaders' started by NathanFuentes, Feb 7, 2023.

  1. NathanFuentes

    NathanFuentes

    Joined:
    Nov 5, 2018
    Posts:
    9
    I'm having this issue, that I'm unable to render the Custom Render Texture to an object
    As you can see below the material just appear as transparent, but the MainText is showing (and doing what is supposed to)
    upload_2023-2-6_22-38-33.png

    The material (LastMaterial) shader is as follows:
    upload_2023-2-7_12-38-54.png
    I don't know why it's not showing even as the MainTexture is ok
    Any help is welcome
     
  2. NathanFuentes

    NathanFuentes

    Joined:
    Nov 5, 2018
    Posts:
    9
    I finally got it working, even as it took the first texture from a texture2d it was not using the wrap sampling of the texture, but rather "Clamp"
     

    Attached Files: