Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

ShaderGraph : Noob: 1aShader that renders texture instead of square pixel1!q

Discussion in 'Graphics Experimental Previews' started by jGate99, May 20, 2018.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,945
    Hi there,

    I'm showing a100x100 pixel art with filter set to point which appears perfectly fine if i assign it to RawTexture and increase the size of RawTexture Component to 1000x1000.
    As it renders squares, is there any way i could use shadergraph to create a shader that instead of rendering those squares it renders custom shape/texture.

    In short: Replace each Pixel to Shape or Sprite Using ShaderGraph? e305rlh060z01.png

    Thanks
     
    Last edited: May 20, 2018
  2. RosieGarden

    RosieGarden

    Joined:
    May 4, 2013
    Posts:
    33
    You can set the tiling of the bead texture to the width and height of the pixel art image using either code or manually, and then multiply the two together.