URP Scrolling Texture - Unity Shader Graph (Tutorial)

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 34

  • @imzary
    @imzary Рік тому +8

    doesn't work in 2D URP for some reason, when I try to do this the texture just breaks, it gives weird lines

    • @goblin380
      @goblin380 Рік тому +2

      Same issue for me

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому +1

      I'll have to check it out in 2d URP.
      I think it should work the same way as 3d, but I guess maybe not?

  • @zackfreeland6420
    @zackfreeland6420 4 місяці тому

    Straight and to the point. Thank you Michael! Might I ask how you did the red texture shown at the beginning? That appears to have some sort of spritesheet animation to go along with it.

    • @MichaelsGameLab
      @MichaelsGameLab  4 місяці тому

      It is using 1 texture sampled twice and made to scroll in opposite directions, then the samples are added together.

  • @TheYuliyF
    @TheYuliyF 8 днів тому

    cool, but I need scrolling 2 textures( and sending some event, when one texture through to another), can you help, please?

  • @garrettdehart4988
    @garrettdehart4988 10 місяців тому

    Is your material emissive? I don't see anything plugged into the emissive channel. Great tutorial, will definitely be trying this out!

    • @MichaelsGameLab
      @MichaelsGameLab  10 місяців тому

      I don't think so. If it is not connected to the emissive channel, then it wouldn't be. It might have HDR and bloom though, which could look similar in some cases.

  • @WeirdGoat
    @WeirdGoat Рік тому +1

    Great tutorial! Just 1 question, in the video, your texture's uv moves seamlessly, I try to make a river with this shader, but there is a seam when the texture repeat itself, I have set Texture Type: Sprite (2D and UI), Wrap Mode: repeat, Filter Mode: Bilinear. Could you please help me out, thanks in advance!

    • @MichaelsGameLab
      @MichaelsGameLab  Рік тому +1

      You will need to make sure your texture is tileable/seamless.
      I use Gimp to edit textures and it has a built-in tile feature.

    • @WeirdGoat
      @WeirdGoat Рік тому

      ​@@MichaelsGameLab Thanks for the replay and you're right, my texture was not seamless, I found a new one, everything works out.

  • @Optimusprime-ve7xi
    @Optimusprime-ve7xi 4 місяці тому +4

    1:10 i dont see that anywhere

    • @MichaelsGameLab
      @MichaelsGameLab  4 місяці тому +1

      Do you have URP installed?

    • @Optimusprime-ve7xi
      @Optimusprime-ve7xi 4 місяці тому +2

      @@MichaelsGameLab yes

    • @not_inuse7508
      @not_inuse7508 4 місяці тому +2

      I have the same problem, could you reply if you figure it out? That would be nice!

    • @jeremiassen4484
      @jeremiassen4484 Місяць тому

      @@not_inuse7508 Found the rendering tab at the very bottom

    • @CaydoFox
      @CaydoFox День тому

      Just scroll down. It’s at the very bottom

  • @OzoneInteractiveMegan
    @OzoneInteractiveMegan 8 місяців тому

    Thanks! Just one thing, I'm using this material on an object in the background of my main menu, having it scroll across the screen. For some reason, the material doesn't load in properly around the edges of the screen and takes a few extra milliseconds before it loads in correctly. Do you know how to fix this?

    • @MichaelsGameLab
      @MichaelsGameLab  8 місяців тому

      Does it happen in the final build as well? Might be an editor quirk.

  • @JELLY_BEAST
    @JELLY_BEAST 2 місяці тому

    this might be a bad question but how do i fix textures being pink?

    • @MichaelsGameLab
      @MichaelsGameLab  2 місяці тому

      Open your Project in Unity, and go to Edit > Render Pipeline > Universal Render Pipeline. According to your needs, select either Upgrade Project Materials to URP Materials or Upgrade Selected Materials to URP Materials.

    • @JELLY_BEAST
      @JELLY_BEAST 2 місяці тому

      @@MichaelsGameLab ok thanks!

  • @c0rr0siv35
    @c0rr0siv35 2 місяці тому

    anyone know how to get the scroll to do like a skip effect where it skips a certain distance on the texture intstead of a smooth scroll

    • @MichaelsGameLab
      @MichaelsGameLab  2 місяці тому +1

      I would probably do it via script and set a float value that gets added to the offset of the texture in the shader.

  • @kodaxmax
    @kodaxmax 6 місяців тому

    Any idea how to accomplish this in Sprite 2D URP? Theres no UV output.

    • @MichaelsGameLab
      @MichaelsGameLab  5 місяців тому

      I will have a video coming out next week that will walk through how to do this, so stay tuned :)

  • @MonstrumReborn
    @MonstrumReborn 5 місяців тому

    Can you make it so I can set background transparency and stuff?

    • @MichaelsGameLab
      @MichaelsGameLab  5 місяців тому

      It is possible to do this in shadergraph, I would recommend this video for an explaination:
      ua-cam.com/video/ig2IVZh9pCk/v-deo.html

    • @MonstrumReborn
      @MonstrumReborn 5 місяців тому

      @@MichaelsGameLab alr thanks!

  • @AshwinSKumar
    @AshwinSKumar 4 місяці тому

    How can I UV and texture a car in Unity?

    • @MichaelsGameLab
      @MichaelsGameLab  4 місяці тому

      If you need to adjust UVs, then you probably need a 3d modeling program like blender. If you just need to apply a material with a texture, then you can right-click in your assets folder and select Create > Material. After the material is created, then you just assign the texture and drag the material onto the part of the car model you want.

    • @AshwinSKumar
      @AshwinSKumar 4 місяці тому

      @@MichaelsGameLab okay sure I used Adobe dimension can you tell me how my model looks and UV

  • @onigumo
    @onigumo Рік тому

    The created URP shader graphs do not have the Surface Options exposed in the materials that is using it, or the Surface Options do not have any options in the inspector window comparing to other materials, what should one do? I'm trying to use the Surface Type to change the Shader to Transparent because my Arrow texture is transparent, any thoughts?

    • @MichaelsGameLab
      @MichaelsGameLab  7 місяців тому

      Make sure the material is using the URP shader.
      Otherwise, maybe try updating Unity/URP.