Unity 2018 Shader Graph - Tutorial 07: Reflections

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

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

  • @AlexTuduran
    @AlexTuduran 4 года назад +13

    You're doing two things wrong:
    1. Your reflection ends up being in reverse. The correct reflection was the one without the view dir and normals. If you insist on keeping the view dir and normals, at least invert the view dir or the normals. You essentially end up with the same look of when you preview a cubemap - that is not reflection on a sphere, but inside of a sphere. The actual correct reflection is the inverted version of the cubemap (as if the cubemap spherical preview is turned inside out).
    2. You're using the fresnel function wrong. Instead of multiplying it and add to the reflection (which yields in black center at low values), rather invert it first (1-x), scale it inverted, revert it back and then add it to the reflection. The correct behavior would be that if your fresnel intensity is set to 0, the reflection should be without fresnel effect and raising the frensel intensity would gradually introduce the fresnel effect. The fault is obvious when you set your fresnel intensity to 0: Instead of getting "no fresnel" effect (clean reflection), you get the reflection being completely black in the center of the sphere.

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

      thanks a lot for commenting this I had been looking so long to make cubemap based reflections. ill also try the techniques in this comment here. I always wanted to learn to make cubemap reflections and not use real time reflections such as reflection probes. ill definitely try these.

  • @raptorswire7212
    @raptorswire7212 4 года назад +1

    Thank you so much man! You have no idea how difficult was it for me to find info about this!

  • @silvaright
    @silvaright 4 года назад +5

    Is there any way you could use this for planar reflections?

  • @AMVcreatingDOGE
    @AMVcreatingDOGE 6 лет назад

    Hey, any chance you could explain or create a tutorial on how the Triplanar Node works? For instance showing how to create a shader graph for terrain using several textures depending on height or slope?

  • @shibi6939
    @shibi6939 4 года назад

    such a great tuto !

  • @tuseroni6085
    @tuseroni6085 4 года назад

    ok but why though?
    what are you gaining over a reflection probe?

  • @lcd11001
    @lcd11001 6 лет назад

    Hello. Thank you for your sharing. Can u post all previous tutorial links or make a list. Its easier to follow?

  • @SilverEchoDreamer
    @SilverEchoDreamer 2 года назад

    Thankyou!

  • @T1m0the0S
    @T1m0the0S 6 лет назад

    Hi! I'm just starting watch your tutorials and its good. But I have a question. How make a doom 1 stile rotating toward player sprites whis graph? Sorry for my English. Have no ptactice.

  • @sigrid714
    @sigrid714 6 лет назад

    Is there a way to do Parallax Offset to use height maps in Shader Graph?

  • @codethemgames2089
    @codethemgames2089 6 лет назад

    I was wondering if there is any way to get the forward vector of the directional light as of right now

    • @Respectstudios3d
      @Respectstudios3d  6 лет назад

      There is no light direction at this time, as far as i know.

    • @ClydeCoulter
      @ClydeCoulter 6 лет назад

      I would think that this would work:
      Vector3 forwardVector = directionalLight.transform.rotation * Vector3.forward;
      or
      directionalLight.transform.forward;;

  • @freenomon2466
    @freenomon2466 5 лет назад

    thank you very much for sharing. Ive subscribed. could you possibly make a simple tutorial for linking facial expression blendshapes to wrinklemaps[norma map values]? I alreday have animated faces but dont know how to link some of them to its corresponding normsl,[wrinklemaps]. it would be very much appreciated. thanks anyways!

  • @NamTran-hb2te
    @NamTran-hb2te 3 года назад

    This is reflection effect, not real reflection.

  • @nowherefool5869
    @nowherefool5869 6 лет назад

    awesome tutorials. can you do shader graph tutorials for mesh borderlines similar to toon shaders?

  • @user-dfarkjw3h
    @user-dfarkjw3h 6 лет назад

    There's no tessellation :(

  • @rohitalawa9306
    @rohitalawa9306 6 лет назад +1

    please make a tutorial on how to make 2d terrain Editor in unity

  • @CariagaXIII
    @CariagaXIII 6 лет назад

    guess i'm not the only one who gets confused with operators lol

  • @vitorhugoferreira9559
    @vitorhugoferreira9559 6 лет назад

    Can you make some water? It would be cool!

  • @monkeyrobotsinc.9875
    @monkeyrobotsinc.9875 4 года назад

    this looks terrible, and is the worst example that could ever exist. Have you ever seen a real reflection before?