Grid Shader in Unity LWRP - Shader Graph Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 122

  • @konstantinmikhaylov8837
    @konstantinmikhaylov8837 หลายเดือนก่อน

    How to remove the black background so that it is transparent and only the grid is visible?

  • @Kraedt
    @Kraedt ปีที่แล้ว

    Any ideas for a tangent uv mapping workaround for HDRP? This is pretty frustrating...

  • @mynameisjeff3182
    @mynameisjeff3182 3 ปีที่แล้ว +1

    Hello I have a question for the colour change, how can I make the grid colour change after a certain time?

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว

      You can expose the color property then control the color via the material using a script.

    • @mynameisjeff3182
      @mynameisjeff3182 3 ปีที่แล้ว

      @@UGuruz hey thanks for the info

  • @jiricapek6717
    @jiricapek6717 ปีที่แล้ว

    How can I set up different color instead of black background? Nice tutorial by the way!

  • @kemaldogan8185
    @kemaldogan8185 2 ปีที่แล้ว

    I couldn't figure out how we did uv mapping in Unity, I used URP for the shader. All steps worked for URP too but when i add position node select tangent and connect it with tiling it does not work, it looks totally black.

  • @legotechnicmastery
    @legotechnicmastery 5 ปีที่แล้ว +1

    Parallax Occlusion Mapping Node !... I mean it would be nice if you covered it !

  • @tweek8365
    @tweek8365 5 ปีที่แล้ว +3

    Synthwave style game

    • @TheJonBrant
      @TheJonBrant 4 ปีที่แล้ว

      I've been trying to figure out what to call this style, this is perfect. Thanks

  • @eshanjogwar6413
    @eshanjogwar6413 4 ปีที่แล้ว

    the tutorial was very good. thank you

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      You are welcome!

  • @jsimsons
    @jsimsons 2 ปีที่แล้ว

    I am using URP unlit shader graph. It does not have albedo input, I am referring to 1:27 in video. How can I set albedo in this case?

    • @kashishxa1519
      @kashishxa1519 ปีที่แล้ว

      It must have a base color node on the fragment, also try using lit shader graph

  • @mateomancera4897
    @mateomancera4897 4 ปีที่แล้ว +1

    Hello! Awesome tutorial man THANKS! I followed it and it works almost perfect! The only issue i'mm havind is that the lines fades in the distance and it don't look very well and I don't know why this happens. Any help would be REALLY appreciated.

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Can you share any screenshot on my discord server ?

  • @weerwolf
    @weerwolf 4 ปีที่แล้ว

    Hi UGuruz, I can't figure out how to give the black part some color. Could you give me a quick tip?

    • @mateomancera4897
      @mateomancera4897 4 ปีที่แล้ว

      Hey! You figured out how to do it?

    • @ivank8463
      @ivank8463 3 ปีที่แล้ว +1

      Multiply rectangle node with new color node and add
      that multiply with last multiply node,
      than just set out of add node to albedo and emission. That worked for me!

  • @abdosarmini
    @abdosarmini 4 ปีที่แล้ว

    Why I can't use the shader graph in the built-in rp?
    I know that the URP is for low graphics and mobiles. And the HDRP is for high graphic games.
    But my game has medium graphic for PC's. So I can't use HDRP or URP but still I want to use shader graph.
    Please help me.
    And thanks for the great tutorials you are making.

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว +1

      I don't know. Ask Unity. Btw you can use URP for medium graphics as well.

  • @CleisonRodriguesComposer
    @CleisonRodriguesComposer 5 ปีที่แล้ว +1

    Great tutorial as always!
    Thank you!

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว +3

      Thanks

  • @sarangborude8260
    @sarangborude8260 3 ปีที่แล้ว

    Fantastic video, really enjoyed it! very well explained. I am applying the shader on ARKit scanned meshes, I am having the issue where the texture stretches on one axis, Since the mesh is procedurally generated, I don't have control over it's uv mapping, How should I go about this, I noticed that in the position not when I switch to tangent space from world space, I see nothing, just a solid color all over the mesh with the color I set for the grid.

  • @NerdyTalking
    @NerdyTalking 5 ปีที่แล้ว +1

    Awesome effect! I will definitely try to implement it on future projects

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว +1

      Thanks

  • @Disasteradio
    @Disasteradio 5 ปีที่แล้ว

    great tutorial, thanks!!!

  • @organicos5834
    @organicos5834 4 ปีที่แล้ว

    Thank you!

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Welcome!

  • @inbaltal5185
    @inbaltal5185 5 ปีที่แล้ว

    Very Good Lessons!

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Thanks you so much.

  • @firerun8599
    @firerun8599 5 ปีที่แล้ว +3

    Go water shader

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Sure

  • @aliffirdi2880
    @aliffirdi2880 4 ปีที่แล้ว

    And how to add the grid to real texture?

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Just multiply or add the grid texture with real texture in shader graph..

    • @aliffirdi2880
      @aliffirdi2880 4 ปีที่แล้ว

      @@UGuruz oh, thx you

  • @PautaGamerOficial
    @PautaGamerOficial 5 ปีที่แล้ว

    Hair master node tutorial would be great!!! ;)

  • @miguelcuellar5696
    @miguelcuellar5696 5 ปีที่แล้ว

    GENIAL!!!!

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Thanks

  • @Atit-n2c
    @Atit-n2c 3 ปีที่แล้ว

    if possbile plz endable subtitle you speak to quick for me if you have eng sub i will read from that thx

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว

      I think you can enable auto generated english subtitles.

    • @Atit-n2c
      @Atit-n2c 3 ปีที่แล้ว

      @@UGuruz this clip can't enable auto your other clip can

  • @nitinm38
    @nitinm38 5 ปีที่แล้ว

    Upload More video Sir Plzzzz.

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Sure

  • @lets.flyakyt
    @lets.flyakyt 5 ปีที่แล้ว +20

    +1 for sharing the one in Blender UV mapping. HDR for glow. The "Reset" option in the Inspector. etc.
    It took me ages to find those out. This video is gold.

    • @3dnovarider819
      @3dnovarider819 4 ปีที่แล้ว

      and do you know how it goes with URP?

  • @akshaytati
    @akshaytati 3 ปีที่แล้ว +3

    9:20
    Actually there's a workaround for that
    Just attach the output of time to 'y' of vector2
    If you want it to move in the opposite direction then attach the output of time to a new one minus node and then output of one minus to y of vector2

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว +1

      Thanks for the info.

  • @spellbaiter4518
    @spellbaiter4518 2 ปีที่แล้ว

    Hi, now I'm using unity 2021 version, when I try to connect position (tangent) it turns all black and cannot achieve the result... Someone please help me

  • @tt128556
    @tt128556 ปีที่แล้ว

    I've attached the shader to a cube, but when I try to scale the cube in runtime, only the boundaries change, and the rendered material remains in its original size. Any idea how to scale the material as well? It scales just fine in the Editor when adjusting the scale values.

  • @metatronkub2986
    @metatronkub2986 ปีที่แล้ว

    Thanks for the tutorial! How to make it so that there is a transition between blue and pink colors?

  • @mithil1711
    @mithil1711 4 ปีที่แล้ว +1

    I did it but it isn't glowing

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Have you enabled HDR mode in LWRP asset settings ?

    • @mithil1711
      @mithil1711 4 ปีที่แล้ว

      @@UGuruz as u showed in video I did
      But I think I have to add post processing components to camera

    • @ImInfenix
      @ImInfenix 4 ปีที่แล้ว

      @@mithil1711 Yes you have, the easiest way to do this is to start from the LWRP / URP presets from unity when you create your project, but that's it, you need the bloom effect to make it glow.

    • @mithil1711
      @mithil1711 4 ปีที่แล้ว

      @@ImInfenix it isn't working

    • @ImInfenix
      @ImInfenix 4 ปีที่แล้ว

      @@mithil1711 did you setup the post processing properly? Camera has hdr allowed?

  • @OmeedNOuhadi
    @OmeedNOuhadi 2 ปีที่แล้ว

    Thanks for the tutorial. I have seen Tron over 600 times.

  • @fodk7021
    @fodk7021 3 ปีที่แล้ว

    Nice tutorial but how to change the colour of the black part

  • @rus89
    @rus89 4 ปีที่แล้ว +2

    Thank you very much for sharing this with us. It's exactly the thing I was looking for a while. Keep up the good work 💪

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Thank you so much

  • @samuelgirmagirma4019
    @samuelgirmagirma4019 2 ปีที่แล้ว

    how to back background
    of the mesh pls??

    • @Dbl_Plus_Good
      @Dbl_Plus_Good 7 หลายเดือนก่อน

      You can disconnect the connect between the "Multiply" node and the "Base Color" node. Then create a new "Color" property and connect it's output to the "Base Color" node. From here, you can set the color that you desire for the background in the inspector. If you want to be able to change the opacity of the background you need to set the "Surface Type" in the Graph Inspector to "Transparent". You can then adjust the "Alpha" value to your desired opacity/transparency.

  • @baatarbilguun5106
    @baatarbilguun5106 3 ปีที่แล้ว

    hey what's LWRP?

  • @chaoticstorm8145
    @chaoticstorm8145 4 ปีที่แล้ว +3

    The uv mapping isnt working for me. I'm clicking cube projection but when I import to unity and add the mesh its always 4 squares on it

    • @kennethgriffin5761
      @kennethgriffin5761 3 ปีที่แล้ว

      Exact same issue. Every face has 4 squares no matter the size of it.

    • @kennethgriffin5761
      @kennethgriffin5761 3 ปีที่แล้ว

      Found the issue. His method doesnt work with a single cube. You need a bunch of objects of various sizes in your blender scene like him.

  • @djphilos42
    @djphilos42 4 ปีที่แล้ว +1

    This video is a gold mine of tips and tricks - thanks so much!

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      You're so welcome!

  • @howtogame98
    @howtogame98 3 ปีที่แล้ว

    Looking at the project files that are on your pateron. If I get those, I can just open up Unity and have all of this complete for me, right?

  • @vlogcrafter4740
    @vlogcrafter4740 5 ปีที่แล้ว +1

    I'd like your tuturials can you make please a tuturial for automatic saving the player progress like money or level or something else in Unity

    • @XRDeveloper-01
      @XRDeveloper-01 5 ปีที่แล้ว +2

      Use Playerprefs to save coin or state

  • @aunabbas8582
    @aunabbas8582 3 ปีที่แล้ว

    Cool... Is this optimized on mobile devices.?

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว

      I guess yes.

  • @Lamevire
    @Lamevire 3 ปีที่แล้ว

    how can I make the black parts transparent?

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว

      You can do that by using the grid line as an opacity texture.

  • @CJRH1FILMS
    @CJRH1FILMS 3 ปีที่แล้ว

    7:33 Oddly... The point light is not affecting the grid lines. Do they need to be UV Unwrapped first?

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว

      No, may be your grid line are already too bright or your point light is lesser bright.

  • @4ri0h
    @4ri0h 4 ปีที่แล้ว

    i made everythink like on video but i have only purple texture

    • @000zeRoeXisTenZ000
      @000zeRoeXisTenZ000 4 ปีที่แล้ว

      this means that your shader have an error. often its just a typo in the code. compile errors for shaders are not displayed as c# errors.

  • @learnnew9878
    @learnnew9878 4 ปีที่แล้ว

    I think you are from "INDIA"

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Yes

  • @datoneoof
    @datoneoof 4 ปีที่แล้ว

    bro they tell me "the current render pipeline isn't compatible with this master node" or something like that + pink texture

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Update to URP

  • @jaybenton7716
    @jaybenton7716 4 ปีที่แล้ว

    Couldn't you set the shader to 'cull' any colour below a certain value, so setting it to remove all black from the material, making the grid transparent?

    • @ImInfenix
      @ImInfenix 4 ปีที่แล้ว

      You can by applying another minus one one the shader before to put color on it and setting it to alpha channel, it should work

  • @GhostKiller9100
    @GhostKiller9100 4 ปีที่แล้ว

    bro how can i replace black with other colors

    • @mateomancera4897
      @mateomancera4897 4 ปีที่แล้ว

      Hey! You figured out how to do it?

    • @GhostKiller9100
      @GhostKiller9100 4 ปีที่แล้ว +1

      @@mateomancera4897 no bro

    • @scdijkens
      @scdijkens 3 ปีที่แล้ว +2

      You can't multiply a color with black. But you can multiply with white, so duplicate all the nodes but with this duplicate use an one minus to invert the black and white around, then multiply a color on top. Combine this by using an add node with the original nodes.

  • @biglemonfox3446
    @biglemonfox3446 3 ปีที่แล้ว

    Cool thanks! Do you know if there is a way to have the shader auto tile considering the scaling of the transform? I couldn't figure out how to do it for all 6 sides so far.

  • @nichegames9590
    @nichegames9590 3 ปีที่แล้ว

    This is great. I could have used this a few months back. I actually have an identical result but I used a texture with alpha that I fed into the emission. Well, cool stuff man.

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว

      Thanks

  • @errorist319
    @errorist319 4 ปีที่แล้ว

    I so wanted this video yesterday and it came in recommendation today but It's so cool how uv mapping can solve the problem, I literally made whole level by duplication a single object on which the texture was not stretched and it was too frustrating

  • @akshaytati
    @akshaytati 3 ปีที่แล้ว

    Oh man this is exactly what i was looking for, thanks!

    • @UGuruz
      @UGuruz  3 ปีที่แล้ว +1

      Glad I could help!

    • @akshaytati
      @akshaytati 3 ปีที่แล้ว

      @@UGuruz hey i want to increase the speed of the offset
      Any way i can do that?
      Nvm i found the multiply node

  • @glenzhang3646
    @glenzhang3646 5 ปีที่แล้ว

    Is there any projection methods like tri-planner?

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Yes there is a triplaner node in shader graph.

  • @TheAdventuresOfMontuMiah
    @TheAdventuresOfMontuMiah 5 ปีที่แล้ว

    Please do a series on Lightweight Render pipeline.

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Sure. I am working on it.

  • @thiagooliveira-ti
    @thiagooliveira-ti 4 ปีที่แล้ว

    nice +1 sub

    • @UGuruz
      @UGuruz  4 ปีที่แล้ว

      Thanks :)

  • @sundsalharbi8817
    @sundsalharbi8817 4 ปีที่แล้ว

    Wow, thank you

  • @14hil81
    @14hil81 5 ปีที่แล้ว

    Nice tutorial bro

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Thanks

  • @sanchitgngplays
    @sanchitgngplays 4 ปีที่แล้ว

    It's the best! The Best!

  • @ricardo_original
    @ricardo_original 4 ปีที่แล้ว

    Great tutorial man, thanks and congratulations!!

  • @oyedev
    @oyedev 5 ปีที่แล้ว

    bhai 1 help kr do plzz HDRP m grass use krna bta do bs m kuch b kr lu meri grass pink hi ati h pta ni q help plzz bro

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Use 2019.3. Grass is now supported.
      PS. No, its not supported. But you can still use grass in HDRP. Check my video about it.

    • @oyedev
      @oyedev 5 ปีที่แล้ว

      @@UGuruz ok brother nd thnks for reply 😀😀😀😀😀

  • @vaibhavgovind104
    @vaibhavgovind104 5 ปีที่แล้ว

    Niceee

    • @UGuruz
      @UGuruz  5 ปีที่แล้ว

      Thanks

  • @vaibhavgovind104
    @vaibhavgovind104 5 ปีที่แล้ว +1

    HI, I have Try this shader for android device 4 Gb ram, but the frame Rate reaches to 17-20 fps.

  • @genzero.wahing9-peridot337
    @genzero.wahing9-peridot337 3 ปีที่แล้ว

    LOL! this is not free at all.... WHY

  • @horeaper
    @horeaper 5 ปีที่แล้ว

    A little hard to understand without subtitles.

  • @AnonYmous-ct1by
    @AnonYmous-ct1by 4 ปีที่แล้ว

    That indian accent is just irritating to be honest.