URP Scrolling Texture - Unity Shader Graph (Tutorial)

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии •

  • @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  8 месяцев назад +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 5 месяцев назад

    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  5 месяцев назад

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

  • @TheYuliyF
    @TheYuliyF Месяц назад

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

  • @Optimusprime-ve7xi
    @Optimusprime-ve7xi 5 месяцев назад +4

    1:10 i dont see that anywhere

    • @MichaelsGameLab
      @MichaelsGameLab  5 месяцев назад +1

      Do you have URP installed?

    • @Optimusprime-ve7xi
      @Optimusprime-ve7xi 5 месяцев назад +2

      @@MichaelsGameLab yes

    • @not_inuse7508
      @not_inuse7508 5 месяцев назад +2

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

    • @jeremiassen4484
      @jeremiassen4484 2 месяца назад

      @@not_inuse7508 Found the rendering tab at the very bottom

    • @CaydoFox
      @CaydoFox Месяц назад

      Just scroll down. It’s at the very bottom

  • @JELLY_BEAST
    @JELLY_BEAST 3 месяца назад

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

    • @MichaelsGameLab
      @MichaelsGameLab  3 месяца назад

      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 3 месяца назад

      @@MichaelsGameLab ok thanks!

  • @c0rr0siv35
    @c0rr0siv35 3 месяца назад

    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  3 месяца назад +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.

  • @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.

  • @OzoneInteractiveMegan
    @OzoneInteractiveMegan 9 месяцев назад

    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  9 месяцев назад

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

  • @kodaxmax
    @kodaxmax 7 месяцев назад

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

    • @MichaelsGameLab
      @MichaelsGameLab  7 месяцев назад

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

  • @garrettdehart4988
    @garrettdehart4988 11 месяцев назад

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

    • @MichaelsGameLab
      @MichaelsGameLab  11 месяцев назад

      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.

  • @AshwinSKumar
    @AshwinSKumar 5 месяцев назад

    How can I UV and texture a car in Unity?

    • @MichaelsGameLab
      @MichaelsGameLab  5 месяцев назад

      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 5 месяцев назад

      @@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  8 месяцев назад

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