Create A Custom URP Post Effect In Unity

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

КОМЕНТАРІ • 34

  • @benjaminswee-shaders
    @benjaminswee-shaders  Рік тому +1

    I hope you found this helpful. If you want to support my Patreon you can do so here ua-cam.com/video/UtwJGnif2OU/v-deo.html

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

      It's a nice beginner tutorial... but for the future videos - PLEASE, consider built-in UA-cam subtitles, instead of hardsub, especially with such a giant font.
      To anyone who can understand english in audio, the only thing these subtitles do is distracting.

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

    wow ty! This was the most straight forward one i've found for render features so far. I appreciate how you explain _why_ you're doing what you're doing every step instead of just pasting code and saying "this is just required". It actually makes sense now!

  • @aidanhobler
    @aidanhobler Рік тому +3

    Very excited to see you covering URP! I found your channel a while ago while looking for some tips on a screen space ripple effect - at first your tutorials seemed like exactly what I needed, but I’m using URP and I realized the tutorials were for the standard RP, so I decided to put the effect in my backlog for the moment. Now that you’re covering custom URP post processing, I think it might be time for me to take another swing at it!
    Love the videos, thanks!

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

    Thank you Benjamin for these tutorials! I also bought your Udemy course, always very interesting! You deserve a lot more visibility! Great job! 💪

  • @Le_Mur
    @Le_Mur Рік тому +4

    I was so much pleased to find out this tutorial at the beginning, then I saw you were using the old method with RenderTargetIdentifier and I was so disapointed... Would you make an update version of this tutorial with the new RTHandle methods ?

  • @alleyesonme1432
    @alleyesonme1432 Рік тому +6

    More URP!

  • @AndromAK666
    @AndromAK666 Рік тому +5

    i did the same with the same code, but it didn't work.
    To make it work → Assets/settings/URP-HighFidelity-Renderer/AddRenderFeature and select "TintRenderFeature"

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

      This is important. I noticed in his screen he added there, but did not tell.
      Also, I don't know why, but I had to add ".SetTexture("_MainTex", _source);" to link the shader texture sampler with the shader pass source (after the blits).
      There are 2 things that could be the reason for that: I used the Blitter.BlitCameraTexture, instead of Blit and I used RenderingUtils.ReAllocateIfNeeded() for the temp Texture, instead of cmd.GetTemporaryRT().
      But, i will mark this down as a win.

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

    The kind of course I wish we had in our master's degree

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

    Hello Benjamin, your lessons are really important and useful to me. It is very pleasing that you share such important information for us. I am a fan of yours.
    I have to ask you a question. While watching the lesson steps, I saw that the cameraColorTarget expression did not appear while I was writing code. The version I use is 2022.3.7f1. What can I use instead of this expression in this version?

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

    Thanks so much for the tutorial! It hqs helped me a lot, I am learning by myself about shaders. I have a question... I followed the tutorial, also I saw several times and paused to compared my code with yours and still my global illumination is not working. Do you have any idea that could help me to solve it?
    And again, thanka for the videos. Today I bought your course in udemy😉👍

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

      i did the same with the same code, but it didn't work.
      To make it work → Assets/settings/URP-HighFidelity-Renderer/AddRenderFeature and select "TintRenderFeature"

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

    Since this is pulling a volume into the feature for the RP, does that mean you cannot localize the custom feature to a specific camera?

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

    Can this be done with shader graph?

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

    Great I can write shaders (mostly GLSL), but I need to write 300 miles of c# code to use them.... 😞

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

    This is an excellent tutorial, thank you Ben. I am however facing an issue (Unity 2021.3.14f1) where decals render over the top of the custom effect. I've exposed the RenderPassEvent in the Render Feature so you can select it from a drop down which works, but doesn't help with the decal issue (sidenote: the custom effect doesn't render if you use AfterRenderingPostProcessing or AfterRendering). If you've any idea I'd really appreciate a reply, thanks.

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

      I suspect this is a limitation of 2021. In 2022 there's a new 'Fullscreen' graph output that can be used, rather than Unlit which works correctly with decals and transparent effects.
      EDIT: Scratch that - I didn't have my 2021 shader set to transparent surface type. It's now rendering over decals correctly.... :/

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

    Hey nice tutorial, i've followed it from start to finish but my unity can somewhy not " resolve symbol 'ScriptableRendererPass' "which causes things such as "Blit" and ScriptableRendererContext to not function at all.
    Even though i do have the latest URP of my engine version, post processing and everything imported so i don't understand why its not working does anyone have a suggestion?

  • @BRtn-nn9nr
    @BRtn-nn9nr 10 місяців тому

    Possible without adding TintRenderFeature ? i don't really want to add a renderfeature for every effect i have

    • @BRtn-nn9nr
      @BRtn-nn9nr 10 місяців тому

      So i found an answer -> no.. You can try to modify some files located in Packages but don't do it -> Universal RP -> Runtime -> Passes

  • @dontfeedthetroll7224
    @dontfeedthetroll7224 3 місяці тому

    Great tutorial. I struggled for days with GPT4 and different forums. Your video brought insights, but also did not work. No tint at all.
    What I have found out so far: cameraColorTarget should be replaced by cameraColorTargetHandle.
    also the shader:
    #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/SurfaceInput.hlsl" in your sample you just have .h as extension.
    Did someone make it work on Unity 2022.3.28f1 or later?

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

    Hi, does this work on VR?

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

    High quality tutorial, but let's be honest, Unity is making this super overcomplicated. I kinda wonder what the benefit of using URP is really

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

    ...lost me at 9:05...where does that "name" come from?

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

      The name is arbitrary. It is whatever you want the feature to be labeled as in your pipeline asset

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

    it would be great if you have a discord channel or something so that I can ask...!

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

    0:41 The tutorial starts here.

    • @trued7461
      @trued7461 11 місяців тому

      absolute brainrot cant handle 40 seconds of explanation